All Packages Class Hierarchy This Package Previous Next Index
Class JObserve.GUI.ObserveChoice
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Choice
|
+----JObserve.GUI.ObserveChoice
- public class ObserveChoice
- extends Choice
A Choice that can tell if the user changed it
-
ObserveChoice()
- Constructor
-
add(String)
- Add item
Save first as selection
-
remove(String)
- Remove item
If this is the previous software selection null string
-
removeAll()
- Remove all items
-
select(String)
- Set selection
-
userChanged()
- Tell if the last change in the selection was made by the user
-
userSelect(String)
- Set selection as though a user had done it
This function is for cases when a change in a choice is
required by a user action but the user doesn't directly
cause the change.
ObserveChoice
public ObserveChoice()
- Constructor
add
public synchronized void add(String text)
- Add item
Save first as selection
- Parameters:
-
String
- item to be added
- Overrides:
- add in class Choice
select
public synchronized void select(String text)
- Set selection
- Parameters:
-
String
- item to be added
- Overrides:
- select in class Choice
userSelect
public synchronized void userSelect(String text)
- Set selection as though a user had done it
This function is for cases when a change in a choice is
required by a user action but the user doesn't directly
cause the change.
- Parameters:
-
String
- item to be added
remove
public synchronized void remove(String text)
- Remove item
If this is the previous software selection null string
- Parameters:
-
String
- item to be added
- Overrides:
- remove in class Choice
removeAll
public synchronized void removeAll()
- Remove all items
- Overrides:
- removeAll in class Choice
userChanged
public boolean userChanged()
- Tell if the last change in the selection was made by the user
- Returns:
-
Boolean
has user changed
All Packages Class Hierarchy This Package Previous Next Index