Main Page | Packages | Class Tree | Index | Help

mx.controls.treeclasses

class TreeDataProvider

Object
  |
  +--mx.controls.treeclasses.TreeDataProvider


class TreeDataProvider
extends Object

XMLNode Mix-in Methods (FTreeDataProvider methods) nig 05.22.03 To get the functionality we want out of the XML object, a few methods need to be mixed directly onto XMLNode, since the XML object is composed of XMLNode objects.

The methods will allow us to broadcast changes to the registered views, and provide the extra methods users will want to make XML construction easier.



Field Summary


appendChild: Function



attributes: Object


static
blankXML
::: END MIXIN MANAGEMENT BLOCK.


childNodes: Array
::: From XMLNode mixin


dispatchEvent: Function
::: From EventDispatcher mixin

static
evtDipatcher
make sure we have a link to the package we depend on at static time


hasChildNodes: Function



insertBefore: Function


static
largestID
Keep track of the latest treenode ID (this will let us move from one tree to another).

static
mixinProps: Array
::: BEGIN BLOCK : USED FOR MIXIN MANAGEMENT ONLY

static
mixins: TreeDataProvider



parentNode: Object



removeNode: Function


Fields inherited from class Object

__proto__, constructor, prototype

Constructor


TreeDataProvider ( )


Method Summary


addTreeNode ( arg, data )
adds a single node (arg can be a string or an XML object)


addTreeNodeAt ( index, arg, data )
adds a single node (arg can be a string or an XML object)

static
convertToNode ( tag, arg, data )
::: STATIC Method ConvertToNode Arguments : tag (element tag name) label (string OR XML object) [data] (string) returns : an XMLNode Note that in the case of xmlObj, the first childNode is copied out of the DOM


createProp ( obj : Object, propName: String, setter: Boolean ): Void
dynamically adds Properties to the object passed, builds inline functions to be passed to addProperty


getRootNode ( )



getTreeNodeAt ( index )


static
Initialize ( obj: Object ): Boolean
Initialize is called to apply the mixinProps above to the given object's prototype.


removeAll ( )



removeTreeNode ( )



removeTreeNodeAt ( index )



updateViews ( eventObj )
::: PRIVATE METHODS / PROPERTIES

Methods inherited from class Object

addProperty, hasOwnProperty, isPropertyEnumerable, isPrototypeOf, registerClass, toLocaleString, toString, unwatch, valueOf, watch



Field Documentation

appendChild

var appendChild: Function

attributes

var attributes: Object

blankXML

static var blankXML
::: END MIXIN MANAGEMENT BLOCK.

BEGIN ACTUAL CLASS CODE HERE. Used for Node creation and other helper functions

childNodes

var childNodes: Array
::: From XMLNode mixin

dispatchEvent

var dispatchEvent: Function
::: From EventDispatcher mixin

evtDipatcher

static var evtDipatcher
make sure we have a link to the package we depend on at static time

hasChildNodes

var hasChildNodes: Function

insertBefore

var insertBefore: Function

largestID

static var largestID
Keep track of the latest treenode ID (this will let us move from one tree to another).

mixinProps

static var mixinProps: Array
::: BEGIN BLOCK : USED FOR MIXIN MANAGEMENT ONLY

mixins

static var mixins: TreeDataProvider

parentNode

var parentNode: Object

removeNode

var removeNode: Function

Constructor Documentation

TreeDataProvider

function TreeDataProvider()

Method Documentation

addTreeNode

function addTreeNode(arg,
 data)
adds a single node (arg can be a string or an XML object)

addTreeNodeAt

function addTreeNodeAt(index,
 arg,
 data)
adds a single node (arg can be a string or an XML object)

convertToNode

static function convertToNode(tag,
 arg,
 data)
::: STATIC Method ConvertToNode Arguments : tag (element tag name) label (string OR XML object) [data] (string) returns : an XMLNode Note that in the case of xmlObj, the first childNode is copied out of the DOM

createProp

function createProp(obj : Object,
 propName: String,
 setter: Boolean): Void
dynamically adds Properties to the object passed, builds inline functions to be passed to addProperty

getRootNode

function getRootNode()

getTreeNodeAt

function getTreeNodeAt(index)

Initialize

static function Initialize(obj: Object): Boolean
Initialize is called to apply the mixinProps above to the given object's prototype.

Typical usage : TreeDataProvider.Initialize(XMLNode);

removeAll

function removeAll()

removeTreeNode

function removeTreeNode()

removeTreeNodeAt

function removeTreeNodeAt(index)

updateViews

function updateViews(eventObj)
::: PRIVATE METHODS / PROPERTIES


The documentation was generated from the following file:


Copyright © 1997-2005 Macromedia, Inc. All rights reserved. Generated with AS2Doc