net.sf.japi.swing
Class DummyAction
java.lang.Object
javax.swing.AbstractAction
net.sf.japi.swing.DummyAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
public final class DummyAction
- extends AbstractAction
Dummy Action implementation, an Action implementation which does nothing and only serves as an Action Property container.
This is useful e.g. for JMenu, instances of which you can create using Action instances but where implementing the basic abstract method ActionListener#actionPerformed(ActionEvent) does not make any sense.
This class is also an appropriate superclass for Action implementations that aren't interested in ActionEvents but other events.
- Author:
- Christian Hujer
- See Also:
- Serialized Form
|
Constructor Summary |
DummyAction()
Create a Dummy Action. |
DummyAction
public DummyAction()
- Create a Dummy Action.
actionPerformed
public void actionPerformed(ActionEvent e)
-
The implementation of this method in DummyAction simply does nothing.
clone
protected Object clone()
throws CloneNotSupportedException
-
- Overrides:
clone in class AbstractAction
- Throws:
CloneNotSupportedException
© 2005-2006 Christian Hujer. All rights reserved. See
copyright