|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractAction
org.crosswire.common.swing.CWAction
public class CWAction
A CrossWire Action is a generic extension of AbstractAction, that adds LARGE_ICON to Action and also forwards the Action to its listeners after modifying the ActionEvent to include the ACTION_COMMAND_KEY.
for license details.
The copyright to this program is held by it's authors.,
Serialized Form| Field Summary | |
|---|---|
static String |
LARGE_ICON
The icon to display when a large one is needed. |
private EventListenerList |
listeners
|
private static long |
serialVersionUID
Serialization ID |
| Fields inherited from class javax.swing.AbstractAction |
|---|
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
|---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
|---|---|
CWAction()
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent evt)
Forwards the ActionEvent to the registered listener. |
void |
addActionListener(ActionListener listener)
Adds a listener for Action events. |
void |
removeActionListener(ActionListener listener)
Remove an ActionListener |
String |
toString()
String representation of this object suitable for debugging |
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String LARGE_ICON
private EventListenerList listeners
private static final long serialVersionUID
| Constructor Detail |
|---|
public CWAction()
| Method Detail |
|---|
public void actionPerformed(ActionEvent evt)
evt - ActionEventpublic void addActionListener(ActionListener listener)
listener - ActionListener to addpublic void removeActionListener(ActionListener listener)
listener - ActionListener to removepublic String toString()
toString in class Object
|
Copyright ยจ 2003-2007 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||