Roo.util.Observable Roo.util.MixedCollection
Package: | Roo.util |
Defined In: | Roo/util/MixedCollection.js. |
Class: | MixedCollection |
Extends: | 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 | |
---|---|---|
Create a new Roo.util.MixedCollection
Create a new Roo.util.MixedCollection
|
||
Roo.util.MixedCollection | ||
addAll
(Object/Array objs)
Adds all elements of an Array or an Object to the collection.
Adds all elements of an Array or an Object to the collection.
|
Roo.util.MixedCollection | |
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 | |
clear
()
Removes all items from the collection.
Removes all items from the collection.
|
Roo.util.MixedCollection | |
clone
()
:
MixedCollection
Creates a duplicate of this collection
Creates a duplicate of this collection
|
Roo.util.MixedCollection | |
Roo.util.MixedCollection | ||
Roo.util.MixedCollection | ||
Executes the specified function once for every item in the collection, passing each
item as the first and only parameter.
Executes the specified function once for every item in the collection, passing each
item as the first and only parameter. returning false from the function will stop the iteration. |
Roo.util.MixedCollection | |
Executes the specified function once for every key in the collection, passing each
key, and its associated item as the first two parameters. |
Roo.util.MixedCollection | |
Filter the objects in this collection by a specific property.
Filter the objects in this collection by a specific property.
Returns a new collection that has been filtered.
|
Roo.util.MixedCollection | |
Filter by a function.
Filter by a function. * Returns a new collection that has been filtered.
The passed function will be called with each object in the collection. If the function returns true, the value is included otherwise it is filtered.
|
Roo.util.MixedCollection | |
Returns the first item in the collection which elicits a true return value from the
passed selection function.
Returns the first item in the collection which elicits a true return value from the
passed selection function.
|
Roo.util.MixedCollection | |
Fires the specified event with the passed parameters (minus the event name).
|
Roo.util.Observable | |
first
()
:
Object
Returns the first item in the collection.
Returns the first item in the collection.
|
Roo.util.MixedCollection | |
Roo.util.MixedCollection | ||
getCount
()
:
Number
Returns the number of items in the collection.
Returns the number of items in the collection.
|
Roo.util.MixedCollection | |
getKey
(o)
:
Object
MixedCollection has a generic way to fetch keys if you implement getKey.
MixedCollection has a generic way to fetch keys if you implement getKey.
|
Roo.util.MixedCollection | |
Roo.util.MixedCollection | ||
Roo.util.Observable | ||
Roo.util.MixedCollection | ||
Roo.util.MixedCollection | ||
Inserts an item at the specified index in the collection.
|
Roo.util.MixedCollection | |
Roo.util.MixedCollection | ||
Roo.util.MixedCollection | ||
Roo.util.MixedCollection | ||
Roo.util.MixedCollection | ||
last
()
:
Object
Returns the last item in the collection.
Returns the last item in the collection.
|
Roo.util.MixedCollection | |
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.MixedCollection | ||
removeAt
(Number index)
Remove an item from a specified index in the collection.
Remove an item from a specified index in the collection.
|
Roo.util.MixedCollection | |
removeKey
(String key)
Removed an item associated with the passed key fom the collection.
Removed an item associated with the passed key fom the collection.
|
Roo.util.MixedCollection | |
Roo.util.Observable | ||
Roo.util.MixedCollection | ||
Roo.util.MixedCollection | ||
Roo.util.Observable |