Class ActionCoordinator

java.lang.Object
ucar.unidata.ui.event.ActionCoordinator
All Implemented Interfaces:
EventListener, ActionValueListener

public class ActionCoordinator extends Object implements 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 Details

    • ActionCoordinator

      public ActionCoordinator(String eventType)
      _more_
      Parameters:
      eventType -
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionValueEvent e)
      _more_
      Specified by:
      actionPerformed in interface ActionValueListener
      Parameters:
      e -
    • addActionSourceListener

      public void addActionSourceListener(ActionSourceListener l)
      add an ActionSource listener
      Parameters:
      l -
    • removeActionSourceListener

      public void removeActionSourceListener(ActionSourceListener l)
      remove an ActionSource listener
      Parameters:
      l -
    • main

      public static void main(String[] argv)
      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 -