Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

gov.lanl.IDViewer
Class SourceSelectionNotifier  view SourceSelectionNotifier download SourceSelectionNotifier.java

java.lang.Object
  extended bygov.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 $

Field Summary
static int ACTIVE_SRC_SELECTION_CHANGED
           
static int INACTIVE_SRC_SELECTION_CHANGED
           
static int INACTIVE_SRC_SELECTION_FINALIZED
           
private  java.util.Vector observers
          vector of source selection observers
private  java.util.Vector sourceSelectionVector
          vector that stores the current source selection in form of strings
 
Constructor Summary
(package private) SourceSelectionNotifier()
           
 
Method Summary
 void addObserver(SourceSelectionObserver observer)
          adds a new observer to this object
 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.
 void removeObserver(SourceSelectionObserver observer)
          removes an observer from this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

Constructor Detail

SourceSelectionNotifier

SourceSelectionNotifier()
Method Detail

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.