public class ActionForwarder extends Object implements ActionListener, ChangeListener, ListDataListener
ChangeListener and ListDataListener.
Any events received throught those interfaces will be adapted into
ActionEvents and forwarded as well.| Constructor and Description |
|---|
ActionForwarder() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent evt) |
void |
addActionListener(ActionListener listener)
Adds a new listener to the list of forwardees.
|
void |
contentsChanged(ListDataEvent evt) |
void |
intervalAdded(ListDataEvent evt) |
void |
intervalRemoved(ListDataEvent evt) |
void |
removeActionListener(ActionListener listener)
Removes a listener which was previously added.
|
void |
stateChanged(ChangeEvent evt) |
public void addActionListener(ActionListener listener)
listener - listener to addpublic void removeActionListener(ActionListener listener)
listener - listener to removeaddActionListener(java.awt.event.ActionListener)public void actionPerformed(ActionEvent evt)
actionPerformed in interface ActionListenerpublic void stateChanged(ChangeEvent evt)
stateChanged in interface ChangeListenerpublic void contentsChanged(ListDataEvent evt)
contentsChanged in interface ListDataListenerpublic void intervalAdded(ListDataEvent evt)
intervalAdded in interface ListDataListenerpublic void intervalRemoved(ListDataEvent evt)
intervalRemoved in interface ListDataListenerCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.