public static class UiBinding.TextAreaAdapter<PropertyType>

  1. Object
  2. UiBinding.ComponentAdapter<PropertyType, TextArea>
  3. UiBinding.TextAreaAdapter

Adapts a com.codename1.ui.TextArea (and it’s subclass com.codename1.ui.TextField to binding

Parameters

  • the: type of the property generic

Constructors

public TextAreaAdapter(UiBinding.ObjectConverter toPropertyType)Constructs a new binding
public TextAreaAdapter()Constructs a new binding assuming a String property

Methods

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

Inherited fields

Inherited methods

Constructor details

TextAreaAdapter

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

Parameters

toPropertyType UiBinding.ObjectConverter
the conversion logic to the property

TextAreaAdapter

public TextAreaAdapter()
Constructs a new binding assuming a String property

Method details

assignTo

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

Parameters

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

getFrom

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

Parameters

cmp TextArea
the component

Returns

the value we can place into the set method

bindListener

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

Parameters

cmp TextArea
the component
l ActionListener<ActionEvent>
listener

removeListener

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

Parameters

cmp TextArea
the component
l ActionListener<ActionEvent>
listener