Class: Add

Kekule.ChemObjOperation. Add

new Add(chemObject, parentObj, refSibling)

Operation of adding a chem object to parent.
Parameters:
Name Type Description
chemObject Kekule.ChemObject Target chem object.
parentObj Kekule.ChemObject Object should be added to.
refSibling Kekule.ChemObject If this property is set, chem object will be inserted before this sibling.
Properties:
Name Type Description
parentObj Kekule.ChemObject Object should be added to.
refSibling Kekule.ChemObject If this property is set, chem object will be inserted before this sibling.
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. Add

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: