When a Tree displays a node it uses the
If any other attributes exist, they become additional properties of the node's attributes within
the Tree.
The actual root node is interpreted as the Tree component itself. This means that the
(in the sample,
<node label="Mail">
that a tree can have multiple root folders. In this sample, there is only one root folder displayed in
the tree: "Mail". However, if you were to add sibling nodes at that level in the XML, multiple root
nodes would be displayed in the Tree.
Tree parameters
The following are authoring parameters that you can set for each Tree component instance in the
Property inspector.
multipleSelection
(
) or not (
true
false
rowHeight
The height of each row in pixels. The default value is 20.
You can write Lingo or JavaScript to control these and additional options for the Tree component
using its properties, methods, and events.
You cannot enter data parameters in the Property inspector for the Tree component like you can
with other components.
Customizing the Tree component
You can size a Tree component horizontally and vertically both while authoring and at runtime.
While authoring, select the component on the Stage and drag the resize handles. At runtime, use
the
method. When a tree isn't wide enough to display the text of the nodes, the text
setSize()
is clipped.
Method summary for the Tree class
Method
PopUpManager.createPopUp()
Accordion.createSegment()
Accordion.destroyChildAt()
Accordion.getChildAt()
Tree.getDisplayIndex()
Tree.getNodeDisplayedAt()
Tree.getTreeNodeAt()
Tree.removeAll()
Tree.removeTreeNodeAt()
Tree.setIsBranch()
label
), is rendered as the root node in the Tree view. This means
A Boolean value that indicates whether a user can select multiple items
). The default value is false.
Description
Adds a node to a tree instance.
Adds a node at a specific location in a tree instance.
Specifies whether the folder is a branch (has a folder icon and an
expander arrow).
Indicates whether a branch is open or closed.
Returns the display index of a given node.
Returns the display index of a given node.
Returns a node on the root of the tree.
Removes all nodes from a tree instance and refreshes the tree.
Removes a node at a specified position and refreshes the tree.
Indicates whether a node is a branch (receives folder icon and
expander arrow).
attribute of the node by default as the text label.
firstChild
Tree component
229
Need help?
Do you have a question about the DIRECTOR MX 2004-USING DIRECTOR and is the answer not in the manual?
Questions and answers