Roo.util.Observable Roo.data.Tree Roo.tree.TreePanel
Package: | Roo.tree |
Defined In: | Roo/tree/TreePanel.js. |
Class: | TreePanel |
Extends: | Roo.data.Tree |
Options | Defined By | |
---|---|---|
animate : Boolean
true to enable animated expand/collapse (defaults to the value of Roo.enableFx)
true to enable animated expand/collapse (defaults to the value of Roo.enableFx)
|
Roo.tree.TreePanel | |
containerScroll : Boolean
true to register this container with ScrollManager
true to register this container with ScrollManager
|
Roo.tree.TreePanel | |
ddAppendOnly : String
True if the tree should only allow append drops (use for trees which are sorted)
True if the tree should only allow append drops (use for trees which are sorted)
|
Roo.tree.TreePanel | |
ddGroup : String
The DD group this TreePanel belongs to
The DD group this TreePanel belongs to
|
Roo.tree.TreePanel | |
ddScroll : Boolean
true to enable YUI body scrolling
true to enable YUI body scrolling
|
Roo.tree.TreePanel | |
dragConfig : Object
Custom config to pass to the {link Roo.tree.TreeDragZone} instance
Custom config to pass to the {link Roo.tree.TreeDragZone} instance
|
Roo.tree.TreePanel | |
dropConfig : Object
Custom config to pass to the {link Roo.tree.TreeDropZone} instance
Custom config to pass to the {link Roo.tree.TreeDropZone} instance
|
Roo.tree.TreePanel | |
editor : Object|Roo.tree.TreeEditor
The TreeEditor or xtype data to display when clicked.
The TreeEditor or xtype data to display when clicked.
|
Roo.tree.TreePanel | |
enableDD : Boolean
true to enable drag and drop
true to enable drag and drop
|
Roo.tree.TreePanel | |
enableDrag : Boolean
true to enable just drag
true to enable just drag
|
Roo.tree.TreePanel | |
enableDrop : Boolean
true to enable just drop
true to enable just drop
|
Roo.tree.TreePanel | |
hlColor : String
The color of the node highlight (defaults to C3DAF9)
The color of the node highlight (defaults to C3DAF9)
|
Roo.tree.TreePanel | |
hlDrop : Boolean
false to disable node highlight on drop (defaults to the value of Roo.enableFx)
false to disable node highlight on drop (defaults to the value of Roo.enableFx)
|
Roo.tree.TreePanel | |
lines : Boolean
false to disable tree lines (defaults to true)
false to disable tree lines (defaults to true)
|
Roo.tree.TreePanel | |
listeners : Object
list of events and functions to call for this object,
For example :
list of events and functions to call for this object,
For example :
|
Roo.util.Observable | |
loader : Boolean
A TreeLoader for use with this TreePanel
A TreeLoader for use with this TreePanel
|
Roo.tree.TreePanel | |
pathSeparator : String
The token used to separate sub-paths in path strings (defaults to '/')
The token used to separate sub-paths in path strings (defaults to '/')
|
Roo.tree.TreePanel | |
renderer : Function
DEPRECATED - use TreeLoader:create event / Sets the rendering (formatting) function for the nodes.
DEPRECATED - use TreeLoader:create event / Sets the rendering (formatting) function for the nodes. to return HTML markup for the tree view. The render function is called with the following parameters:
|
Roo.tree.TreePanel | |
rendererTip : Function
DEPRECATED - use TreeLoader:create event / Sets the rendering (formatting) function for the nodes hovertip to return HTML markup for the tree view.
DEPRECATED - use TreeLoader:create event / Sets the rendering (formatting) function for the nodes hovertip to return HTML markup for the tree view. The render function is called with the following parameters:
|
Roo.tree.TreePanel | |
rootVisible : Boolean
false to hide the root node (defaults to true)
false to hide the root node (defaults to true)
|
Roo.tree.TreePanel | |
selModel : Boolean
A tree selection model to use with this TreePanel (defaults to a {link Roo.tree.DefaultSelectionModel})
A tree selection model to use with this TreePanel (defaults to a {link Roo.tree.DefaultSelectionModel})
|
Roo.tree.TreePanel | |
singleExpand : Boolean
true if only 1 node per branch may be expanded
true if only 1 node per branch may be expanded
|
Roo.tree.TreePanel |
Method | Defined By | |
---|---|---|
addEvents
(Object object)
Used to define events on this Observable
Used to define events on this Observable
|
Roo.util.Observable | |
Appends an event handler to this component
Appends an event handler to this component
|
Roo.util.Observable | |
collapseAll
()
Collapse all nodes
Collapse all nodes
|
Roo.tree.TreePanel | |
expandAll
()
Expand all nodes
Expand all nodes
|
Roo.tree.TreePanel | |
Expands a specified path in this TreePanel.
Expands a specified path in this TreePanel. A path can be retrieved from a node with {link Roo.data.NodegetPath}
|
Roo.tree.TreePanel | |
Fires the specified event with the passed parameters (minus the event name).
|
Roo.util.Observable | |
Retrieve an array of checked nodes, or an array of a specific attribute of checked nodes (e.g.
|
Roo.tree.TreePanel | |
getEl
()
Returns the container element for this TreePanel
Returns the container element for this TreePanel
|
Roo.tree.TreePanel | |
getLoader
()
Returns the default TreeLoader for this TreePanel
Returns the default TreeLoader for this TreePanel
|
Roo.tree.TreePanel | |
getNodeById
(String id)
:
Node
Gets a node in this tree by its id.
Gets a node in this tree by its id.
|
Roo.data.Tree | |
getRootNode
()
:
Node
Returns the root node for this tree.
Returns the root node for this tree.
|
Roo.data.Tree | |
getSelectionModel
()
Returns the selection model used by this TreePanel
Returns the selection model used by this TreePanel
|
Roo.tree.TreePanel | |
Roo.util.Observable | ||
Appends an event handler to this element (shorthand for addListener)
Appends an event handler to this element (shorthand for addListener)
|
Roo.util.Observable | |
purgeListeners
()
Removes all listeners for this object
Removes all listeners for this object
|
Roo.util.Observable | |
Roo.util.Observable | ||
render
()
Trigger rendering of this TreePanel
Trigger rendering of this TreePanel
|
Roo.tree.TreePanel | |
Selects the node in this tree at the specified path.
Selects the node in this tree at the specified path. A path can be retrieved from a node with {link Roo.data.NodegetPath}
|
Roo.tree.TreePanel | |
setRootNode
(Node node)
:
Node
Sets the root node for this tree.
Sets the root node for this tree.
|
Roo.data.Tree | |
Roo.util.Observable |
Event | Defined By | |
---|---|---|
append (Tree tree, Node parent, Node node, Number index)
Fires when a new child node is appended to a node in this tree.
Fires when a new child node is appended to a node in this tree.
|
Roo.data.Tree | |
beforeappend (Tree tree, Node parent, Node node)
Fires before a new child is appended to a node in this tree, return false to cancel the append.
Fires before a new child is appended to a node in this tree, return false to cancel the append.
|
Roo.data.Tree | |
beforechildrenrendered (Node node)
Fires right before the child nodes for a node are rendered
Fires right before the child nodes for a node are rendered
|
Roo.tree.TreePanel | |
beforeclick (Node node, Roo.EventObject e)
Fires before click processing on a node.
Fires before click processing on a node. Return false to cancel the default action.
|
Roo.tree.TreePanel | |
Roo.tree.TreePanel | ||
Roo.tree.TreePanel | ||
beforeinsert (Tree tree, Node parent, Node node, Node refNode)
Fires before a new child is inserted in a node in this tree, return false to cancel the insert.
Fires before a new child is inserted in a node in this tree, return false to cancel the insert.
|
Roo.data.Tree | |
beforeload (Node node)
Fires before a node is loaded, return false to cancel
Fires before a node is loaded, return false to cancel
|
Roo.tree.TreePanel | |
beforemove (Tree tree, Node node, Node oldParent, Node newParent, Number index)
Fires before a node is moved to a new location in the tree.
Fires before a node is moved to a new location in the tree. Return false to cancel the move.
|
Roo.data.Tree | |
beforenodedrop (Object dropEvent)
Fires when a DD object is dropped on a node in this tree for preprocessing.
Fires when a DD object is dropped on a node in this tree for preprocessing. Return false to cancel the drop. The dropEvent
passed to handlers has the following properties:
|
Roo.tree.TreePanel | |
beforeremove (Tree tree, Node parent, Node node)
Fires before a child is removed from a node in this tree, return false to cancel the remove.
Fires before a child is removed from a node in this tree, return false to cancel the remove.
|
Roo.data.Tree | |
checkchange (Node this, Boolean checked)
Fires when a node with a checkbox's checked property changes
Fires when a node with a checkbox's checked property changes
|
Roo.tree.TreePanel | |
click (Node node, Roo.EventObject e)
Fires when a node is clicked
Fires when a node is clicked
|
Roo.tree.TreePanel | |
collapse (Node node)
Fires when a node is collapsed
Fires when a node is collapsed
|
Roo.tree.TreePanel | |
contextmenu (Node node, Roo.EventObject e)
Fires when a node is right clicked
Fires when a node is right clicked
|
Roo.tree.TreePanel | |
dblclick (Node node, Roo.EventObject e)
Fires when a node is double clicked
Fires when a node is double clicked
|
Roo.tree.TreePanel | |
disabledchange (Node node, Boolean disabled)
Fires when the disabled status of a node changes
Fires when the disabled status of a node changes
|
Roo.tree.TreePanel | |
dragdrop (Roo.tree.TreePanel this, Roo.tree.TreeNode node, DD dd, event e)
Fires when a dragged node is dropped on a valid DD target
Fires when a dragged node is dropped on a valid DD target
|
Roo.tree.TreePanel | |
enddrag (Roo.tree.TreePanel this, Roo.tree.TreeNode node, event e)
Fires when a drag operation is complete
Fires when a drag operation is complete
|
Roo.tree.TreePanel | |
expand (Node node)
Fires when a node is expanded
Fires when a node is expanded
|
Roo.tree.TreePanel | |
insert (Tree tree, Node parent, Node node, Node refNode)
Fires when a new child node is inserted in a node in this tree.
Fires when a new child node is inserted in a node in this tree.
|
Roo.data.Tree | |
load (Node node)
Fires when a node is loaded
Fires when a node is loaded
|
Roo.tree.TreePanel | |
move (Tree tree, Node node, Node oldParent, Node newParent, Number index)
Fires when a node is moved to a new location in the tree
Fires when a node is moved to a new location in the tree
|
Roo.data.Tree | |
nodedragover (Object dragOverEvent)
Fires when a tree node is being targeted for a drag drop, return false to signal drop not allowed.
Fires when a tree node is being targeted for a drag drop, return false to signal drop not allowed. The dragOverEvent
passed to handlers has the following properties:
|
Roo.tree.TreePanel | |
nodedrop (Object dropEvent)
Fires after a DD object is dropped on a node in this tree.
Fires after a DD object is dropped on a node in this tree. The dropEvent
passed to handlers has the following properties:
|
Roo.tree.TreePanel | |
remove (Tree tree, Node parent, Node node)
Fires when a child node is removed from a node in this tree.
Fires when a child node is removed from a node in this tree.
|
Roo.data.Tree | |
startdrag (Roo.tree.TreePanel this, Roo.tree.TreeNode node, event e)
Fires when a node starts being dragged
Fires when a node starts being dragged
|
Roo.tree.TreePanel | |
Roo.tree.TreePanel |