Package org.apache.pivot.wtk
Interface Button.StateBindMapping
-
- Enclosing class:
- Button
public static interface Button.StateBindMapping
Translates between button state and context data during data binding.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Button.State
toState(java.lang.Object value)
Converts a context value to a button state during aComponent.load(Object)
operation.java.lang.Object
valueOf(Button.State state)
Converts a button state to a context value during aComponent.store(Object)
operation.
-
-
-
Method Detail
-
toState
Button.State toState(java.lang.Object value)
Converts a context value to a button state during aComponent.load(Object)
operation.- Parameters:
value
- The bound object's property value which must be converted to a button's state value.- Returns:
- The converted button state.
-
valueOf
java.lang.Object valueOf(Button.State state)
Converts a button state to a context value during aComponent.store(Object)
operation.- Parameters:
state
- The button's current state value which must be converted to a value suitable for storage in the bound object's property.- Returns:
- The converted state value.
-
-