|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.wtk.Component
org.apache.pivot.wtk.Container
org.apache.pivot.wtk.ColorChooser
public class ColorChooser
Component that allows the user to select a color.
Nested Class Summary | |
---|---|
static interface |
ColorChooser.SelectedColorBindMapping
Translates between color and context data during data binding. |
Nested classes/interfaces inherited from class org.apache.pivot.wtk.Container |
---|
Container.EDT_Checker |
Nested classes/interfaces inherited from class org.apache.pivot.wtk.Component |
---|
Component.DecoratorSequence, Component.StyleDictionary, Component.UserDataDictionary |
Nested classes/interfaces inherited from interface org.apache.pivot.collections.Sequence |
---|
Sequence.Tree<T> |
Constructor Summary | |
---|---|
ColorChooser()
|
Method Summary | |
---|---|
void |
clear()
If a bind key is set, clears the selected color. |
ListenerList<ColorChooserBindingListener> |
getColorChooserBindingListeners()
Returns the color chooser binding listener list. |
ListenerList<ColorChooserSelectionListener> |
getColorChooserSelectionListeners()
Returns the color chooser selection listener list. |
Color |
getSelectedColor()
Gets the currently selected color, or null if no color is selected. |
ColorChooser.SelectedColorBindMapping |
getSelectedColorBindMapping()
|
BindType |
getSelectedColorBindType()
|
String |
getSelectedColorKey()
Gets the data binding key that is set on this color chooser. |
void |
load(Object context)
Loads the selected color from the specified bind context using this color chooser's bind key, if one is set. |
void |
setSelectedColor(Color selectedColor)
Sets the selected color. |
void |
setSelectedColor(String selectedColor)
Sets the selected color. |
void |
setSelectedColorBindMapping(ColorChooser.SelectedColorBindMapping selectedColorBindMapping)
|
void |
setSelectedColorBindType(BindType selectedColorBindType)
|
void |
setSelectedColorKey(String selectedColorKey)
Sets this color chooser's data binding key. |
void |
store(Object context)
Stores the selected color into the specified bind context using this color chooser's bind key, if one is set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ColorChooser()
Method Detail |
---|
public Color getSelectedColor()
public void setSelectedColor(Color selectedColor)
selectedColor
- The color to select, or null to clear the selection.public void setSelectedColor(String selectedColor)
selectedColor
- The color to select, or null to clear the selection.public String getSelectedColorKey()
public void setSelectedColorKey(String selectedColorKey)
public BindType getSelectedColorBindType()
public void setSelectedColorBindType(BindType selectedColorBindType)
public ColorChooser.SelectedColorBindMapping getSelectedColorBindMapping()
public void setSelectedColorBindMapping(ColorChooser.SelectedColorBindMapping selectedColorBindMapping)
public void load(Object context)
load
in class Container
public void store(Object context)
store
in class Container
public void clear()
clear
in class Container
public ListenerList<ColorChooserSelectionListener> getColorChooserSelectionListeners()
public ListenerList<ColorChooserBindingListener> getColorChooserBindingListeners()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |