Class UiBinding.ComponentAdapter<PropertyType, ComponentType>
- Direct Known Subclasses:
UiBinding.CheckBoxRadioSelectionAdapter, UiBinding.PickerAdapter, UiBinding.RadioListAdapter, UiBinding.TextAreaAdapter, UiBinding.TextComponentAdapter
- Enclosing class:
UiBinding
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final UiBinding.ObjectConverterUsed by the subclass to convert values from the property to the componentprotected final UiBinding.ObjectConverterUsed by the subclass to convert values from the component to the property -
Constructor Summary
ConstructorsConstructorDescriptionComponentAdapter(UiBinding.ObjectConverter toPropertyType, UiBinding.ObjectConverter toComponentType) Subclasses usually provide the toComponentType and allow their callers to define the toPropertyType -
Method Summary
Modifier and TypeMethodDescriptionabstract voidassignTo(PropertyType value, ComponentType cmp) Assigns the value from the property into the componentabstract voidBinds an action listener to changes in the componentabstract PropertyTypegetFrom(ComponentType cmp) Returns the value for the set method of the property from the given componentabstract voidRemoves the action listener from changes in the component
-
Field Details
-
toPropertyType
Used by the subclass to convert values from the component to the property -
toComponentType
Used by the subclass to convert values from the property to the component
-
-
Constructor Details
-
ComponentAdapter
public ComponentAdapter(UiBinding.ObjectConverter toPropertyType, UiBinding.ObjectConverter toComponentType) Subclasses usually provide the toComponentType and allow their callers to define the toPropertyType
Parameters
-
toPropertyType: @param toPropertyType Used by the subclass to convert values from the component to the property -
toComponentType: @param toComponentType Used by the subclass to convert values from the property to the component
-
-
-
Method Details
-
assignTo
Assigns the value from the property into the component
Parameters
-
value: the value that was returned from the property get method -
cmp: the component instance
-
-
getFrom
Returns 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
-
bindListener
Binds an action listener to changes in the component
Parameters
-
cmp: the component -
l: listener
-
-
removeListener
Removes the action listener from changes in the component
Parameters
-
cmp: the component -
l: listener
-
-