All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dtai.gwt.ColorControl

java.lang.Object
   |
   +----dtai.gwt.Gadget
           |
           +----dtai.gwt.ContainerGadget
                   |
                   +----dtai.gwt.PanelGadget
                           |
                           +----dtai.gwt.BorderGadget
                                   |
                                   +----dtai.gwt.DataControl
                                           |
                                           +----dtai.gwt.ColorControl

public class ColorControl
extends DataControl
implements ItemListener
The StringControl class GUI Class for editing string data


Constructor Index

 o ColorControl(String)
Constructor which creates a color control with the specified label
 o ColorControl(String, Object)
Constructor which creates a color control with the specified label and data(color)

Method Index

 o doLayout()
arranges the gadgets
 o getData()
gets the color of the color control
 o itemStateChanged(ItemEvent)
invoked when an item's state has changed
 o reset()
resets the data of the color control
 o setData(Object)
sets the color of the color control
 o setSelected(boolean)
* brings up the color choice box

Constructors

 o ColorControl
 public ColorControl(String label)
Constructor which creates a color control with the specified label

Parameters:
label - the label of the color control
 o ColorControl
 public ColorControl(String label,
                     Object data)
Constructor which creates a color control with the specified label and data(color)

Parameters:
label - the label of the color control
data - the data(color) of the color control

Methods

 o setData
 public void setData(Object data)
sets the color of the color control

Parameters:
data - the data(color) of the color control
Overrides:
setData in class DataControl
 o getData
 public Object getData()
gets the color of the color control

Returns:
the data(color) of the color control
Overrides:
getData in class DataControl
 o setSelected
 public void setSelected(boolean in)
* brings up the color choice box

Parameters:
in - whether or not the color control is selected
Overrides:
setSelected in class DataControl
 o itemStateChanged
 public void itemStateChanged(ItemEvent e)
invoked when an item's state has changed

Parameters:
e - the item event
 o reset
 public void reset()
resets the data of the color control

Overrides:
reset in class DataControl
 o doLayout
 public void doLayout()
arranges the gadgets

Overrides:
doLayout in class DataControl

All Packages  Class Hierarchy  This Package  Previous  Next  Index