Package VASSAL.build.module.properties
Class ChangePropertyCommand
java.lang.Object
VASSAL.command.Command
VASSAL.build.module.properties.ChangePropertyCommand
public class ChangePropertyCommand extends Command
Command to change the value of a
MutableProperty
- Author:
- rodneykinney
-
Constructor Summary
Constructors Constructor Description ChangePropertyCommand(MutableProperty property, String propertyName, String oldValue, String newValue)
-
Method Summary
Modifier and Type Method Description protected void
executeCommand()
Perform the action which this Command representsString
getNewValue()
String
getOldValue()
MutableProperty
getProperty()
String
getPropertyName()
protected Command
myUndoCommand()
If the action can be undone, return a Command that performs the inverse action.Methods inherited from class VASSAL.command.Command
append, execute, getDetails, getSubCommands, getUndoCommand, hasNullSubcommands, isAtomic, isLoggable, isNull, stripSubCommands, toString
-
Constructor Details
-
ChangePropertyCommand
public ChangePropertyCommand(MutableProperty property, String propertyName, String oldValue, String newValue)
-
-
Method Details
-
executeCommand
protected void executeCommand()Description copied from class:Command
Perform the action which this Command represents- Specified by:
executeCommand
in classCommand
-
myUndoCommand
Description copied from class:Command
If 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:
myUndoCommand
in classCommand
-
getProperty
-
getPropertyName
-
getNewValue
-
getOldValue
-