All Packages Class Hierarchy This Package Previous Next Index
Class JObserve.GUI.ObserveText
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.TextComponent
|
+----java.awt.TextField
|
+----JObserve.GUI.ObserveText
- public class ObserveText
- extends TextField
A TextField that can tell if the user changed it
-
ObserveText(int)
- Constructor
-
setText(String)
- Set text
Save value as software
-
userChanged()
- Tell if the last change in the value was made by the user
-
userSetText(String)
- Set text as though a user had done it
This function is for cases when a change in a TextField is
required by a user action but the user doesn't directly
cause the change.
ObserveText
public ObserveText(int size)
- Constructor
- Parameters:
-
int
- Number of characters to display
setText
public synchronized void setText(String text)
- Set text
Save value as software
- Parameters:
-
String
- String to display
- Overrides:
- setText in class TextComponent
userSetText
public synchronized void userSetText(String text)
- Set text as though a user had done it
This function is for cases when a change in a TextField is
required by a user action but the user doesn't directly
cause the change.
- Parameters:
-
String
- item to be added
userChanged
public boolean userChanged()
- Tell if the last change in the value was made by the user
- Returns:
-
Boolean
has user changed
All Packages Class Hierarchy This Package Previous Next Index