All Packages Class Hierarchy This Package Previous Next Index
Class dtai.gwt.ColorComboGadget
java.lang.Object
|
+----dtai.gwt.Gadget
|
+----dtai.gwt.ContainerGadget
|
+----dtai.gwt.PanelGadget
|
+----dtai.gwt.BorderGadget
|
+----dtai.gwt.ComboBoxGadget
|
+----dtai.gwt.ChoiceGadget
|
+----dtai.gwt.ColorComboGadget
- public class ColorComboGadget
- extends ChoiceGadget
The ColorCombo class provides color choices
for the user, maintained in a hashtable.
-
ColorComboGadget()
- Constructor sets the number of visible choices and
initializes colors list.
-
getColor()
- Gets the color from the colors hashtable, else returns
the default gadget color.
-
getColorsHashtable()
-
-
setColor(Color)
- Selects the given color from the hashtable, if it can be found
there.
ColorComboGadget
public ColorComboGadget()
- Constructor sets the number of visible choices and
initializes colors list.
getColor
public Color getColor()
- Gets the color from the colors hashtable, else returns
the default gadget color.
- Returns:
- the color
setColor
public void setColor(Color newColor)
- Selects the given color from the hashtable, if it can be found
there. Otherwise, it is decomposed into its red, green, and blue
components and stored via it's ingredients.
- Parameters:
- newColor - the new color
getColorsHashtable
public Hashtable getColorsHashtable()
All Packages Class Hierarchy This Package Previous Next Index