Class PropertyCommand
Defined in: PropertyCommand.js.
Constructor Attributes | Constructor Name and Description |
---|---|
PropertyCommand(objectId, typeOfObject, property, previousValue, currentValue)
Object that is used to undo actions when the property editor is used
|
Method Attributes | Method Name and Description |
---|---|
redo()
This method got called every time the Command must execute
|
|
undo()
This method should be called every time the Command should be undone
|
Class Detail
PropertyCommand(objectId, typeOfObject, property, previousValue, currentValue)
Object that is used to undo actions when the property editor is used
- Parameters:
- objectId
- {Numeric} - the id of the object
- typeOfObject
- {Numberic} - the type of the object as number (ex: History.OBJECT_FIGURE)
- property
- {String} - property name that is being edited on the figure
- previousValue
- {Object} - the value to set the property to
- currentValue
- {Object} - the value to set the property to
Method Detail
redo()
This method got called every time the Command must execute
undo()
This method should be called every time the Command should be undone