org.yasl.arch.impl.action
Class YASLSwingAbstractAction
java.lang.Object
javax.swing.AbstractAction
org.yasl.arch.impl.action.YASLGUIAbstractAction
org.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
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. |
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
- StringinitialState
- booleanyaslApp
- 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
- StringinitialState
- booleanimageIcon
- ImageIconyaslApp
- 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
- StringshortName
- StringinitialState
- booleanyaslApp
- 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
- StringshortName
- StringinitialState
- booleanimageIcon
- ImageIconyaslApp
- YASLSwingApplication
getYASLSwingApplication
protected YASLSwingApplication getYASLSwingApplication()
- Returns the application object as a YASLSwingApplication instance.
- Returns:
- YASLSwingApplication