Class Command
Defined in: Command.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Command(objectId, typeOfObject, property, previousValue, currentValue)
An interface for undoable actions, implemented by classes that specify
how to handle action
|
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
Command(objectId, typeOfObject, property, previousValue, currentValue)
An interface for undoable actions, implemented by classes that specify
how to handle action
Author: Zack Newsham zack_newsham@yahoo.co.uk, Alex.
Author: Zack Newsham zack_newsham@yahoo.co.uk, Alex
- Parameters:
- objectId
- = {Number} of {Figure}/{Connector}/{ConnectionPoint} Id
- typeOfObject
- = {Number} representing the type of object being changed
- property
- = {String} representing properties address within object
- previousValue
- = {Object}
- currentValue
- = {Object}
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