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. |
Extends
- Kekule.Widget.TreeView
Methods
-
getSelectedChemObjs() → {Array}
-
Returns corresponding chemObjs linked to selected tree items.
Returns:
- Type
- Array
-
initialize()
-
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.
-
refreshObject(chemObj)
-
Refresh tree item on chemObj.
Parameters:
Name Type Description chemObj
Kekule.ChemObject -
resumeLiveUpdate()
-
Resume the live update process.
-
selectChemObjs(chemObjs)
-
Make tree items corresponding to chemObjs to be selected.
Parameters:
Name Type Description chemObjs
Array