Class DynamicProperty.DynamicKeyCommand
java.lang.Object
javax.swing.AbstractAction
VASSAL.counters.KeyCommand
VASSAL.counters.DynamicProperty.DynamicKeyCommand
- All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
- Enclosing class:
DynamicProperty
DynamicKeyCommand A class that represents an action to be performed on a
Dynamic property
- Author:
- rkinney
- See Also:
-
Field Summary
FieldsFields inherited from class KeyCommand
i18nPiece, localizedMenuText, namedKeyStroke, NONE, untranslatedNameModifier and TypeFieldDescriptionprotected TranslatablePieceprotected Stringprotected NamedKeyStrokestatic final KeyCommand[]protected StringFields inherited from class AbstractAction
changeSupportFields inherited from interface 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
ConstructorsConstructorDescriptionDynamicKeyCommand(String name, NamedKeyStroke key, GamePiece target, TranslatablePiece i18nPiece, PropertyChanger propChanger) -
Method Summary
Methods inherited from class KeyCommand
actionPerformed, getKeyStroke, getLocalizedMenuText, getName, getNamedKeyStroke, getTarget, isEnabled, isGlobal, isMenuSeparator, matches, setEnabled, setGlobalModifier and TypeMethodDescriptionvoidThe human-readable text that will appear in the right-click menu, translated to the user's LocalegetName()booleanbooleanisGlobal()If true, then this action will apply to all selected piecesbooleanbooleanvoidsetEnabled(boolean b) voidsetGlobal(boolean global) If true, then this action will apply to all selected piecesMethods inherited from class AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener
-
Field Details
-
propChanger
-
-
Constructor Details
-
DynamicKeyCommand
public DynamicKeyCommand(String name, NamedKeyStroke key, GamePiece target, TranslatablePiece i18nPiece, PropertyChanger propChanger)
-
-
Method Details
-
getPropChanger
-
setPropChanger
-