Class: StructureTreeView

Kekule.ChemWidget. StructureTreeView

new StructureTreeView(parentOrElementOrDocument, rootObj)

An tree view widget to display internal relationship of chem objects.
Parameters:
Name Type Description
parentOrElementOrDocument Variant
rootObj Kekule.ChemObject
Properties:
Name Type Description
rootObj Kekule.ChemObject Root chem object to be displayed in tree view.
enableLiveUpdate Bool If set to true, the tree view will automatically updated when chem objects changed.
Source:

Extends

  • Kekule.Widget.TreeView

Methods

getSelectedChemObjs() → {Array}

Returns corresponding chemObjs linked to selected tree items.
Source:
Returns:
Type
Array

initialize()

Source:

pauseLiveUpdate()

Pause the live update process. Changed objects will be stored and the corresponding tree items will be refreshed after the live update is resumed.
Source:

refreshObject(chemObj)

Refresh tree item on chemObj.
Parameters:
Name Type Description
chemObj Kekule.ChemObject
Source:

resumeLiveUpdate()

Resume the live update process.
Source:

selectChemObjs(chemObjs)

Make tree items corresponding to chemObjs to be selected.
Parameters:
Name Type Description
chemObjs Array
Source: