public abstract static class UiBinding.ComponentAdapter<PropertyType,ComponentType> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected UiBinding.ObjectConverter |
toComponentType
Used by the subclass to convert values from the property to the component
|
protected UiBinding.ObjectConverter |
toPropertyType
Used by the subclass to convert values from the component to the property
|
| Constructor and Description |
|---|
ComponentAdapter(UiBinding.ObjectConverter toPropertyType,
UiBinding.ObjectConverter toComponentType)
Subclasses usually provide the toComponentType and allow their callers to define
the toPropertyType
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
assignTo(PropertyType value,
ComponentType cmp)
Assigns the value from the property into the component
|
abstract void |
bindListener(ComponentType cmp,
ActionListener<ActionEvent> l)
Binds an action listener to changes in the component
|
abstract PropertyType |
getFrom(ComponentType cmp)
Returns the value for the set method of the property from the given component
|
abstract void |
removeListener(ComponentType cmp,
ActionListener<ActionEvent> l)
Removes the action listener from changes in the component
|
protected final UiBinding.ObjectConverter toPropertyType
protected final UiBinding.ObjectConverter toComponentType
public ComponentAdapter(UiBinding.ObjectConverter toPropertyType, UiBinding.ObjectConverter toComponentType)
toPropertyType - Used by the subclass to convert values from the component to
the propertytoComponentType - Used by the subclass to convert values from the property to
the componentpublic abstract void assignTo(PropertyType value, ComponentType cmp)
value - the value that was returned from the property get methodcmp - the component instancepublic abstract PropertyType getFrom(ComponentType cmp)
cmp - the componentpublic abstract void bindListener(ComponentType cmp, ActionListener<ActionEvent> l)
cmp - the componentl - listenerpublic abstract void removeListener(ComponentType cmp, ActionListener<ActionEvent> l)
cmp - the componentl - listener