All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dtai.gwt.DataControl

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

public abstract class DataControl
extends BorderGadget
implements MouseListener, FocusListener
The DataControl abstract base Base class for data edit control for edit attribute data


Variable Index

 o data
 o edit
 o label
 o lastValue
 o max
 o min
 o oldData
 o selected

Constructor Index

 o DataControl()
default constructor which constructs a data control
 o DataControl(Object)

Method Index

 o doLayout()
arranges the gadgets
 o focusGained(FocusEvent)
 o focusLost(FocusEvent)
 o getData()
gets the data of the data control
 o getLabelText()
gets the label text of the data control
 o getMinimumSize()
gets the minimum size of the data control
 o getPreferredSize()
gets the preffered size of the data control
 o isDialog()
 o mouseClicked(MouseEvent)
mouseClicked
 o mouseEntered(MouseEvent)
mouseEntered
 o mouseExited(MouseEvent)
mouseExcited
 o mousePressed(MouseEvent)
mousePressed
 o mouseReleased(MouseEvent)
mouseReleased
 o reset()
resets the data of the data control
 o saveData(Object)
saves the data of the data control
 o setData(Object)
sets the data of the data control
 o setMaxMin(double, double)
 o setSelected(boolean)
responds to the user selecting the data control

Variables

 o data
 protected Object data
 o label
 protected LabelGadget label
 o edit
 protected TextFieldGadget edit
 o lastValue
 protected String lastValue
 o selected
 protected boolean selected
 o max
 protected double max
 o min
 protected double min
 o oldData
 protected Object oldData

Constructors

 o DataControl
 public DataControl()
default constructor which constructs a data control

 o DataControl
 public DataControl(Object data)

Methods

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

Parameters:
data - the data of the data control
 o getData
 public abstract Object getData()
gets the data of the data control

Returns:
the data of the data control
 o saveData
 public void saveData(Object data)
saves the data of the data control

Parameters:
data - the data of the data control
 o setSelected
 public void setSelected(boolean in)
responds to the user selecting the data control

Parameters:
in - whether or not the data control is selected
Overrides:
setSelected in class Gadget
 o doLayout
 public void doLayout()
arranges the gadgets

Overrides:
doLayout in class ContainerGadget
 o getPreferredSize
 public Dimension getPreferredSize()
gets the preffered size of the data control

Returns:
the preferred size
Overrides:
getPreferredSize in class ContainerGadget
 o getMinimumSize
 public Dimension getMinimumSize()
gets the minimum size of the data control

Returns:
the minimum size
Overrides:
getMinimumSize in class ContainerGadget
 o reset
 public void reset()
resets the data of the data control

 o getLabelText
 public String getLabelText()
gets the label text of the data control

Returns:
the label text of the data control
 o setMaxMin
 public void setMaxMin(double max,
                       double min)
 o mouseClicked
 public void mouseClicked(MouseEvent e)
mouseClicked

Parameters:
e - the mouse event
 o mousePressed
 public void mousePressed(MouseEvent e)
mousePressed

Parameters:
e - the mouse event
 o mouseReleased
 public void mouseReleased(MouseEvent e)
mouseReleased

Parameters:
e - the mouse event
 o mouseEntered
 public void mouseEntered(MouseEvent e)
mouseEntered

Parameters:
e - the mouse event
 o mouseExited
 public void mouseExited(MouseEvent e)
mouseExcited

Parameters:
e - the mouse event
 o focusGained
 public void focusGained(FocusEvent e)
 o focusLost
 public void focusLost(FocusEvent e)
 o isDialog
 public boolean isDialog()

All Packages  Class Hierarchy  This Package  Previous  Next  Index