◆ topsTreePanel()
Make a new panel in the given figure.
- Parameters
-
Creates a new topsTreePanel. parentFigure must be a topsFigure object, otherwise the panel won't display any content.
◆ selectItem()
selectItem |
( |
self |
, |
|
|
tree |
, |
|
|
event |
|
|
) |
| |
Set the GUI current item from a selected node.
- Parameters
-
tree | uitree object or a "peer" object |
event | event object related to the selection |
Sets the value of the current item for the parent figure, based on the selected node.
◆ childNodesForExpand()
nodes childNodesForExpand |
( |
self |
, |
|
|
tree |
, |
|
|
value |
|
|
) |
| |
Create new child nodes for an expanded node.
- Parameters
-
tree | uitree object or a "peer" object |
value | value associated with the expanding node |
Must create new uitreenode objects for a node that is currently expanding, based on the value of baseItem, and the sub-path contained by the expanding node.
◆ expandToDepth()
expandToDepth |
( |
self |
, |
|
|
node |
, |
|
|
depth |
|
|
) |
| |
|
protected |
Expand tree nodes to the given depth.
- Parameters
-
node | a uitree node in the tree |
depth | how far down to expand the tree |
Recursively expands all tree nodes, starting with the given node, as far down as the given depth. If node is the root node, the entire tree can be expanded. If depth is zero, no nodes will be expanded. If depth is one, only the given node will be expanded. If depth is inf, all nodes beneath node will be expanded.
◆ nodeForItem()
node nodeForItem |
( |
self |
, |
|
|
item |
, |
|
|
name |
, |
|
|
subPath |
|
|
) |
| |
|
protected |
Make a new tree node to represent the given item.
- Parameters
-
item | any item |
name | string name for the item |
subPath | string sub-path path from baseItem to item |
Makes a new uitreenode to represent the given item. subPath must be a string to pass to eval(), which contains a reference from baseItem to this item. For example, if item is located in a field of baseItem named 'data', subPath might be '.data', '(1).data', or similar.
◆ autoExpandDepth
Property autoExpandDepth = 1 |
Show an collection of items with a tree browser.
topsTreePanel shows tree that can browse items connected to baseItem. The user can select individual nodes of the tree to set the currentItem for a Tower of Psych GUI. how far to expand the tree automatically when building it
The documentation for this class was generated from the following file: