Package org.apache.pivot.wtk
Interface Button.SelectedBindMapping
-
- Enclosing class:
- Button
public static interface Button.SelectedBindMappingTranslates between selection state and context data during data binding.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisSelected(java.lang.Object value)Converts a context value to a selection state during aComponent.load(Object)operation.java.lang.ObjectvalueOf(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 abooleanvalue 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.
-
-