public static class UiBinding.RadioListAdapter<PropertyType>

  1. Object
  2. UiBinding.ComponentAdapter<PropertyType, RadioButton[]>
  3. 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

toPropertyType UiBinding.ObjectConverter
the conversion logic to the property
values PropertyType...
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

value PropertyType
the value that was returned from the property get method
cmp RadioButton[]
the component instance

getFrom

public PropertyType getFrom(RadioButton[] cmp)
Returns the value for the set method of the property from the given component

Parameters

cmp RadioButton[]
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

cmp RadioButton[]
the component
l ActionListener<ActionEvent>
listener

removeListener

public void removeListener(RadioButton[] cmp, ActionListener<ActionEvent> l)
Removes the action listener from changes in the component

Parameters

cmp RadioButton[]
the component
l ActionListener<ActionEvent>
listener