Employee = function(name){
this.name = name;
this.addEvents({
"fired" : true,
"quit" : true
});
}
Roo.extend(Employee, Roo.util.Observable);
| Options | Defined By | |
|---|---|---|
|
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 | |
| Method | Defined By | |
|---|---|---|
|
new Roo.util.Observable
(Object config)
Create a new Roo.util.Observable
Create a new Roo.util.Observable
|
||
|
Starts capture on the specified Observable.
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. |
Roo.util.Observable | |
|
Roo.util.Observable.releaseCapture
(Observable o)
Removes all added captures from the Observable.
Removes all added captures from the Observable.
|
Roo.util.Observable | |
|
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 | |
|
Fires the specified event with the passed parameters (minus the event name).
|
Roo.util.Observable | |
| 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 | ||
| Roo.util.Observable | ||