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


Constructor Index

 o ObserveText(int)
Constructor

Method Index

 o setText(String)
Set text Save value as software
 o userChanged()
Tell if the last change in the value was made by the user
 o 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.

Constructors

 o ObserveText
 public ObserveText(int size)
Constructor

Parameters:
int - Number of characters to display

Methods

 o setText
 public synchronized void setText(String text)
Set text Save value as software

Parameters:
String - String to display
Overrides:
setText in class TextComponent
 o 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
 o 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