Package org.apache.pivot.wtk
Interface Spinner.SpinnerDataBindMapping
-
- Enclosing class:
- Spinner
public static interface Spinner.SpinnerDataBindMapping
Translates between spinner and bind context data during data binding.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<?>
toSpinnerData(java.lang.Object value)
Converts a context value to spinner data during aComponent.load(Object)
operation.java.lang.Object
valueOf(List<?> spinnerData)
Converts spinner data to a context value during aComponent.store(Object)
operation.
-
-
-
Method Detail
-
toSpinnerData
List<?> toSpinnerData(java.lang.Object value)
Converts a context value to spinner data during aComponent.load(Object)
operation.- Parameters:
value
- The value retrieved from the user context.- Returns:
- That object converted to a list.
-
valueOf
java.lang.Object valueOf(List<?> spinnerData)
Converts spinner data to a context value during aComponent.store(Object)
operation.- Parameters:
spinnerData
- The spinner data list.- Returns:
- This list converted to data that can be stored in the user context.
-
-