PropertyType - the type of the property genericpublic static class UiBinding.CheckBoxRadioSelectionAdapter<PropertyType> extends UiBinding.ComponentAdapter<PropertyType,Button>
CheckBox or
RadioButton to bindingtoComponentType, toPropertyType| Constructor and Description |
|---|
CheckBoxRadioSelectionAdapter(UiBinding.ObjectConverter toPropertyType)
Constructs a new binding
|
| Modifier and Type | Method and Description |
|---|---|
void |
assignTo(PropertyType value,
Button cmp)
Assigns the value from the property into the component
|
void |
bindListener(Button cmp,
ActionListener<ActionEvent> l)
Binds an action listener to changes in the component
|
PropertyType |
getFrom(Button cmp)
Returns the value for the set method of the property from the given component
|
void |
removeListener(Button cmp,
ActionListener<ActionEvent> l)
Removes the action listener from changes in the component
|
public CheckBoxRadioSelectionAdapter(UiBinding.ObjectConverter toPropertyType)
toPropertyType - the conversion logic to the propertypublic void assignTo(PropertyType value, Button cmp)
UiBinding.ComponentAdapterassignTo in class UiBinding.ComponentAdapter<PropertyType,Button>value - the value that was returned from the property get methodcmp - the component instancepublic PropertyType getFrom(Button cmp)
UiBinding.ComponentAdaptergetFrom in class UiBinding.ComponentAdapter<PropertyType,Button>cmp - the componentpublic void bindListener(Button cmp, ActionListener<ActionEvent> l)
UiBinding.ComponentAdapterbindListener in class UiBinding.ComponentAdapter<PropertyType,Button>cmp - the componentl - listenerpublic void removeListener(Button cmp, ActionListener<ActionEvent> l)
UiBinding.ComponentAdapterremoveListener in class UiBinding.ComponentAdapter<PropertyType,Button>cmp - the componentl - listener