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.ComponentAdapter
assignTo
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.ComponentAdapter
getFrom
in class UiBinding.ComponentAdapter<PropertyType,Button>
cmp
- the componentpublic void bindListener(Button cmp, ActionListener<ActionEvent> l)
UiBinding.ComponentAdapter
bindListener
in class UiBinding.ComponentAdapter<PropertyType,Button>
cmp
- the componentl
- listenerpublic void removeListener(Button cmp, ActionListener<ActionEvent> l)
UiBinding.ComponentAdapter
removeListener
in class UiBinding.ComponentAdapter<PropertyType,Button>
cmp
- the componentl
- listener