java.lang.Object
gov.lanl.IDViewer.SourceSelectionNotifier
- class SourceSelectionNotifier
- extends java.lang.Object
When an instance of the class SourceSelectionObserver receives a notification
from a source selection dialog window, it passes it on to all of its
registered observers.
Currently, the class SourceSelectionNotifier distinguishes between
three types of events:
INACTIVE_SRC_SELECTION_CHANGED - the source selection in the source
selection frame changed
ACTIVE_SRC_SELECTION_CHANGED - the source selection in the source
client panel changed
INACTIVE_SRC_SELECTION_FINALIZED- the user finished selecting source
in the source selection frame
- Version:
- 11/09/98 $Id: SourceSelectionNotifier.java,v 1.2 2002/06/09 14:26:01 dwforslund Exp $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INACTIVE_SRC_SELECTION_CHANGED
public static final int INACTIVE_SRC_SELECTION_CHANGED
- See Also:
- Constant Field Values
ACTIVE_SRC_SELECTION_CHANGED
public static final int ACTIVE_SRC_SELECTION_CHANGED
- See Also:
- Constant Field Values
INACTIVE_SRC_SELECTION_FINALIZED
public static final int INACTIVE_SRC_SELECTION_FINALIZED
- See Also:
- Constant Field Values
sourceSelectionVector
private java.util.Vector sourceSelectionVector
- vector that stores the current source selection in form of strings
observers
private java.util.Vector observers
- vector of source selection observers
SourceSelectionNotifier
SourceSelectionNotifier()
addObserver
public void addObserver(SourceSelectionObserver observer)
- adds a new observer to this object
removeObserver
public void removeObserver(SourceSelectionObserver observer)
- removes an observer from this object
notifySourceSelectionObserver
public void notifySourceSelectionObserver(int event,
java.util.Vector sourceSelectionVector)
- This method is called when this object needs to pass on a
notification to its registered observers.