Package ucar.unidata.ui.event
Class ActionCoordinator
java.lang.Object
ucar.unidata.ui.event.ActionCoordinator
- All Implemented Interfaces:
EventListener
,ActionValueListener
An ActionCoordinator helps manage the set of objects that send and receive
an ActionValueEvent. It is assumed that each event generator is also
interested in recieving the event if its from someone else; these objects are
of type ActionSourceListener.
For each kind of event, an ActionCoordinator
object is created. When it gets an event, it sends it to all others who have
registered except not to the event source.
- Version:
- $Id: ActionCoordinator.java,v 1.5 2005/05/13 18:32:14 jeffmc Exp $
- Author:
- John Caron
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
_more_void
add an ActionSource listenerstatic void
add an ActionValue listener public void addActionValueListener( ActionValueListener l) { lm.addListener(l); } /** remove an ActionValue listener public void removeActionValueListener( ActionValueListener l) { lm.removeListener(l); }void
remove an ActionSource listener
-
Constructor Details
-
ActionCoordinator
_more_- Parameters:
eventType
-
-
-
Method Details
-
actionPerformed
_more_- Specified by:
actionPerformed
in interfaceActionValueListener
- Parameters:
e
-
-
addActionSourceListener
add an ActionSource listener- Parameters:
l
-
-
removeActionSourceListener
remove an ActionSource listener- Parameters:
l
-
-
main
add an ActionValue listener public void addActionValueListener( ActionValueListener l) { lm.addListener(l); } /** remove an ActionValue listener public void removeActionValueListener( ActionValueListener l) { lm.removeListener(l); }- Parameters:
argv
-
-