Package uk.ac.starlink.topcat
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 TypeMethodDescriptionvoid
void
addActionListener
(ActionListener listener) Adds a new listener to the list of forwardees.void
void
void
void
removeActionListener
(ActionListener listener) Removes a listener which was previously added.void
stateChanged
(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:
actionPerformed
in interfaceActionListener
-
stateChanged
- Specified by:
stateChanged
in interfaceChangeListener
-
contentsChanged
- Specified by:
contentsChanged
in interfaceListDataListener
-
intervalAdded
- Specified by:
intervalAdded
in interfaceListDataListener
-
intervalRemoved
- Specified by:
intervalRemoved
in interfaceListDataListener
-