net.sf.doolin.gui.action.support
Class SwingAction
java.lang.Object
javax.swing.AbstractAction
net.sf.doolin.gui.action.support.AbstractSwingAction
net.sf.doolin.gui.action.support.SwingAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
public class SwingAction
- extends AbstractSwingAction
Simple action for a GUIAction.
- Author:
- Damien Coraboeuf
- See Also:
- Serialized Form
|
Field Summary |
static String |
ID_KEY
Action key that stores the ID of the action. |
| Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
ID_KEY
public static final String ID_KEY
- Action key that stores the ID of the action.
- See Also:
- Constant Field Values
SwingAction
public SwingAction(ActionContext actionContext,
GUIAction action,
IconSize iconSize)
- Constructor.
- Parameters:
actionContext - Action contentaction - Action to executeiconSize - Desired size for the icon
actionPerformed
public void actionPerformed(ActionEvent e)
- Delegates to
GUIAction.execute(ActionContext).
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2011. All Rights Reserved.