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

wrap.ext.tree.TreePanel

Inheritance : Object : Observable : Component : BoxComponent : Container : Panel

Constructors

Signature
public TreePanel(TreePanelConfig config)

Methods

NameSignature
collapseAllvoid collapseAll()
expandAllvoid expandAll()
expandPathvoid expandPath(String path)
expandPathvoid expandPath(String path, String attr)
expandPathvoid expandPath(String path, String attr, Function callback)
getCheckedArray<TreeNode> getChecked()
getCheckedArray<TreeNode> getChecked(String attribute)
getCheckedArray<TreeNode> getChecked(String attribute, TreeNode startNode)
getElElement getEl()
getLoaderTreeLoader getLoader()
getNodeByIdTreeNode getNodeById(String id)
getRootNodeTreeNode getRootNode()
getSelectionModelSelectionModel getSelectionModel()
getTreeElElement getTreeEl()
selectPathvoid selectPath(String path)
selectPathvoid selectPath(String path, String attr)
selectPathvoid selectPath(String path, String attr, Function callback)
setRootNodevoid setRootNode(Node node)

Properties

NameTypeComment
dragZone
wrap.ext.tree.TreeDragZone
dropZone
wrap.ext.tree.TreeDropZone
root
wrap.ext.tree.TreeNode

Constructors

public TreePanel(TreePanelConfig config)

Parameters

NameTypeDescription
configwrap.ext.tree.types.TreePanelConfig



Methods

collapseAll

void collapseAll()


expandAll

void expandAll()


expandPath

void expandPath(String path)

Parameters

NameTypeDescription
pathcore.String

expandPath

void expandPath(String path, String attr)

Parameters

NameTypeDescription
pathcore.String
attrcore.String

expandPath

void expandPath(String path, String attr, Function callback)

Parameters

NameTypeDescription
pathcore.String
attrcore.String
callbackcore.Function

getChecked

Array<TreeNode> getChecked()

Returns
core.Array<wrap.ext.tree.TreeNode>

getChecked

Array<TreeNode> getChecked(String attribute)

Returns
core.Array<wrap.ext.tree.TreeNode>

Parameters

NameTypeDescription
attributecore.String

getChecked

Array<TreeNode> getChecked(String attribute, TreeNode startNode)

Returns
core.Array<wrap.ext.tree.TreeNode>

Parameters

NameTypeDescription
attributecore.String
startNodewrap.ext.tree.TreeNode

getEl

Element getEl()

Returns
wrap.ext.Element

getLoader

TreeLoader getLoader()

Returns
wrap.ext.tree.TreeLoader

getNodeById

TreeNode getNodeById(String id)

Returns
wrap.ext.tree.TreeNode

Parameters

NameTypeDescription
idcore.String

getRootNode

TreeNode getRootNode()

Returns
wrap.ext.tree.TreeNode

getSelectionModel

SelectionModel getSelectionModel()

Returns
wrap.ext.tree.SelectionModel

getTreeEl

Element getTreeEl()

Returns
wrap.ext.Element

selectPath

void selectPath(String path)

Parameters

NameTypeDescription
pathcore.String

selectPath

void selectPath(String path, String attr)

Parameters

NameTypeDescription
pathcore.String
attrcore.String

selectPath

void selectPath(String path, String attr, Function callback)

Parameters

NameTypeDescription
pathcore.String
attrcore.String
callbackcore.Function

setRootNode

void setRootNode(Node node)

Parameters

NameTypeDescription
nodewrap.ext.data.Node

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