Package org.apache.pivot.wtk
Interface ColorChooser.SelectedColorBindMapping
-
- Enclosing class:
- ColorChooser
public static interface ColorChooser.SelectedColorBindMapping
Translates between color and context data during data binding.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.awt.Color
toColor(java.lang.Object value)
Converts a context value to a color.java.lang.Object
valueOf(java.awt.Color color)
Converts a color to a context value.
-
-
-
Method Detail
-
toColor
java.awt.Color toColor(java.lang.Object value)
Converts a context value to a color.- Parameters:
value
- The value returned from the bound object.- Returns:
- The value converted to a
Color
.
-
valueOf
java.lang.Object valueOf(java.awt.Color color)
Converts a color to a context value.- Parameters:
color
- The color value selected in this component.- Returns:
- The color value converted to a format suitable for persistence in the bound object.
-
-