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 void
actionPerformed(ActionValueEvent event)
void
addActionValueListener(ActionValueListener l)
void
fireActionValueEvent(String command, Object value)
String
getEventTypeName()
void
removeActionValueListener(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:
actionPerformed
in interfaceActionValueListener
-
-