Module:libextPackage:wrap.ext.dataParent:ObservableCopyright (c) 2007, 2008 Point5U, LLC
Milescript - ExtJS Wrapper Library: Project Home | Documentation

wrap.ext.data.Node

Inheritance : Object : Observable

Constructors

Signature
public Node(NodeConfig attributes)

Methods

NameSignature
appendChildNode appendChild(Node node)
appendChildNode appendChild(Array<Node> node)
bubblevoid bubble(Function fn)
bubblevoid bubble(Function fn, Object scope)
bubblevoid bubble(Function fn, Object scope, Array<Object> args)
cascadevoid cascade(Function fn)
cascadevoid cascade(Function fn, Object scope)
cascadevoid cascade(Function fn, Object scope, Array<Object> args)
containsboolean contains(Node node)
eachChildvoid eachChild(Function fn)
eachChildvoid eachChild(Function fn, Object scope)
eachChildvoid eachChild(Function fn, Object scope, Array<Object> args)
findChildNode findChild(String attribute, Object value)
findChildByNode findChildBy(Function fn)
findChildByNode findChildBy(Function fn, Object scope)
getDepthint getDepth()
getOwnerTreeTree getOwnerTree()
getPathString getPath()
getPathString getPath(String attr)
indexOfint indexOf(Node node)
insertBeforeNode insertBefore(Node node, Node refNode)
isAncestorboolean isAncestor(Node node)
isFirstboolean isFirst()
isLastboolean isLast()
isLeafboolean isLeaf()
itemNode item(int index)
removeNode remove()
removeChildNode removeChild(Node node)
replaceChildNode replaceChild(Node newChild, Node oldChild)
sortvoid sort(Function fn)
sortvoid sort(Function fn, Object scope)

Properties

NameTypeComment
attributes
core.Array<core.Object>
childNodes
core.Array<wrap.ext.data.Node>
firstChild
wrap.ext.data.Node
id
core.String
lastChild
wrap.ext.data.Node
nextSibling
wrap.ext.data.Node
parentNode
wrap.ext.data.Node
previousSibling
wrap.ext.data.Node

Constructors

public Node(NodeConfig attributes)

Parameters

NameTypeDescription
attributeswrap.ext.data.types.NodeConfig



Methods

appendChild

Node appendChild(Node node)

Returns
wrap.ext.data.Node

Parameters

NameTypeDescription
nodewrap.ext.data.Node

appendChild

Node appendChild(Array<Node> node)

Returns
wrap.ext.data.Node

Parameters

NameTypeDescription
nodecore.Array<wrap.ext.data.Node>

bubble

void bubble(Function fn)

Parameters

NameTypeDescription
fncore.Function

bubble

void bubble(Function fn, Object scope)

Parameters

NameTypeDescription
fncore.Function
scopecore.Object

bubble

void bubble(Function fn, Object scope, Array<Object> args)

Parameters

NameTypeDescription
fncore.Function
scopecore.Object
argscore.Array<core.Object>

cascade

void cascade(Function fn)

Parameters

NameTypeDescription
fncore.Function

cascade

void cascade(Function fn, Object scope)

Parameters

NameTypeDescription
fncore.Function
scopecore.Object

cascade

void cascade(Function fn, Object scope, Array<Object> args)

Parameters

NameTypeDescription
fncore.Function
scopecore.Object
argscore.Array<core.Object>

contains

boolean contains(Node node)

Returns
core.boolean

Parameters

NameTypeDescription
nodewrap.ext.data.Node

eachChild

void eachChild(Function fn)

Parameters

NameTypeDescription
fncore.Function

eachChild

void eachChild(Function fn, Object scope)

Parameters

NameTypeDescription
fncore.Function
scopecore.Object

eachChild

void eachChild(Function fn, Object scope, Array<Object> args)

Parameters

NameTypeDescription
fncore.Function
scopecore.Object
argscore.Array<core.Object>

findChild

Node findChild(String attribute, Object value)

Returns
wrap.ext.data.Node

Parameters

NameTypeDescription
attributecore.String
valuecore.Object

findChildBy

Node findChildBy(Function fn)

Returns
wrap.ext.data.Node

Parameters

NameTypeDescription
fncore.Function

findChildBy

Node findChildBy(Function fn, Object scope)

Returns
wrap.ext.data.Node

Parameters

NameTypeDescription
fncore.Function
scopecore.Object

getDepth

int getDepth()

Returns
core.int

getOwnerTree

Tree getOwnerTree()

Returns
wrap.ext.data.Tree

getPath

String getPath()

Returns
core.String

getPath

String getPath(String attr)

Returns
core.String

Parameters

NameTypeDescription
attrcore.String

indexOf

int indexOf(Node node)

Returns
core.int

Parameters

NameTypeDescription
nodewrap.ext.data.Node

insertBefore

Node insertBefore(Node node, Node refNode)

Returns
wrap.ext.data.Node

Parameters

NameTypeDescription
nodewrap.ext.data.Node
refNodewrap.ext.data.Node

isAncestor

boolean isAncestor(Node node)

Returns
core.boolean

Parameters

NameTypeDescription
nodewrap.ext.data.Node

isFirst

boolean isFirst()

Returns
core.boolean

isLast

boolean isLast()

Returns
core.boolean

isLeaf

boolean isLeaf()

Returns
core.boolean

item

Node item(int index)

Returns
wrap.ext.data.Node

Parameters

NameTypeDescription
indexcore.int

remove

Node remove()

Returns
wrap.ext.data.Node

removeChild

Node removeChild(Node node)

Returns
wrap.ext.data.Node

Parameters

NameTypeDescription
nodewrap.ext.data.Node

replaceChild

Node replaceChild(Node newChild, Node oldChild)

Returns
wrap.ext.data.Node

Parameters

NameTypeDescription
newChildwrap.ext.data.Node
oldChildwrap.ext.data.Node

sort

void sort(Function fn)

Parameters

NameTypeDescription
fncore.Function

sort

void sort(Function fn, Object scope)

Parameters

NameTypeDescription
fncore.Function
scopecore.Object

Module:libextPackage:wrap.ext.dataParent:ObservableCopyright (c) 2007, 2008 Point5U, LLC
Milescript - ExtJS Wrapper Library: Project Home | Documentation