public static class UiBinding.RadioListAdapter<PropertyType>
- Object
- UiBinding.ComponentAdapter<PropertyType, RadioButton[]>
- UiBinding.RadioListAdapter
Adapts a set of com.codename1.ui.RadioButton to a selection within a list of values
Parameters
the: type of the property generic
Constructors
public RadioListAdapter(UiBinding.ObjectConverter toPropertyType, PropertyType... values) | Constructs a new binding |
Methods
public void assignTo(PropertyType value, RadioButton[] cmp) | Assigns the value from the property into the component |
public PropertyType getFrom(RadioButton[] cmp) | Returns the value for the set method of the property from the given component |
public void bindListener(RadioButton[] cmp, ActionListener<ActionEvent> l) | Binds an action listener to changes in the component |
public void removeListener(RadioButton[] cmp, ActionListener<ActionEvent> l) | Removes the action listener from changes in the component |
Inherited fields
Inherited methods
Constructor details
RadioListAdapter
public RadioListAdapter(UiBinding.ObjectConverter toPropertyType, PropertyType... values)Constructs a new binding
Parameters
toPropertyTypeUiBinding.ObjectConverter- the conversion logic to the property
valuesPropertyType...- potential values for the selection
Method details
assignTo
public void assignTo(PropertyType value, RadioButton[] cmp)Assigns the value from the property into the component
Parameters
valuePropertyType- the value that was returned from the property get method
cmpRadioButton[]- the component instance
getFrom
public PropertyType getFrom(RadioButton[] cmp)Returns the value for the set method of the property from the given component
Parameters
cmpRadioButton[]- the component
Returns
the value we can place into the set method
bindListener
public void bindListener(RadioButton[] cmp, ActionListener<ActionEvent> l)Binds an action listener to changes in the component
Parameters
cmpRadioButton[]- the component
lActionListener<ActionEvent>- listener
removeListener
public void removeListener(RadioButton[] cmp, ActionListener<ActionEvent> l)Removes the action listener from changes in the component
Parameters
cmpRadioButton[]- the component
lActionListener<ActionEvent>- listener