|
TreePanel( String/HTMLElement/Element el , Object config ) |
TreePanel |
|
|
addEvents( Object object ) : void |
Observable |
Used to define events on this Observable |
|
addListener( String eventName , Function handler , [Object scope ], [Object options ] ) : void |
Observable |
Appends an event handler to this component |
|
collapseAll() : void |
TreePanel |
Collapse all nodes |
|
expandAll() : void |
TreePanel |
Expand all nodes |
|
expandPath( String path , [String attr ], [Function callback ] ) : void |
TreePanel |
Expands a specified path in this TreePanel. A path can be retrieved from a node with Ext.data.Node.getPath |
|
fireEvent( String eventName , Object... args ) : Boolean |
Observable |
Fires the specified event with the passed parameters (minus the event name). |
|
getChecked( [String attribute ], [TreeNode startNode ] ) : Array |
TreePanel |
Retrieve an array of checked nodes, or an array of a specific attribute of checked nodes (e.g. "id") |
|
getEl() : void |
TreePanel |
Returns the container element for this TreePanel |
|
getLoader() : void |
TreePanel |
Returns the default TreeLoader for this TreePanel |
|
getNodeById( String id ) : Node |
Tree |
Gets a node in this tree by its id. |
|
getRootNode() : Node |
Tree |
Returns the root node for this tree. |
|
getSelectionModel() : void |
TreePanel |
Returns the selection model used by this TreePanel |
|
hasListener( String eventName ) : Boolean |
Observable |
Checks to see if this object has any listeners for a specified event |
|
on( String eventName , Function handler , [Object scope ], [Object options ] ) : void |
Observable |
Appends an event handler to this element (shorthand for addListener) |
|
purgeListeners() : void |
Observable |
Removes all listeners for this object |
|
removeListener( String eventName , Function handler , [Object scope ] ) : void |
Observable |
Removes a listener |
|
render() : void |
TreePanel |
Trigger rendering of this TreePanel |
|
selectPath( String path , [String attr ], [Function callback ] ) : void |
TreePanel |
Selects the node in this tree at the specified path. A path can be retrieved from a node with Ext.data.Node.getPath |
|
setRootNode( Node node ) : Node |
Tree |
Sets the root node for this tree. |
|
un( String eventName , Function handler , [Object scope ] ) : void |
Observable |
Removes a listener (shorthand for removeListener) |
|
append : ( Tree tree , Node parent , Node node , Number index ) |
Tree |
Fires when a new child node is appended to a node in this tree. |
|
beforeappend : ( Tree tree , Node parent , Node node ) |
Tree |
Fires before a new child is appended to a node in this tree, return false to cancel the append. |
|
beforechildrenrendered : ( Node node ) |
TreePanel |
Fires right before the child nodes for a node are rendered |
|
beforeclick : ( Node node , Ext.EventObject e ) |
TreePanel |
Fires before click processing on a node. Return false to cancel the default action. |
|
beforecollapse : ( Node node , Boolean deep , Boolean anim ) |
TreePanel |
Fires before a node is collapsed, return false to cancel. |
|
beforeexpand : ( Node node , Boolean deep , Boolean anim ) |
TreePanel |
Fires before a node is expanded, return false to cancel. |
|
beforeinsert : ( Tree tree , Node parent , Node node , Node refNode ) |
Tree |
Fires before a new child is inserted in a node in this tree, return false to cancel the insert. |
|
beforeload : ( Node node ) |
TreePanel |
Fires before a node is loaded, return false to cancel |
|
beforemove : ( Tree tree , Node node , Node oldParent , Node newParent , Number index ) |
Tree |
Fires before a node is moved to a new location in the tree. Return false to cancel the move. |
|
beforenodedrop : ( Object dropEvent ) |
TreePanel |
Fires when a DD object is dropped on a node in this tree for preprocessing. Return false to cancel the drop. The drop... |
|
beforeremove : ( Tree tree , Node parent , Node node ) |
Tree |
Fires before a child is removed from a node in this tree, return false to cancel the remove. |
|
checkchange : ( Node this , Boolean checked ) |
TreePanel |
Fires when a node with a checkbox's checked property changes |
|
click : ( Node node , Ext.EventObject e ) |
TreePanel |
Fires when a node is clicked |
|
collapse : ( Node node ) |
TreePanel |
Fires when a node is collapsed |
|
contextmenu : ( Node node , Ext.EventObject e ) |
TreePanel |
Fires when a node is right clicked |
|
dblclick : ( Node node , Ext.EventObject e ) |
TreePanel |
Fires when a node is double clicked |
|
disabledchange : ( Node node , Boolean disabled ) |
TreePanel |
Fires when the disabled status of a node changes |
|
dragdrop : ( Ext.tree.TreePanel this , Ext.tree.TreeNode node , DD dd , event e ) |
TreePanel |
Fires when a dragged node is dropped on a valid DD target |
|
enddrag : ( Ext.tree.TreePanel this , Ext.tree.TreeNode node , event e ) |
TreePanel |
Fires when a drag operation is complete |
|
expand : ( Node node ) |
TreePanel |
Fires when a node is expanded |
|
insert : ( Tree tree , Node parent , Node node , Node refNode ) |
Tree |
Fires when a new child node is inserted in a node in this tree. |
|
load : ( Node node ) |
TreePanel |
Fires when a node is loaded |
|
move : ( Tree tree , Node node , Node oldParent , Node newParent , Number index ) |
Tree |
Fires when a node is moved to a new location in the tree |
|
nodedragover : ( Object dragOverEvent ) |
TreePanel |
Fires when a tree node is being targeted for a drag drop, return false to signal drop not allowed. The dragOverEvent
... |
|
nodedrop : ( Object dropEvent ) |
TreePanel |
Fires after a DD object is dropped on a node in this tree. The dropEvent
passed to handlers has the following propert... |
|
remove : ( Tree tree , Node parent , Node node ) |
Tree |
Fires when a child node is removed from a node in this tree. |
|
startdrag : ( Ext.tree.TreePanel this , Ext.tree.TreeNode node , event e ) |
TreePanel |
Fires when a node starts being dragged |
|
textchange : ( Node node , String text , String oldText ) |
TreePanel |
Fires when the text for a node is changed |
append
public event append
Fires when a new child node is appended to a node in this tree.
Subscribers will be called with the following parameters:
This event is defined by
Tree.
beforeappend
public event beforeappend
Fires before a new child is appended to a node in this tree, return false to cancel the append.
Subscribers will be called with the following parameters:
This event is defined by
Tree.
beforechildrenrendered
public event beforechildrenrendered
Fires right before the child nodes for a node are rendered
Subscribers will be called with the following parameters:
This event is defined by TreePanel.
beforeclick
public event beforeclick
Fires before click processing on a node. Return false to cancel the default action.
Subscribers will be called with the following parameters:
node
: NodeThe node
e
: Ext.EventObjectThe event object
This event is defined by TreePanel.
beforecollapse
public event beforecollapse
Fires before a node is collapsed, return false to cancel.
Subscribers will be called with the following parameters:
node
: NodeThe node
deep
: Booleananim
: Boolean
This event is defined by TreePanel.
beforeexpand
public event beforeexpand
Fires before a node is expanded, return false to cancel.
Subscribers will be called with the following parameters:
node
: NodeThe node
deep
: Booleananim
: Boolean
This event is defined by TreePanel.
beforeinsert
public event beforeinsert
Fires before a new child is inserted in a node in this tree, return false to cancel the insert.
Subscribers will be called with the following parameters:
This event is defined by
Tree.
beforeload
public event beforeload
Fires before a node is loaded, return false to cancel
Subscribers will be called with the following parameters:
node
: NodeThe node being loaded
This event is defined by TreePanel.
beforemove
public event beforemove
Fires before a node is moved to a new location in the tree. Return false to cancel the move.
Subscribers will be called with the following parameters:
This event is defined by
Tree.
beforenodedrop
public event beforenodedrop
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:
- tree - The TreePanel
- target - The node being targeted for the drop
- data - The drag data from the drag source
- point - The point of the drop - append, above or below
- source - The drag source
- rawEvent - Raw mouse event
- dropNode - Drop node(s) provided by the source OR you can supply node(s)
to be inserted by setting them on this object.
- cancel - Set this to true to cancel the drop.
Subscribers will be called with the following parameters:
This event is defined by TreePanel.
beforeremove
public event beforeremove
Fires before a child is removed from a node in this tree, return false to cancel the remove.
Subscribers will be called with the following parameters:
This event is defined by
Tree.
checkchange
public event checkchange
Fires when a node with a checkbox's checked property changes
Subscribers will be called with the following parameters:
this
: NodeThis node
checked
: Boolean
This event is defined by TreePanel.
click
public event click
Fires when a node is clicked
Subscribers will be called with the following parameters:
node
: NodeThe node
e
: Ext.EventObjectThe event object
This event is defined by TreePanel.
collapse
public event collapse
Fires when a node is collapsed
Subscribers will be called with the following parameters:
This event is defined by TreePanel.
contextmenu
public event contextmenu
Fires when a node is right clicked
Subscribers will be called with the following parameters:
node
: NodeThe node
e
: Ext.EventObjectThe event object
This event is defined by TreePanel.
dblclick
public event dblclick
Fires when a node is double clicked
Subscribers will be called with the following parameters:
node
: NodeThe node
e
: Ext.EventObjectThe event object
This event is defined by TreePanel.
disabledchange
public event disabledchange
Fires when the disabled status of a node changes
Subscribers will be called with the following parameters:
node
: NodeThe node
disabled
: Boolean
This event is defined by TreePanel.
dragdrop
public event dragdrop
Fires when a dragged node is dropped on a valid DD target
Subscribers will be called with the following parameters:
this
: Ext.tree.TreePanelnode
: Ext.tree.TreeNodedd
: DDThe dd it was dropped on
e
: eventThe raw browser event
This event is defined by TreePanel.
enddrag
public event enddrag
Fires when a drag operation is complete
Subscribers will be called with the following parameters:
this
: Ext.tree.TreePanelnode
: Ext.tree.TreeNodee
: eventThe raw browser event
This event is defined by TreePanel.
expand
public event expand
Fires when a node is expanded
Subscribers will be called with the following parameters:
This event is defined by TreePanel.
insert
public event insert
Fires when a new child node is inserted in a node in this tree.
Subscribers will be called with the following parameters:
This event is defined by
Tree.
load
public event load
Fires when a node is loaded
Subscribers will be called with the following parameters:
node
: NodeThe node that was loaded
This event is defined by TreePanel.
move
public event move
Fires when a node is moved to a new location in the tree
Subscribers will be called with the following parameters:
tree
: TreeThe owner tree
node
: NodeThe node moved
oldParent
: NodeThe old parent of this node
newParent
: NodeThe new parent of this node
index
: NumberThe index it was moved to
This event is defined by
Tree.
nodedragover
public event nodedragover
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:
- tree - The TreePanel
- target - The node being targeted for the drop
- data - The drag data from the drag source
- point - The point of the drop - append, above or below
- source - The drag source
- rawEvent - Raw mouse event
- dropNode - Drop node(s) provided by the source.
- cancel - Set this to true to signal drop not allowed.
Subscribers will be called with the following parameters:
This event is defined by TreePanel.
nodedrop
public event nodedrop
Fires after a DD object is dropped on a node in this tree. The dropEvent
passed to handlers has the following properties:
- tree - The TreePanel
- target - The node being targeted for the drop
- data - The drag data from the drag source
- point - The point of the drop - append, above or below
- source - The drag source
- rawEvent - Raw mouse event
- dropNode - Dropped node(s).
Subscribers will be called with the following parameters:
This event is defined by TreePanel.
remove
public event remove
Fires when a child node is removed from a node in this tree.
Subscribers will be called with the following parameters:
tree
: TreeThe owner tree
parent
: NodeThe parent node
node
: NodeThe child node removed
This event is defined by
Tree.
startdrag
public event startdrag
Fires when a node starts being dragged
Subscribers will be called with the following parameters:
this
: Ext.tree.TreePanelnode
: Ext.tree.TreeNodee
: eventThe raw browser event
This event is defined by TreePanel.
textchange
public event textchange
Fires when the text for a node is changed
Subscribers will be called with the following parameters:
node
: NodeThe node
text
: StringThe new text
oldText
: StringThe old text
This event is defined by TreePanel.
animate
animate : Boolean
true to enable animated expand/collapse
This config option is defined by TreePanel.
containerScroll
containerScroll : Boolean
true to register this container with ScrollManager
This config option is defined by TreePanel.
ddAppendOnly
ddAppendOnly : String
True if the tree should only allow append drops (use for trees which are sorted)
This config option is defined by TreePanel.
ddGroup
ddGroup : String
The DD group this TreePanel belongs to
This config option is defined by TreePanel.
ddScroll
ddScroll : Boolean
true to enable YUI body scrolling
This config option is defined by TreePanel.
dragConfig
dragConfig : Object
This config option is defined by TreePanel.
dropConfig
dropConfig : Object
This config option is defined by TreePanel.
enableDD
enableDD : Boolean
true to enable drag and drop
This config option is defined by TreePanel.
enableDrag
enableDrag : Boolean
true to enable just drag
This config option is defined by TreePanel.
enableDrop
enableDrop : Boolean
true to enable just drop
This config option is defined by TreePanel.
hlColor
hlColor : String
The color of the node highlight (defaults to C3DAF9)
This config option is defined by TreePanel.
hlDrop
hlDrop : Boolean
false to disable node highlight on drop (defaults to true)
This config option is defined by TreePanel.
lines
lines : Boolean
false to disable tree lines (defaults to true)
This config option is defined by TreePanel.
loader
loader : Boolean
A TreeLoader for use with this TreePanel
This config option is defined by TreePanel.
rootVisible
rootVisible : Boolean
false to hide the root node (defaults to true)
This config option is defined by TreePanel.
selModel
selModel : Boolean
This config option is defined by TreePanel.
singleExpand
singleExpand : Boolean
true if only 1 node per branch may be expanded
This config option is defined by TreePanel.