Package org.apache.pivot.wtk
Interface Button.SelectedBindMapping
-
- Enclosing class:
- Button
public static interface Button.SelectedBindMapping
Translates between selection state and context data during data binding.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isSelected(java.lang.Object value)
Converts a context value to a selection state during aComponent.load(Object)
operation.java.lang.Object
valueOf(boolean selected)
Converts a selection state to a context value during aComponent.store(Object)
operation.
-
-
-
Method Detail
-
isSelected
boolean isSelected(java.lang.Object value)
Converts a context value to a selection state during aComponent.load(Object)
operation.- Parameters:
value
- The value from the bound object that must be converted to aboolean
value for the "selected" state.- Returns:
- The converted value.
-
valueOf
java.lang.Object valueOf(boolean selected)
Converts a selection state to a context value during aComponent.store(Object)
operation.- Parameters:
selected
- The button's "selected" value which must be converted to a suitable value to store as the bound object's property.- Returns:
- The converted "selected" value.
-
-