Tree

Kind of class:class
Inherits from:List < ScrollSelectList < ScrollView < View < UIComponent < UIObject < MovieClip
Classpath:mx.controls.Tree
File last modified:Tuesday, 18 December 2007, 15:44:37

Summary


Constructor
Class properties
Class properties inherited from List
Class properties inherited from ScrollSelectList
Class properties inherited from ScrollView
Class properties inherited from View
Class properties inherited from UIObject
Instance properties
Class methods
Class methods inherited from View
Class methods inherited from UIObject
Instance methods
Event handlers
Event handlers inherited from List
Event handlers inherited from ScrollView
Event handlers inherited from UIComponent

Constructor

Tree

function Tree (
)

Class properties

mixIt2

static mixIt2:Boolean = TreeDataProvider.Initialize(XMLNode)
(read)

symbolName

static symbolName:String = "Tree"
(read)

symbolOwner

static symbolOwner:Object = Tree
(read)

version

static version:String = "2.0.2.127"
(read)

Instance properties

__rowRenderer

__rowRenderer:String = "TreeRow"
(read)

_inherited_dataProvider

_inherited_dataProvider:Object
(read)

Component metadata:
    Bindable
    type:
    "XML"

    branchNodes

    branchNodes:Object
    (read)

    className

    className:String = "Tree"
    (read)

    eventAfterTween

    eventAfterTween:Object
    (read)

    eventPending

    eventPending:Object
    (read)

    firstVisibleNode

    firstVisibleNode
    (read,write)

    isNewRowStyle

    isNewRowStyle = { depthColors:true, indentation:true, disclosureOpenIcon:true, disclosureClosedIcon:true,folderOpenIcon:true, folderClosedIcon:true, defaultLeafIcon:true }
    (read)

    isOpening

    isOpening:Boolean = false
    (read)

    maskList

    maskList:Array
    (read)

    minScrollInterval

    minScrollInterval = 50
    (read)

    nodeIcons

    nodeIcons:Object
    (read)

    nodeIndices

    nodeIndices:Object
    (read)

    nodeList

    nodeList:Array
    (read)

    opening

    opening:Boolean
    (read)

    openNodes

    openNodes:Object
    (read)

    rowIndex

    rowIndex:Number
    (read)

    rowList

    rowList:Array
    (read)

    selectedNode

    selectedNode
    (read,write)

    selectedNodes

    selectedNodes
    (read,write)

    treeDataProvider

    treeDataProvider:Object
    (read)

    tween

    tween:Object
    (read)

    Instance methods

    addItemsAt

    function addItemsAt (
    index, arr)

    addTreeNode

    function addTreeNode (
    label, data)

    Parameters:
    label:
    the text for the node
    data :
    the data for the node
    Returns:
    • the new node

    addTreeNodeAt

    function addTreeNodeAt (
    index, label, data)

    Parameters:
    label:
    the position (in the tree's root node's children) for the node
    label:
    the text for the node
    data :
    the data for the node
    Returns:
    • the new node

    draw

    function draw (
    Void) : Void

    Overrides:

    getDataProvider

    function getDataProvider (
    )

    getDisplayIndex

    function getDisplayIndex (
    node)

    Parameters:
    node:
    the node to query
    Returns:
    • the index on the tree's display list

    getDisplayList

    function getDisplayList (
    node, removed)

    getFirstVisibleNode

    function getFirstVisibleNode (
    )

    getIsBranch

    function getIsBranch (
    node)

    Parameters:
    node:
    the node to inspect
    Returns:
    • true if a branch, false if not

    getIsOpen

    function getIsOpen (
    node)

    Parameters:
    node:
    the node to inspect
    Returns:
    • true if open, false if not

    getNodeDepth

    function getNodeDepth (
    node)

    getNodeDisplayedAt

    function getNodeDisplayedAt (
    index)

    Parameters:
    index:
    the position of the node in the tree's list of displayed nodes
    Returns:
    • the node

    getTreeNodeAt

    function getTreeNodeAt (
    index)

    Parameters:
    index:
    the position of the node in the tree's dp's children
    Returns:
    • the node

    init

    function init (
    )

    invalidateStyle

    function invalidateStyle (
    propName:String) : Void

    isNodeVisible

    function isNodeVisible (
    node)

    keyDown

    function keyDown (
    e:Object) : Void

    layoutContent

    function layoutContent (
    x:Number, y:Number, tW:Number, tH:Number, dW:Number, dH:Number) : Void

    Overrides:

    modelChanged

    function modelChanged (
    eventObj)

    refresh

    function refresh (
    )

    removeAll

    function removeAll (
    )

    removeTreeNodeAt

    function removeTreeNodeAt (
    index)

    Parameters:
    index:
    the position of the node in the tree's root
    Returns:
    • the node

    setDataProvider

    function setDataProvider (
    dP)

    setDisplayIndex

    function setDisplayIndex (
    node, UID)

    setFirstVisibleNode

    function setFirstVisibleNode (
    node)

    setIcon

    function setIcon (
    node, iconID, iconID2)

    Parameters:
    node :
    the node to affect
    iconID :
    the linkage ID for the closed (or leaf) icon
    iconID2:
    the linkage ID for the open (or leaf) icon

    setIsBranch

    function setIsBranch (
    node, branch)

    Parameters:
    node :
    the node to affect
    branch:
    true if branch, false if not

    setIsOpen

    function setIsOpen (
    node, open, animate, fireEvent)

    Parameters:
    node :
    the node to affect
    open :
    true to open, false to close
    animate:
    true to animate the transition, false to not.

    setVPosition

    function setVPosition (
    pos:Number)

    size

    function size (
    Void) : Void

    Overrides:

    Event handlers

    onScroll

    function onScroll (
    evt:Object) : Void

    onTweenEnd

    function onTweenEnd (
    val)

    onTweenUpdate

    function onTweenUpdate (
    val)