All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dtai.gwt.ChoiceControl

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

public class ChoiceControl
extends DataControl
implements ItemListener, FocusListener
The StringControl class GUI Class for editing string data


Constructor Index

 o ChoiceControl(String, ComboBoxGadget)
Constructor which creats a choice control with the specified label and combo box gadget
 o ChoiceControl(String, Object, ComboBoxGadget)
Constructor which creats a choice control with the specified label, combo box gadget, and data

Method Index

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

Constructors

 o ChoiceControl
 protected ChoiceControl(String label,
                         ComboBoxGadget choice)
Constructor which creats a choice control with the specified label and combo box gadget

Parameters:
label - the label of the choice control
choice - the combo box gadget of the choice control
 o ChoiceControl
 protected ChoiceControl(String label,
                         Object data,
                         ComboBoxGadget choice)
Constructor which creats a choice control with the specified label, combo box gadget, and data

Parameters:
label - the label
choice - the combo box gadget of the choice control
data - the data of the choice control

Methods

 o focusGained
 public void focusGained(FocusEvent e)
focusGained

Parameters:
e - - the focus event
Overrides:
focusGained in class DataControl
 o focusLost
 public void focusLost(FocusEvent e)
focusLost

Parameters:
e - - the focus event
Overrides:
focusLost in class DataControl
 o setData
 public void setData(Object data)
sets the data of the choice control

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

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

Parameters:
in - whether or not the choice 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 choice 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