Class UiBinding.RadioListAdapter<PropertyType>
java.lang.Object
com.codename1.properties.UiBinding.ComponentAdapter<PropertyType, RadioButton[]>
com.codename1.properties.UiBinding.RadioListAdapter<PropertyType>
- Enclosing class:
UiBinding
public static class UiBinding.RadioListAdapter<PropertyType>
extends UiBinding.ComponentAdapter<PropertyType, RadioButton[]>
Adapts a set of com.codename1.ui.RadioButton to a selection within a list of values
Parameters
the: type of the property generic
-
Field Summary
Fields inherited from class UiBinding.ComponentAdapter
toComponentType, toPropertyType -
Constructor Summary
ConstructorsConstructorDescriptionRadioListAdapter(UiBinding.ObjectConverter toPropertyType, PropertyType... values) Constructs a new binding -
Method Summary
Modifier and TypeMethodDescriptionvoidassignTo(PropertyType value, RadioButton[] cmp) Assigns the value from the property into the componentvoidbindListener(RadioButton[] cmp, ActionListener<ActionEvent> l) Binds an action listener to changes in the componentgetFrom(RadioButton[] cmp) Returns the value for the set method of the property from the given componentvoidremoveListener(RadioButton[] cmp, ActionListener<ActionEvent> l) Removes the action listener from changes in the component
-
Constructor Details
-
RadioListAdapter
Constructs a new binding
Parameters
-
toPropertyType: the conversion logic to the property -
values: potential values for the selection
-
-
-
Method Details
-
assignTo
Description copied from class:UiBinding.ComponentAdapterAssigns the value from the property into the component
Parameters
-
value: the value that was returned from the property get method -
cmp: the component instance
- Specified by:
assignToin classUiBinding.ComponentAdapter<PropertyType, RadioButton[]>
-
-
getFrom
Description copied from class:UiBinding.ComponentAdapterReturns the value for the set method of the property from the given component
Parameters
cmp: the component
Returns
the value we can place into the set method
- Specified by:
getFromin classUiBinding.ComponentAdapter<PropertyType, RadioButton[]>
-
bindListener
Description copied from class:UiBinding.ComponentAdapterBinds an action listener to changes in the component
Parameters
-
cmp: the component -
l: listener
- Specified by:
bindListenerin classUiBinding.ComponentAdapter<PropertyType, RadioButton[]>
-
-
removeListener
Description copied from class:UiBinding.ComponentAdapterRemoves the action listener from changes in the component
Parameters
-
cmp: the component -
l: listener
- Specified by:
removeListenerin classUiBinding.ComponentAdapter<PropertyType, RadioButton[]>
-
-