|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjv.object.PsActionSupport
This class may be used to add the functionality of sending ActionEvents to
registered listeners to some class.
Put an instance of PsActionSupport into your class (as a member variable)
and write methods addActionListener and removeActionListener
that only call the methods from PsActionSupportwith the same name.
Whenever you want an ActionEvent to be posted, just call
fireAction(ActionEvent) of your
PsActionSupport instance.
| Constructor Summary | |
PsActionSupport()
|
|
| Method Summary | |
void |
addActionListener(java.awt.event.ActionListener listener)
Adds a listener to internal list. |
void |
fireAction(java.awt.event.ActionEvent event)
Calls the actionPerformed method from all registered listeners
with given ActionEvent. |
void |
removeActionListener(java.awt.event.ActionListener listener)
Removes (one occurrence of) a listener from internal list. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PsActionSupport()
| Method Detail |
public void addActionListener(java.awt.event.ActionListener listener)
fireAction(ActionEvent).
public void removeActionListener(java.awt.event.ActionListener listener)
fireAction(ActionEvent).
public void fireAction(java.awt.event.ActionEvent event)
actionPerformed method from all registered listeners
with given ActionEvent.
addActionListener(ActionListener),
removeActionListener(ActionListener)
|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||