AdvancedTree Properties

 

Property Name Getter/Setter Class Description
allowDeselect getter/setter Boolean Whether a selected node can be deselected when clicked a second time.
animateX getter/setter Boolean Whether childnodes will animate to position on the x axis as a node is opened.
animateY getter/setter Boolean Whether childnodes will animate to position on the y axis as a node is opened.
animating getter Boolean Whether the tree is currently animating its nodes into position.
animationTime getter/setter Number The amount of time in milliseconds for the tree to animate into position when a node is opened or closed.
bottomVisibleNode getter TreeNode The bottom most visible node in the tree at the time of the call.
closeOnClick getter/setter Boolean Whether nodes close on a single click as opposed to the default doubleclick action.
connectorOffset getter/setter Number The pixel offset on the x axis from a node icon's center at which connector lines are drawn.
copyOnControl getter/setter Boolean Whether a node is copied when dragged with the CONTROL or COMMAND key pressed.
data getter String The data of the tree as a string formatted as XML.
displayRoot getter/setter Boolean Whether the root node in the tree is displayed.
draggable getter/setter Boolean Whether nodes in the tree are draggable.
dropContext getter DropContext The context for a dropped node, containing dropped parent and position.
easeX getter/setter Function The easing function used to animate nodes on the x axis.
easeY getter/setter Function The easing function used to animate nodes on the y axis.
editable getter/setter Boolean Whether nodes use editable text fields.
externalDropEnabled getter/setter Boolean Whether the tree can accept dropped nodes from other sources.
file setter String The URL path to the XML file to load for the tree's data.
forceSingleOpenBranch getter/setter Boolean Whether the tree will close the previous open branch when a new branch is opened.
getLabelFromName getter/setter Boolean Whether a node's label in the tree is generated from the XMLNode nodename.
highlightSelectedAncestors getter/setter Boolean Whether all the selected node's ancestors are highlighted as well as the selected node.
iconBuffer getter/setter Number The pixel distance between icon and label of node.
indentation getter/setter Number The pixel distance on the x axis each level of the tree is displayed in relation to its parent level.
internalDropEnabled getter/setter Boolean Whether the tree can accept dropped nodes from itself.
labelAttribute getter/setter String The attribute in a tree node that will be used to populate the label in the view.
lockNodeWidth getter/setter Boolean Whether nodes expand to match the length of the node label.
margins getter TreeMargins Controls the top, left, right and bottom pixel margins in the tree.
multiline getter/setter Boolean Whether nodes in the tree can render over multiple lines.
nodeGraphicBuffer getter/setter Number The pixel inset on the x and y axis of a node label field in relation to the width and height of its graphic.
nodeHeight getter/setter Number The pixel height of a node in the tree, determining the selectable area.
nodeLabelFunction getter/setter Function A function that will be called for each node to determine its label. The function will be passed a reference to a node and should return a string.
nodeLabelOffsetX getter/setter Number The pixel amount that labels for a node will be offset on the x axis from their default position.
nodeLabelOffsetY getter/setter Number The pixel amount that labels for a node will be offset on the y axis from their default position.
nodeLeading getter/setter Number The vertical pixel distance between nodes in the tree.
nodeLevelGraphics getter/setter Array An array of node graphic skin Classes for each level in the tree. The 0 index is the class for the first level, the 1 index is the class for the second level, etc.
nodeLevelHeight getter/setter Array An array of node height values for each level in the tree. The 0 index is the class for the first level, the 1 index is the class for the second level, etc.
nodeLevelIndentation getter/setter Array An array of indentation values for each level in the tree. The 0 index is the indentation for the first level, the 1 index is the indentation for the second level, etc.
nodeLevelLeading getter/setter Array An array of node leading values for each level in the tree. The 0 index is the class for the first level, the 1 index is the class for the second level, etc.
nodeLevelStyleFormats getter/setter Array An array of StyleFormat instances for each level in the tree. The 0 index is the format for the first level, the 1 index is the format for the second level, etc.
nodeMenuFunction getter/setter Function A function that will be called when a node is right clicked that determines the custom menu options for the node. The function will be passed an instance of a node and should return an array of ContectMenuItems to be used for that node.
nodeMinWidth getter/setter Number When lockNodeSize is set to true, the minimum pixel size allows for a node.
nodeTooltipFunction getter/setter Function A function that will be called when a tooltip needs to be shown for a node. The function will be passed an instance of a node and should return a text string to be used for that node tooltip.
preventClose getter/setter Boolean Whether nodes in the tree may be opened, but not closed by the user.
rootNode getter/setter TreeNode The root TreeNode of the entire tree.
scrollPaneConfiguration getter/setter ScrollPaneConfiguration The configuration object for the scrollpane-related properties of the tree, such as scrollbar side and pixel dimensions.
selectedNode getter/setter TreeNode The currently selected TreeNode in the tree.
selectedNodes getter/setter Array An array of the currently selected nodes, if selectMultiple is set to true.
selectMultiple getter/setter Boolean Whether multiple nodes in the tree may be selected at the same time using CONTROL or COMMAND.
tooltipAttribute getter/setter String The attribute name whose value will be used as a tooltip for the node.
tooltipMaxWidth getter/setter Number The maximum pixel width for a node tooltip before it wraps on to multiple lines.
topVisibleNode getter TreeNode The top most visible node in the tree at the time of the call.
treeIcons getter/setter Object An associate array of skin Classes mapped to nodeNames.
treeIconFunction getter/setter Function A function that will be called when a node is to be rendered that determines the icon for the node. The function will be passed an instance of a node and should return the class to be used to render the icon for that node.
useConnectors getter/setter Boolean Whether line connectors are drawn between nodes and their children.
useHandCursor getter/setter Boolean Whether the hyperlink hand cursor will appear when rolling over clickable nodes in the tree.
useNodeForTip getter/setter Boolean Whether the XML structure of a node and its children are displayed in the node's tooltip.
useOpenClose getter/setter Boolean Whether the open/close button is displayed next to a node's icon when the node has children.
useSelectionHighlight getter/setter Boolean Whether a selection highlight box is drawn around a selected node.
useToolTips getter/setter Boolean Whether nodes display tooltips when a mouse hovers over.
validator getter/setter XML The XML instance to which the tree looks to determine valid drag and drops, and which nodes are draggable, editable, unique and/or deletable.