Class GameModuleAction
java.lang.Object
javax.swing.AbstractAction
VASSAL.launch.GameModuleAction
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
- Direct Known Subclasses:
CreateModuleAction
,LoadModuleAction
,NewExtensionAction
Utility base class for
GameModule
-related actions, with auxiliary
actions and error reporting.- Author:
- rodneykinney
- See Also:
-
Field Summary
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Add an auxiliary action to be performed after the core action.protected String
getMessage
(Exception err) protected abstract void
performAction
(ActionEvent evt) protected void
reportError
(Exception ex) protected void
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
comp
-
actionCancelled
protected boolean actionCancelled -
actions
-
-
Constructor Details
-
GameModuleAction
-
-
Method Details
-
getMessage
-
actionPerformed
-
performAction
- Throws:
Exception
-
reportError
-
addAction
Add an auxiliary action to be performed after the core action. For example, closing a window after a module has been loaded- Parameters:
r
- action
-
runActions
protected void runActions()
-