Package ucar.ui.event
Class ActionSourceListener
- java.lang.Object
-
- ucar.ui.event.ActionSourceListener
-
- All Implemented Interfaces:
EventListener,ActionValueListener
public abstract class ActionSourceListener extends Object implements ActionValueListener
ActionSourceListeners are used by objects that are both source and listener for a particular type of ActionValue events. They register themselves with the ActionCoordinator of that type of event. They send events by calling fireActionValueEvent(). They recieve others' events through their actionPerformed() method.- See Also:
ActionCoordinator
-
-
Constructor Summary
Constructors Constructor Description ActionSourceListener(String eventType)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidactionPerformed(ActionValueEvent event)voidaddActionValueListener(ActionValueListener l)voidfireActionValueEvent(String command, Object value)StringgetEventTypeName()voidremoveActionValueListener(ActionValueListener l)
-
-
-
Field Detail
-
SELECTED
public static final String SELECTED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ActionSourceListener
public ActionSourceListener(String eventType)
-
-
Method Detail
-
getEventTypeName
public String getEventTypeName()
-
addActionValueListener
public void addActionValueListener(ActionValueListener l)
-
removeActionValueListener
public void removeActionValueListener(ActionValueListener l)
-
actionPerformed
public abstract void actionPerformed(ActionValueEvent event)
- Specified by:
actionPerformedin interfaceActionValueListener
-
-