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
-
DoubleControl(String)
-
-
DoubleControl(String, Object)
- constructor which creates a double control with the specified label and data
-
doLayout()
- arranges the gadgets
-
focusGained(FocusEvent)
- focusGained
-
focusLost(FocusEvent)
- focusLost
-
getData()
- gets the data(floating point) of the double control
-
keyPressed(KeyEvent)
- keyPressed
-
keyReleased(KeyEvent)
- keyReleased
-
keyTyped(KeyEvent)
- keyTyped
-
reset()
- resets the data of the double control
-
setData(Object)
- sets the data(floating point) of the double control
-
setSelected(boolean)
- brings up a masked text edit field
DoubleControl
public DoubleControl(String label)
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
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
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
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
keyTyped
public void keyTyped(KeyEvent e)
- keyTyped
- Parameters:
- e - the key event
keyPressed
public void keyPressed(KeyEvent e)
- keyPressed
- Parameters:
- e - the key event
keyReleased
public void keyReleased(KeyEvent e)
- keyReleased
- Parameters:
- e - the key event
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
reset
public void reset()
- resets the data of the double 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