|
||||||||||
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.Button
org.apache.pivot.wtk.ColorChooserButton
public class ColorChooserButton
A component that allows a user to select a color. The color chooser is hidden until the user pushes the button.
Nested Class Summary | |
---|---|
static interface |
ColorChooserButton.Skin
ColorChooserButton skin interface. |
Nested classes/interfaces inherited from class org.apache.pivot.wtk.Button |
---|
Button.ButtonDataBindMapping, Button.DataRenderer, Button.SelectedBindMapping, Button.State, Button.StateBindMapping |
Nested classes/interfaces inherited from class org.apache.pivot.wtk.Component |
---|
Component.DecoratorSequence, Component.StyleDictionary, Component.UserDataDictionary |
Constructor Summary | |
---|---|
ColorChooserButton()
|
|
ColorChooserButton(Object buttonData)
|
Method Summary | |
---|---|
void |
clear()
If a bind key is set, clears the selected color. |
ListenerList<ColorChooserButtonBindingListener> |
getColorChooserButtonBindingListeners()
Returns the color chooser button binding listener list. |
ListenerList<ColorChooserButtonSelectionListener> |
getColorChooserButtonSelectionListeners()
Returns the color chooser button selection listener list. |
Window |
getListPopup()
|
Color |
getSelectedColor()
Returns the currently selected color. |
ColorChooser.SelectedColorBindMapping |
getSelectedColorBindMapping()
|
BindType |
getSelectedColorBindType()
|
String |
getSelectedColorKey()
Gets the data binding key that is set on this color chooser button. |
void |
load(Object context)
Loads the selected color from the specified bind context using this color picker button'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 bindMapping)
|
void |
setSelectedColorBindType(BindType selectedColorBindType)
|
void |
setSelectedColorKey(String selectedColorKey)
Sets this color chooser button's data binding key. |
protected void |
setSkin(Skin skin)
Sets the skin, replacing any previous skin. |
void |
setToggleButton(boolean toggleButton)
Sets the button's toggle state. |
void |
store(Object context)
Stores the selected color into the specified bind context using this color picker button'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 ColorChooserButton()
public ColorChooserButton(Object buttonData)
Method Detail |
---|
protected void setSkin(Skin skin)
Component
setSkin
in class Component
skin
- The new skin.public Window getListPopup()
public void setToggleButton(boolean toggleButton)
Button
setToggleButton
in class Button
UnsupportedOperationException
- This method is not supported by ColorChooserButton.public Color getSelectedColor()
public void setSelectedColor(Color selectedColor)
selectedColor
- The color to select, or null to clear the selection.public final void setSelectedColor(String selectedColor)
selectedColor
- A string representing a color.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 bindMapping)
public void load(Object context)
load
in class Button
public void store(Object context)
store
in class Button
public void clear()
clear
in class Button
public ListenerList<ColorChooserButtonSelectionListener> getColorChooserButtonSelectionListeners()
public ListenerList<ColorChooserButtonBindingListener> getColorChooserButtonBindingListeners()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |