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.ComponentAdapterassignTo 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.ComponentAdaptergetFrom in class UiBinding.ComponentAdapter<PropertyType,RadioButton[]>cmp - the componentpublic void bindListener(RadioButton[] cmp, ActionListener<ActionEvent> l)
UiBinding.ComponentAdapterbindListener in class UiBinding.ComponentAdapter<PropertyType,RadioButton[]>cmp - the componentl - listenerpublic void removeListener(RadioButton[] cmp, ActionListener<ActionEvent> l)
UiBinding.ComponentAdapterremoveListener in class UiBinding.ComponentAdapter<PropertyType,RadioButton[]>cmp - the componentl - listener