All Packages Class Hierarchy This Package Previous Next Index
Class observable.ObsTextField
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.TextComponent
|
+----java.awt.TextField
|
+----dpscomponents.DblTextField
|
+----observable.ObsTextField
- public class ObsTextField
- extends DblTextField
- implements Observer
This simple extension of the DblTextField ties the value entered
into the field with an ObservableDbl variable.
- Version:
- $Revision: 1.1.1.1 $, $Date: 1999/11/15 20:37:49 $.
- Author:
- Daren Stotler
- See Also:
- DblTextField, ObservableDbl
-
precision_
-
-
ObsTextField(ObservableDbl, double, int)
- Constructor.
-
keyReleased(KeyEvent)
- This method overrides the corresponding KeyListener method in
DblTextField.
-
update(Observable, Object)
- Requisite method for the Observer interface.
precision_
protected int precision_
ObsTextField
public ObsTextField(ObservableDbl od,
double defval,
int size)
- Constructor.
- Parameters:
- od - ObservableDbl to be tied to this text field
- defval - default value to be displayed in the text field
- size - the number of columns in the text field
update
public void update(Observable obs,
Object arg)
- Requisite method for the Observer interface. It's called whenever
an Observer changes. This one updates the text field to reflect
the change in the ObservableDbl.
- See Also:
- update
keyReleased
public void keyReleased(KeyEvent evt)
- This method overrides the corresponding KeyListener method in
DblTextField. It watches for the "Enter" key and checks the
text when it appears. The ObservableDbl's maximum and minimum
are also enforced.
- Overrides:
- keyReleased in class DblTextField
- See Also:
- keyReleased
All Packages Class Hierarchy This Package Previous Next Index