Class SetPersistentPropertyCommand
java.lang.Object
VASSAL.command.Command
VASSAL.command.SetPersistentPropertyCommand
This Command sets a Persistent Property in a PersistentPropertyContainer.
Currently only BasicPiece and Decorator implement PersistentPropertyContainer.
The Undo Command is a SetPropertyCommand to set the value back to the original value.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSetPersistentPropertyCommand(String id, Object key, Object oldValue, Object newValue) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidPerform the action which this Command representsDetailed information for toString()getId()getKey()protected CommandIf the action can be undone, return a Command that performs the inverse action.voidvoidvoidsetNewValue(Object newValue) voidsetOldValue(Object oldValue) Methods inherited from class VASSAL.command.Command
append, execute, getSubCommands, getUndoCommand, isAtomic, isLoggable, isNull, isNullOrContainsOnly, stripSubCommands, toString
-
Field Details
-
COMMAND_PREFIX
- See Also:
-
key
-
oldValue
-
newValue
-
id
-
-
Constructor Details
-
SetPersistentPropertyCommand
-
-
Method Details
-
executeCommand
protected void executeCommand()Description copied from class:CommandPerform the action which this Command represents- Specified by:
executeCommandin classCommand
-
myUndoCommand
Description copied from class:CommandIf the action can be undone, return a Command that performs the inverse action. The Command returned should only undoCommand.executeCommand(), not the actions of subcommands- Specified by:
myUndoCommandin classCommand
-
getDetails
Description copied from class:CommandDetailed information for toString()- Overrides:
getDetailsin classCommand
-
getKey
-
setKey
-
getOldValue
-
setOldValue
-
getNewValue
-
setNewValue
-
getId
-
setId
-