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 ActionListener
public void stateChanged(ChangeEvent evt)
stateChanged
in interface ChangeListener
public void contentsChanged(ListDataEvent evt)
contentsChanged
in interface ListDataListener
public void intervalAdded(ListDataEvent evt)
intervalAdded
in interface ListDataListener
public void intervalRemoved(ListDataEvent evt)
intervalRemoved
in interface ListDataListener
Copyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.