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