The default single selection for a TreePanel.
Config Options
|
| listeners : ObjectA config object containing one or more event handlers to be added to this
object during initialization. This should ... A config object containing one or more event handlers to be added to this
object during initialization. This should be a valid listeners config object as specified in the
addListener example for attaching multiple handlers at once.
@@ -108,9 +108,9 @@ Or a shorthand syntax:
'mouseover' : this.onMouseOver,
'mouseout' : this.onMouseOut,
scope: this
-}); Returns: | Observable |
| clearSelections()
+});Returns: | Observable |
| clearSelections( Boolean silent )
:
- void | DefaultSelectionModel |
| enableBubble( Object events )
+ void | DefaultSelectionModel |
| enableBubble( String/Array events )
:
voidEnables events fired by this Observable to bubble up an owner hierarchy by calling
this.getBubbleTarget() if present... Enables events fired by this Observable to bubble up an owner hierarchy by calling
@@ -119,13 +119,13 @@ this.getBubbleTarget() if present... Enables events fi
implementation in Ext.Component returns the Component's immediate owner. But if a known target is required, this can be overridden to
access the required target more quickly.
Example: Ext.override(Ext.form.Field, {
-// Add functionality to Field's initComponent to enable the change event to bubble
- initComponent: Ext.form.Field.prototype.initComponent.createSequence(function() {
- this.enableBubble('change');
+ // Add functionality to Field's initComponent to enable the change event to bubble
+ initComponent : Ext.form.Field.prototype.initComponent.createSequence(function() {
+ this.enableBubble('change');
}),
-// We know that we want Field's events to bubble directly to the FormPanel.
- getBubbleTarget: function() {
+ // We know that we want Field's events to bubble directly to the FormPanel.
+ getBubbleTarget : function() {
if (!this.formPanel) {
this.formPanel = this.findParentByType('form');
}
@@ -140,11 +140,11 @@ access the required target more quickly.
}],
listeners: {
change: function() {
-// Title goes red if form has been modified.
- myForm.header.setStyle("color", "red");
+ // Title goes red if form has been modified.
+ myForm.header.setStyle('color', 'red');
}
}
-});
| Observable |
| fireEvent( String eventName , Object... args )
+}); | Observable |
| fireEvent( String eventName , Object... args )
:
BooleanFires the specified event with the passed parameters (minus the event name).
An event may be set to bubble up an Obse... Fires the specified event with the passed parameters (minus the event name).
@@ -181,9 +181,9 @@ events fired during event suspension will be sent to any listeners now. Suspend the firing of all events. (see resumeEvents) Suspend the firing of all events. (see resumeEvents) Parameters:queueSuspended : BooleanPass as true to queue up suspended events to be fired
after the resumeEvents call instead of discarding all suspended events; Returns: | Observable |
| un( String eventName , Function handler , [Object scope ] )
:
- voidRemoves an event handler (shorthand for removeListener.) | Observable |
| unselect( TreeNode node )
+ voidRemoves an event handler (shorthand for removeListener.) | Observable |
| unselect( TreeNode node , Boolean silent )
:
- voidDeselect a node. Deselect a node. Parameters:node : TreeNodeThe node to unselect Returns: | DefaultSelectionModel |
Public Events
Public Events
|
| beforeselect :
( DefaultSelectionModel this , TreeNode node , TreeNode node )
Fires before the selected node changes, return false to cancel the change Fires before the selected node changes, return false to cancel the change Listeners will be called with the following arguments:this : DefaultSelectionModelnode : TreeNodethe new selection node : TreeNodethe old selection
| DefaultSelectionModel |
| selectionchange :
( DefaultSelectionModel this , TreeNode node )
|