All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dtai.gwt.IntegerControl

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

public class IntegerControl
extends DataControl
implements KeyListener, FocusListener
The IntegerControl class GUI Class for editing integer data


Constructor Index

 o IntegerControl(String)
 o IntegerControl(String, Object)
constructor which creates an integer 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(integer) of the integer control
 o keyPressed(KeyEvent)
keyPressed
 o keyReleased(KeyEvent)
keyReleased
 o keyTyped(KeyEvent)
keyTyped
 o reset()
resets the data of the integer control
 o setData(Object)
sets the data(integer) of the integer control
 o setSelected(boolean)
brings up a masked text field edit

Constructors

 o IntegerControl
 public IntegerControl(String label)
 o IntegerControl
 public IntegerControl(String label,
                       Object data)
constructor which creates an integer control with the specified label and data

Parameters:
label - the label of the integer control
data - the data(integer) of the integer control

Methods

 o setData
 public void setData(Object data)
sets the data(integer) of the integer control

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

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

Parameters:
in - whether or not the integer 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 integer 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