PropertyType
- the type of the property genericpublic static class UiBinding.RadioListAdapter<PropertyType> extends UiBinding.ComponentAdapter<PropertyType,RadioButton[]>
RadioButton
to a selection within a list of valuestoComponentType, toPropertyType
Constructor and Description |
---|
RadioListAdapter(UiBinding.ObjectConverter toPropertyType,
PropertyType... values)
Constructs a new binding
|
Modifier and Type | Method and Description |
---|---|
void |
assignTo(PropertyType value,
RadioButton[] cmp)
Assigns the value from the property into the component
|
void |
bindListener(RadioButton[] cmp,
ActionListener<ActionEvent> l)
Binds an action listener to changes in the component
|
PropertyType |
getFrom(RadioButton[] cmp)
Returns the value for the set method of the property from the given component
|
void |
removeListener(RadioButton[] cmp,
ActionListener<ActionEvent> l)
Removes the action listener from changes in the component
|
public RadioListAdapter(UiBinding.ObjectConverter toPropertyType, PropertyType... values)
toPropertyType
- the conversion logic to the propertyvalues
- potential values for the selectionpublic void assignTo(PropertyType value, RadioButton[] cmp)
UiBinding.ComponentAdapter
assignTo
in class UiBinding.ComponentAdapter<PropertyType,RadioButton[]>
value
- the value that was returned from the property get methodcmp
- the component instancepublic PropertyType getFrom(RadioButton[] cmp)
UiBinding.ComponentAdapter
getFrom
in class UiBinding.ComponentAdapter<PropertyType,RadioButton[]>
cmp
- the componentpublic void bindListener(RadioButton[] cmp, ActionListener<ActionEvent> l)
UiBinding.ComponentAdapter
bindListener
in class UiBinding.ComponentAdapter<PropertyType,RadioButton[]>
cmp
- the componentl
- listenerpublic void removeListener(RadioButton[] cmp, ActionListener<ActionEvent> l)
UiBinding.ComponentAdapter
removeListener
in class UiBinding.ComponentAdapter<PropertyType,RadioButton[]>
cmp
- the componentl
- listener