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.


Constructor Index

 o ColorComboGadget()
Constructor sets the number of visible choices and initializes colors list.

Method Index

 o getColor()
Gets the color from the colors hashtable, else returns the default gadget color.
 o getColorsHashtable()
 o setColor(Color)
Selects the given color from the hashtable, if it can be found there.

Constructors

 o ColorComboGadget
 public ColorComboGadget()
Constructor sets the number of visible choices and initializes colors list.

Methods

 o getColor
 public Color getColor()
Gets the color from the colors hashtable, else returns the default gadget color.

Returns:
the color
 o 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
 o getColorsHashtable
 public Hashtable getColorsHashtable()

All Packages  Class Hierarchy  This Package  Previous  Next  Index