Package ucar.ui.event
Class ActionCoordinator
- java.lang.Object
-
- ucar.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.- See Also:
ActionValueEvent
,ActionSourceListener
-
-
Constructor Summary
Constructors Constructor Description ActionCoordinator(String eventType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionValueEvent e)
void
addActionSourceListener(ActionSourceListener l)
add an ActionSource listenervoid
removeActionSourceListener(ActionSourceListener l)
remove an ActionSource listener
-
-
-
Constructor Detail
-
ActionCoordinator
public ActionCoordinator(String eventType)
-
-
Method Detail
-
actionPerformed
public void actionPerformed(ActionValueEvent e)
- Specified by:
actionPerformed
in interfaceActionValueListener
-
addActionSourceListener
public void addActionSourceListener(ActionSourceListener l)
add an ActionSource listener
-
removeActionSourceListener
public void removeActionSourceListener(ActionSourceListener l)
remove an ActionSource listener
-
-