org.yasl.logging.action
Class YASLLoggingComponentAction
java.lang.Object
javax.swing.AbstractAction
org.yasl.arch.impl.action.YASLGUIAbstractAction
org.yasl.arch.impl.action.YASLSwingAbstractAction
org.yasl.logging.action.YASLLoggingComponentAction
- All Implemented Interfaces:
- Action, ActionListener, Cloneable, EventListener, Serializable, YASLLogManagerListener
- public class YASLLoggingComponentAction
- extends YASLSwingAbstractAction
- implements YASLLogManagerListener
- Version:
- 1.0
- Author:
- Jeff Chapman
- See Also:
- Serialized Form
|
Constructor Summary |
YASLLoggingComponentAction(String name,
boolean initialState,
ImageIcon imageIcon,
YASLSwingApplication yaslApp)
Sets the NAME and SHORT_DESCRIPTION properties to the value
of the name param. |
YASLLoggingComponentAction(String name,
boolean initialState,
YASLSwingApplication yaslApp)
Sets the NAME and SHORT_DESCRIPTION properties to the value
of the name param. |
YASLLoggingComponentAction(String name,
String shortName,
boolean initialState,
ImageIcon imageIcon,
YASLSwingApplication yaslApp)
Sets the NAME, SHORT_DESCRIPTION, and SMALL_ICON properties. |
YASLLoggingComponentAction(String name,
String shortName,
boolean initialState,
YASLSwingApplication yaslApp)
Sets the NAME and SHORT_DESCRIPTION properties. |
YASLLoggingComponentAction
public YASLLoggingComponentAction(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
YASLLoggingComponentAction
public YASLLoggingComponentAction(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
YASLLoggingComponentAction
public YASLLoggingComponentAction(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
YASLLoggingComponentAction
public YASLLoggingComponentAction(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
performAction
protected void performAction(ActionEvent e)
throws Exception
- Abstract method that is called from the
actionPerformed method.
- Specified by:
performAction in class YASLGUIAbstractAction
- Parameters:
e - ActionEvent
- Throws:
Exception
changeToLogManagerState
public void changeToLogManagerState(YASLLogManagerEvent event)
- When the log manager is closed, the action will be returned
to it's initial state.
When the log manager is opened, the action will be set
to disabled.
- Specified by:
changeToLogManagerState in interface YASLLogManagerListener
- Parameters:
event - YASLLogManagerEvent