org.yasl.arch.impl.action
Class YASLSwingAbstractAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.yasl.arch.impl.action.YASLGUIAbstractAction
          extended byorg.yasl.arch.impl.action.YASLSwingAbstractAction
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, Serializable
Direct Known Subclasses:
AboutInfoAction, CheckBoxMenuItemAction, JarInspectorAction, MultiColumnLayoutAction, MultiStringSelectionAction, RadioMenuItemAction, YASLApplicationInspectorAction, YASLDefaultSwingAppExitAction, YASLLoggingComponentAction, YASLLoggingTestAction, YASLSwingAbstractStartAction

public abstract class YASLSwingAbstractAction
extends YASLGUIAbstractAction

Extends YASLGUIAbstractAction for actions used in Swing applications.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.yasl.arch.impl.action.YASLGUIAbstractAction
COMMAND_SYNCHRONOUS_CALL
 
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
YASLSwingAbstractAction(String name, boolean initialState, ImageIcon imageIcon, YASLSwingApplication yaslApp)
          Sets the NAME and SHORT_DESCRIPTION properties to the value of the name param.
YASLSwingAbstractAction(String name, boolean initialState, YASLSwingApplication yaslApp)
          Sets the NAME and SHORT_DESCRIPTION properties to the value of the name param.
YASLSwingAbstractAction(String name, String shortName, boolean initialState, ImageIcon imageIcon, YASLSwingApplication yaslApp)
          Sets the NAME, SHORT_DESCRIPTION, and SMALL_ICON properties.
YASLSwingAbstractAction(String name, String shortName, boolean initialState, YASLSwingApplication yaslApp)
          Sets the NAME and SHORT_DESCRIPTION properties.
 
Method Summary
protected  YASLSwingApplication getYASLSwingApplication()
          Returns the application object as a YASLSwingApplication instance.
 
Methods inherited from class org.yasl.arch.impl.action.YASLGUIAbstractAction
actionPerformed, getInitialState, getName, getYASLApplication, getYASLGUIApplication, performAction, setName, setName, setToInitialState
 
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, toString, wait, wait, wait
 

Constructor Detail

YASLSwingAbstractAction

public YASLSwingAbstractAction(String name,
                               boolean initialState,
                               YASLSwingApplication yaslApp)
Sets the NAME and SHORT_DESCRIPTION properties to the value of the name param. Stores a reference to the YASLSwingApplication instance and sets the action to the passed initialState.

Parameters:
name - String
initialState - boolean
yaslApp - YASLSwingApplication

YASLSwingAbstractAction

public YASLSwingAbstractAction(String name,
                               boolean initialState,
                               ImageIcon imageIcon,
                               YASLSwingApplication yaslApp)
Sets the NAME and SHORT_DESCRIPTION properties to the value of the name param. Also sets the SMALL_ICON property. Stores a reference to the YASLSwingApplication instance and sets the action to the passed initialState.

Parameters:
name - String
initialState - boolean
imageIcon - ImageIcon
yaslApp - YASLSwingApplication

YASLSwingAbstractAction

public YASLSwingAbstractAction(String name,
                               String shortName,
                               boolean initialState,
                               YASLSwingApplication yaslApp)
Sets the NAME and SHORT_DESCRIPTION properties. Stores a reference to the YASLSwingApplication instance and sets the action to the passed initialState.

Parameters:
name - String
shortName - String
initialState - boolean
yaslApp - YASLSwingApplication

YASLSwingAbstractAction

public YASLSwingAbstractAction(String name,
                               String shortName,
                               boolean initialState,
                               ImageIcon imageIcon,
                               YASLSwingApplication yaslApp)
Sets the NAME, SHORT_DESCRIPTION, and SMALL_ICON properties. Stores a reference to the YASLSwingApplication instance and sets the action to the passed initialState.

Parameters:
name - String
shortName - String
initialState - boolean
imageIcon - ImageIcon
yaslApp - YASLSwingApplication
Method Detail

getYASLSwingApplication

protected YASLSwingApplication getYASLSwingApplication()
Returns the application object as a YASLSwingApplication instance.

Returns:
YASLSwingApplication