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


Constructor Index

 o ObserveChoice()
Constructor

Method Index

 o add(String)
Add item Save first as selection
 o remove(String)
Remove item If this is the previous software selection null string
 o removeAll()
Remove all items
 o select(String)
Set selection
 o userChanged()
Tell if the last change in the selection was made by the user
 o 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.

Constructors

 o ObserveChoice
 public ObserveChoice()
Constructor

Methods

 o add
 public synchronized void add(String text)
Add item Save first as selection

Parameters:
String - item to be added
Overrides:
add in class Choice
 o select
 public synchronized void select(String text)
Set selection

Parameters:
String - item to be added
Overrides:
select in class Choice
 o 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
 o 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
 o removeAll
 public synchronized void removeAll()
Remove all items

Overrides:
removeAll in class Choice
 o 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