| Package: | CQ.Ext.util |
| 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, FormWrapper, ColumnResizer |
| Extends: | Object |
| Clientlib: | cq.widgets |
| Method | Defined By | |
|---|---|---|
Observable.capture( Observable o, Function fn, [Object scope] ) : void <static> Starts capture on the specified Observable. All events will be passed
to the supplied function with th...
<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:
|
Observable | |
Observable.observeClass( Function c, Object listeners ) : void <static> Sets observability on the passed class constructor.
This makes any event fired on any instance of the ...
<static> Sets observability on the passed class constructor.
This makes any event fired on any instance of the passed class also fire a single event through the class allowing for central handling of events on many instances at once. Usage:
Parameters:
|
Observable | |
enableBubble( String/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
This is commonly used by CQ.Ext.Components to bubble events to owner Containers. See CQ.Ext.Component.getBubbleTarget. The default implementation in CQ.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:
Parameters:
|
Observable | |
relayEvents( Object o, Array events ) : void Relays selected events from the specified Observable as if the events were fired by this.
Relays selected events from the specified Observable as if the events were fired by this.
Parameters:
|
Observable | |