All Packages Class Hierarchy This Package Previous Next Index
Class dtai.gwt.BooleanControl
java.lang.Object
|
+----dtai.gwt.Gadget
|
+----dtai.gwt.ContainerGadget
|
+----dtai.gwt.PanelGadget
|
+----dtai.gwt.BorderGadget
|
+----dtai.gwt.DataControl
|
+----dtai.gwt.BooleanControl
- public class BooleanControl
- extends DataControl
- implements ItemListener
The BooleanControl class
GUI Class for editing boolean data
-
BooleanControl(String)
- Constructor which creates a boolean control with the specified label
-
BooleanControl(String, Object)
- Constructor which creates a boolean control with the specified label and the data
set to true or false
-
doLayout()
- arranges gadgets
-
getChoice()
-
-
getData()
- gets the data(true/false) of the boolean control
-
itemStateChanged(ItemEvent)
- Invoked when an item's state has been changed.
-
reset()
- resets the data of the control
-
setData(Object)
- sets the data of the boolean control either true or false
-
setSelected(boolean)
- brings up the boolean choice box
BooleanControl
public BooleanControl(String label)
- Constructor which creates a boolean control with the specified label
- Parameters:
- the - label of the boolean control
BooleanControl
public BooleanControl(String label,
Object data)
- Constructor which creates a boolean control with the specified label and the data
set to true or false
- Parameters:
- the - label of the boolean control
- data - the data(true/false) of the boolean control (as a String)
setData
public void setData(Object data)
- sets the data of the boolean control either true or false
- Parameters:
- data - the data(true/false) of the boolean control
- Overrides:
- setData in class DataControl
getData
public Object getData()
- gets the data(true/false) of the boolean control
- Returns:
- the data of the boolean control(true/false)
- Overrides:
- getData in class DataControl
setSelected
public void setSelected(boolean in)
- brings up the boolean choice box
- Parameters:
- in - whether or not the boolean control is selected
- Overrides:
- setSelected in class DataControl
itemStateChanged
public void itemStateChanged(ItemEvent e)
- Invoked when an item's state has been changed.
- Parameters:
- e - the item event
reset
public void reset()
- resets the data of the control
- Overrides:
- reset in class DataControl
doLayout
public void doLayout()
- arranges gadgets
- Overrides:
- doLayout in class DataControl
getChoice
public ChoiceGadget getChoice()
All Packages Class Hierarchy This Package Previous Next Index