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
-
data
-
-
edit
-
-
label
-
-
lastValue
-
-
max
-
-
min
-
-
oldData
-
-
selected
-
-
DataControl()
- default constructor which constructs a data control
-
DataControl(Object)
-
-
doLayout()
- arranges the gadgets
-
focusGained(FocusEvent)
-
-
focusLost(FocusEvent)
-
-
getData()
- gets the data of the data control
-
getLabelText()
- gets the label text of the data control
-
getMinimumSize()
- gets the minimum size of the data control
-
getPreferredSize()
- gets the preffered size of the data control
-
isDialog()
-
-
mouseClicked(MouseEvent)
- mouseClicked
-
mouseEntered(MouseEvent)
- mouseEntered
-
mouseExited(MouseEvent)
- mouseExcited
-
mousePressed(MouseEvent)
- mousePressed
-
mouseReleased(MouseEvent)
- mouseReleased
-
reset()
- resets the data of the data control
-
saveData(Object)
- saves the data of the data control
-
setData(Object)
- sets the data of the data control
-
setMaxMin(double, double)
-
-
setSelected(boolean)
- responds to the user selecting the data control
data
protected Object data
label
protected LabelGadget label
edit
protected TextFieldGadget edit
lastValue
protected String lastValue
selected
protected boolean selected
max
protected double max
min
protected double min
oldData
protected Object oldData
DataControl
public DataControl()
- default constructor which constructs a data control
DataControl
public DataControl(Object data)
setData
public abstract void setData(Object data)
- sets the data of the data control
- Parameters:
- data - the data of the data control
getData
public abstract Object getData()
- gets the data of the data control
- Returns:
- the data of the data control
saveData
public void saveData(Object data)
- saves the data of the data control
- Parameters:
- data - the data of the data control
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
doLayout
public void doLayout()
- arranges the gadgets
- Overrides:
- doLayout in class ContainerGadget
getPreferredSize
public Dimension getPreferredSize()
- gets the preffered size of the data control
- Returns:
- the preferred size
- Overrides:
- getPreferredSize in class ContainerGadget
getMinimumSize
public Dimension getMinimumSize()
- gets the minimum size of the data control
- Returns:
- the minimum size
- Overrides:
- getMinimumSize in class ContainerGadget
reset
public void reset()
- resets the data of the data control
getLabelText
public String getLabelText()
- gets the label text of the data control
- Returns:
- the label text of the data control
setMaxMin
public void setMaxMin(double max,
double min)
mouseClicked
public void mouseClicked(MouseEvent e)
- mouseClicked
- Parameters:
- e - the mouse event
mousePressed
public void mousePressed(MouseEvent e)
- mousePressed
- Parameters:
- e - the mouse event
mouseReleased
public void mouseReleased(MouseEvent e)
- mouseReleased
- Parameters:
- e - the mouse event
mouseEntered
public void mouseEntered(MouseEvent e)
- mouseEntered
- Parameters:
- e - the mouse event
mouseExited
public void mouseExited(MouseEvent e)
- mouseExcited
- Parameters:
- e - the mouse event
focusGained
public void focusGained(FocusEvent e)
focusLost
public void focusLost(FocusEvent e)
isDialog
public boolean isDialog()
All Packages Class Hierarchy This Package Previous Next Index