public static class UiBinding.CheckBoxRadioSelectionAdapter<PropertyType>

  1. Object
  2. UiBinding.ComponentAdapter<PropertyType, Button>
  3. UiBinding.CheckBoxRadioSelectionAdapter

Adapts a com.codename1.ui.CheckBox or com.codename1.ui.RadioButton to binding

Parameters

  • the: type of the property generic

Constructors

public CheckBoxRadioSelectionAdapter(UiBinding.ObjectConverter toPropertyType)Constructs a new binding

Methods

public void assignTo(PropertyType value, Button cmp)Assigns the value from the property into the component
public PropertyType getFrom(Button cmp)Returns the value for the set method of the property from the given component
public void bindListener(Button cmp, ActionListener<ActionEvent> l)Binds an action listener to changes in the component
public void removeListener(Button cmp, ActionListener<ActionEvent> l)Removes the action listener from changes in the component

Inherited fields

Inherited methods

Constructor details

CheckBoxRadioSelectionAdapter

public CheckBoxRadioSelectionAdapter(UiBinding.ObjectConverter toPropertyType)
Constructs a new binding

Parameters

toPropertyType UiBinding.ObjectConverter
the conversion logic to the property

Method details

assignTo

public void assignTo(PropertyType value, Button cmp)
Assigns the value from the property into the component

Parameters

value PropertyType
the value that was returned from the property get method
cmp Button
the component instance

getFrom

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

Parameters

cmp Button
the component

Returns

the value we can place into the set method

bindListener

public void bindListener(Button cmp, ActionListener<ActionEvent> l)
Binds an action listener to changes in the component

Parameters

cmp Button
the component
l ActionListener<ActionEvent>
listener

removeListener

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

Parameters

cmp Button
the component
l ActionListener<ActionEvent>
listener