X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..10a866c12701c0a0afd0ac85dcdcf32a421514ac:/docs/output/Ext.util.Observable.html?ds=inline diff --git a/docs/output/Ext.util.Observable.html b/docs/output/Ext.util.Observable.html index 070dc965..fe64ba87 100644 --- a/docs/output/Ext.util.Observable.html +++ b/docs/output/Ext.util.Observable.html @@ -1,4 +1,4 @@ -
Properties Methods Events Config Options Direct Link

Class Ext.util.Observable

Package:Ext.util
Defined In:Observable.js, Observable-more.js
Class:Observable
Subclasses:Component, Direct, History, ListView.ColumnResizer, ListView.Sorter, Resizable, SplitBar, Updater, Connection, DataProxy, Node, Store, Tree, DragTracker, Provider, BasicForm, AbstractSelectionModel, ColumnModel, GridView, PropertyStore, DefaultSelectionModel, MultiSelectionModel, TreeLoader, ClickRepeater, MixedCollection, Spinner, GridFilters, GroupSummary, RowExpander, Filter
Extends:Object
Base class that provides a common interface for publishing events. Subclasses are expected to +

Class Ext.util.Observable

Package:Ext.util
Defined In:Observable.js, Observable-more.js
Class:Observable
Subclasses:Component, Direct, History, Resizable, SplitBar, Updater, Connection, DataProxy, Node, Store, Tree, DragTracker, Provider, BasicForm, AbstractSelectionModel, ColumnModel, GridView, PropertyStore, ColumnResizer, Sorter, DefaultSelectionModel, MultiSelectionModel, TreeLoader, ClickRepeater, MixedCollection
Extends:Object
Base class that provides a common interface for publishing events. Subclasses are expected to to have a property "events" with all the events defined, and, optionally, a property "listeners" with configured listeners defined.
For example: @@ -87,7 +87,7 @@ Ext.DomObserver = Ext.extend(Object, { to the supplied function with the event name +...
<static> Starts capture on the specified Observable. All events will be passed to the supplied function with the event name + standard signature of the event before the event is fired. If the supplied function returns false, -the event will not fire.
Parameters:
  • o : Observable
    The Observable to capture
  • fn : Function
    The function to call
  • scope : Object
    (optional) The scope (this object) for the fn
Returns:
  • void
Observable Observable.observeClassFunction c ) +the event will not fire.
Parameters:
  • o : Observable
    The Observable to capture events from.
  • fn : Function
    The function to call when an event is fired.
  • scope : Object
    (optional) The scope (this reference) in which the function is executed. Defaults to the Observable firing the event.
Returns:
  • void
Observable Observable.observeClassFunction cObject listeners ) : void
<static> Sets observability on the passed class constructor. This makes any event fired on any instance of the passed class a...
<static> Sets observability on the passed class constructor.

@@ -95,8 +95,8 @@ This makes any event fired on any instance of the passed class a...

class allowing for central handling of events on many instances at once.

Usage:

Ext.util.Observable.observeClass(Ext.data.Connection);
 Ext.data.Connection.on('beforerequest', function(con, options) {
-    console.log("Ajax request made to " + options.url);
-});
Parameters:
  • c : Function
    The class constructor to make observable.
Returns:
  • void
Observable Observable.releaseCaptureObservable o ) + console.log('Ajax request made to ' + options.url); +});
Parameters:Returns:
Observable Observable.releaseCaptureObservable o ) : void
<static> Removes all added captures from the Observable.
<static> Removes all added captures from the Observable.
Parameters:
  • o : Observable
    The Observable to release
Returns:
  • void
Observable addEventsObject|String ostring Optional. ) : @@ -153,7 +153,7 @@ Or a shorthand syntax:
'mouseover' : this.onMouseOver, 'mouseout' : this.onMouseOut, scope: this -});Returns:Observable enableBubbleObject events ) +});Returns:Observable enableBubbleString/Array events ) : void
Enables 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 @@ -162,13 +162,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');
         }
@@ -183,11 +183,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'); } } -});
Parameters:
  • events : Object
    The event name to bubble, or an Array of event names.
Returns:
  • void
Observable fireEventString eventNameObject... args ) +});
Parameters:Returns:
Observable fireEventString eventNameObject... args ) : Boolean
Fires 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).