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 componentMethods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()booleanIndicates whether some other object is "equal to" this one.final ClassgetClass()Returns the runtime class of an object.inthashCode()Returns a hash code value for the object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.toString()Returns a string representation of the object.final voidwait()Causes current thread to wait until another thread invokes the method or the method for this object.final voidwait(long timeout) Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.final voidwait(long timeout, int nanos) Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
-
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
-
-