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


Constructor Index

 o BooleanControl(String)
Constructor which creates a boolean control with the specified label
 o BooleanControl(String, Object)
Constructor which creates a boolean control with the specified label and the data set to true or false

Method Index

 o doLayout()
arranges gadgets
 o getChoice()
 o getData()
gets the data(true/false) of the boolean control
 o itemStateChanged(ItemEvent)
Invoked when an item's state has been changed.
 o reset()
resets the data of the control
 o setData(Object)
sets the data of the boolean control either true or false
 o setSelected(boolean)
brings up the boolean choice box

Constructors

 o BooleanControl
 public BooleanControl(String label)
Constructor which creates a boolean control with the specified label

Parameters:
the - label of the boolean control
 o 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)

Methods

 o 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
 o 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
 o 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
 o itemStateChanged
 public void itemStateChanged(ItemEvent e)
Invoked when an item's state has been changed.

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

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

Overrides:
doLayout in class DataControl
 o getChoice
 public ChoiceGadget getChoice()

All Packages  Class Hierarchy  This Package  Previous  Next  Index