Package VASSAL.counters
Class KeyCommandSubMenu
java.lang.Object
javax.swing.AbstractAction
VASSAL.counters.KeyCommand
VASSAL.counters.KeyCommandSubMenu
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
Represents a sub-menu in a GamePiece's right-click drop-down menu
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class VASSAL.counters.KeyCommand
i18nPiece, localizedMenuText, namedKeyStroke, NONE, untranslatedName
Fields inherited from class javax.swing.AbstractAction
changeSupport
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
ConstructorDescriptionKeyCommandSubMenu(String name, GamePiece target, TranslatablePiece i18nPiece)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
actionPerformed(ActionEvent evt)
void
addCommand(String s)
void
setCommands(String[] s)
Methods inherited from class VASSAL.counters.KeyCommand
getKeyStroke, getLocalizedMenuText, getName, getNamedKeyStroke, getTarget, isEnabled, isGlobal, isMenuSeparator, matches, setEnabled, setGlobal
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener
-
Constructor Details
-
KeyCommandSubMenu
-
-
Method Details
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
- Overrides:
actionPerformed
in classKeyCommand
-
addCommand
-
setCommands
-
getCommands
-