Class: Remove

Kekule.ChemObjOperation. Remove

new Remove(chemObject, parentObj, refSibling)

Operation of removing a chem object from its parent.
Parameters:
Name Type Description
chemObject Kekule.ChemObject Target chem object.
parentObj Kekule.ChemObject Object should be added to.
refSibling Kekule.ChemObject Sibling after target object before removing.
Properties:
Name Type Description
parentObj Kekule.ChemObject Object should be added to.
refSibling Kekule.ChemObject Sibling after target object before removing. This property is used in reversing the operation. If not set, it will be calculated automatically in execution.
Source:

Extends

Methods

execute()

Execute this command.
Inherited From:
Source:

isReversible() → {Bool}

Indicate whether this command can be undone. Default is true. Descendants should override this method if unreversible.
Inherited From:
Source:
Returns:
Type
Bool

reverse()

Undo command execution.
Inherited From:
Source:

Kekule.ChemObjOperation. Remove

Methods

execute()

Execute this command.
Inherited From:
Source:

isReversible() → {Bool}

Indicate whether this command can be undone. Default is true. Descendants should override this method if unreversible.
Inherited From:
Source:
Returns:
Type
Bool

reverse()

Undo command execution.
Inherited From:
Source: