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
-
ChoiceControl(String, ComboBoxGadget)
- Constructor which creats a choice control with the specified
label and combo box gadget
-
ChoiceControl(String, Object, ComboBoxGadget)
- Constructor which creats a choice control with the specified
label, combo box gadget, and data
-
doLayout()
- arranges the gadgets
-
focusGained(FocusEvent)
- focusGained
-
focusLost(FocusEvent)
- focusLost
-
getData()
- gets the data of the choice control
-
itemStateChanged(ItemEvent)
- invoked when an item's state has changed
-
reset()
- resets the data of the choice control
-
setData(Object)
- sets the data of the choice control
-
setSelected(boolean)
- brings up the choice control box
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
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
focusGained
public void focusGained(FocusEvent e)
- focusGained
- Parameters:
- e - - the focus event
- Overrides:
- focusGained in class DataControl
focusLost
public void focusLost(FocusEvent e)
- focusLost
- Parameters:
- e - - the focus event
- Overrides:
- focusLost in class DataControl
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
getData
public Object getData()
- gets the data of the choice control
- Returns:
- the data of the choice control
- Overrides:
- getData in class DataControl
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
itemStateChanged
public void itemStateChanged(ItemEvent e)
- invoked when an item's state has changed
- Parameters:
- e - the item event
reset
public void reset()
- resets the data of the choice control
- Overrides:
- reset in class DataControl
doLayout
public void doLayout()
- arranges the gadgets
- Overrides:
- doLayout in class DataControl
All Packages Class Hierarchy This Package Previous Next Index