Class ActionForwarder
java.lang.Object
uk.ac.starlink.topcat.ActionForwarder
- All Implemented Interfaces:
ActionListener, EventListener, ChangeListener, ListDataListener
public class ActionForwarder
extends Object
implements ActionListener, ChangeListener, ListDataListener
ActionListener implementation which forwards all ActionEvents to a list
of clients.
It also implements some other listener interfaces,
currently
ChangeListener and ListDataListener.
Any events received throught those interfaces will be adapted into
ActionEvents and forwarded as well.- Since:
- 28 Oct 2005
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddActionListener(ActionListener listener) Adds a new listener to the list of forwardees.voidvoidvoidvoidremoveActionListener(ActionListener listener) Removes a listener which was previously added.voidstateChanged(ChangeEvent evt)
-
Constructor Details
-
ActionForwarder
public ActionForwarder()
-
-
Method Details
-
addActionListener
Adds a new listener to the list of forwardees.- Parameters:
listener- listener to add
-
removeActionListener
Removes a listener which was previously added.- Parameters:
listener- listener to remove- See Also:
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
stateChanged
- Specified by:
stateChangedin interfaceChangeListener
-
contentsChanged
- Specified by:
contentsChangedin interfaceListDataListener
-
intervalAdded
- Specified by:
intervalAddedin interfaceListDataListener
-
intervalRemoved
- Specified by:
intervalRemovedin interfaceListDataListener
-