net.sf.doolin.gui.action.support
Class SwingAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by net.sf.doolin.gui.action.support.AbstractSwingAction
          extended by 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 class net.sf.doolin.gui.action.support.AbstractSwingAction
VISIBLE_PROPERTY
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
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
 
Constructor Summary
SwingAction(ActionContext actionContext, GUIAction action, IconSize iconSize)
          Constructor.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Delegates to GUIAction.execute(ActionContext).
 String toString()
           
 
Methods inherited from class net.sf.doolin.gui.action.support.AbstractSwingAction
isVisible, setIcon, setShortcut, setState, setText, setTip, setVisible
 
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

ID_KEY

public static final String ID_KEY
Action key that stores the ID of the action.

See Also:
Constant Field Values
Constructor Detail

SwingAction

public SwingAction(ActionContext actionContext,
                   GUIAction action,
                   IconSize iconSize)
Constructor.

Parameters:
actionContext - Action content
action - Action to execute
iconSize - Desired size for the icon
Method Detail

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.