All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dtai.gwt.DoubleControl

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

public class DoubleControl
extends DataControl
implements KeyListener, FocusListener
The DoubleControl class GUI Class for editing floating point data


Constructor Index

 o DoubleControl(String)
 o DoubleControl(String, Object)
constructor which creates a double control with the specified label and data

Method Index

 o doLayout()
arranges the gadgets
 o focusGained(FocusEvent)
focusGained
 o focusLost(FocusEvent)
focusLost
 o getData()
gets the data(floating point) of the double control
 o keyPressed(KeyEvent)
keyPressed
 o keyReleased(KeyEvent)
keyReleased
 o keyTyped(KeyEvent)
keyTyped
 o reset()
resets the data of the double control
 o setData(Object)
sets the data(floating point) of the double control
 o setSelected(boolean)
brings up a masked text edit field

Constructors

 o DoubleControl
 public DoubleControl(String label)
 o DoubleControl
 public DoubleControl(String label,
                      Object data)
constructor which creates a double control with the specified label and data

Parameters:
label - the label of the double control
data - the floating point data of the double control

Methods

 o setData
 public void setData(Object data)
sets the data(floating point) of the double control

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

Returns:
the floating point data of the double control
Overrides:
getData in class DataControl
 o setSelected
 public void setSelected(boolean in)
brings up a masked text edit field

Parameters:
in - whether or not the double control is selected
Overrides:
setSelected in class DataControl
 o keyTyped
 public void keyTyped(KeyEvent e)
keyTyped

Parameters:
e - the key event
 o keyPressed
 public void keyPressed(KeyEvent e)
keyPressed

Parameters:
e - the key event
 o keyReleased
 public void keyReleased(KeyEvent e)
keyReleased

Parameters:
e - the key event
 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 reset
 public void reset()
resets the data of the double 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