X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6e39d509471fe9b4e2660e0d1631b350d0c66f40..92c2b89db26be16707f4a805d3303ab2531006e1:/docs/output/Ext.StoreMgr.html diff --git a/docs/output/Ext.StoreMgr.html b/docs/output/Ext.StoreMgr.html index 7a147f92..a54c18e8 100644 --- a/docs/output/Ext.StoreMgr.html +++ b/docs/output/Ext.StoreMgr.html @@ -1,22 +1,22 @@
Observable MixedCollection StoreMgr
Package: | Ext |
Defined In: | StoreMgr.js |
Class: | StoreMgr |
Extends: | MixedCollection |
Config Options | Defined By | |
---|---|---|
allowFunctions : Boolean Specify true if the addAll
function should add function references to the collection. Defaults to
-false. | MixedCollection |
Method | Defined By | |
---|---|---|
add( String key , Object o )
- :
+false. | MixedCollection |
Method | Defined By | |
---|---|---|
add( String key , Object o )
+ :
ObjectAdds an item to the collection. Fires the add event when complete. Adds an item to the collection. Fires the add event when complete. Parameters:
| MixedCollection | |
addAll( Object/Array objs )
- :
+In this case just pass the new item in this parameter.o : ObjectThe item to add.
| MixedCollection | |
addAll( Object/Array objs )
+ :
voidAdds all elements of an Array or an Object to the collection. Adds all elements of an Array or an Object to the collection. Parameters:
| MixedCollection | |
addEvents( Object|String o , string Optional. )
- :
+has been set to true.Returns:
| MixedCollection | |
addEvents( Object|String o , string Optional. )
+ :
voidAdds the specified events to the list of events which this Observable may fire. Adds the specified events to the list of events which this Observable may fire. Parameters:
| Observable | |
addListener( String eventName , Function handler , [Object scope ], [Object options ] )
- :
+Usage: Returns:
| Observable | |
addListener( String eventName , Function handler , [Object scope ], [Object options ] )
+ :
voidAppends an event handler to this object. Appends an event handler to this object. Parameters:
| Observable | |
clear()
- :
- void Removes all items from the collection. Fires the clear event when complete. Removes all items from the collection. Fires the clear event when complete. Parameters:
| MixedCollection | |
clone()
- :
- MixedCollection Creates a shallow copy of this collection Creates a shallow copy of this collection Parameters:
| MixedCollection | |
contains( Object o )
- :
- BooleanReturns true if the collection contains the passed Object as an item. Returns true if the collection contains the passed Object as an item. Parameters:
| MixedCollection | |
containsKey( String key )
- :
- BooleanReturns true if the collection contains the passed Object as a key. Returns true if the collection contains the passed Object as a key. Parameters:
| MixedCollection | |
each( Function fn , [Object scope ] )
- :
- voidExecutes the specified function once for every item in the collection, passing the following arguments:
+}); Returns:
| Observable | |
clear()
+ :
+ void Removes all items from the collection. Fires the clear event when complete. Removes all items from the collection. Fires the clear event when complete. Parameters:
| MixedCollection | |
clone()
+ :
+ MixedCollection Creates a shallow copy of this collection Creates a shallow copy of this collection Parameters:
| MixedCollection | |
contains( Object o )
+ :
+ BooleanReturns true if the collection contains the passed Object as an item. Returns true if the collection contains the passed Object as an item. Parameters:
| MixedCollection | |
containsKey( String key )
+ :
+ BooleanReturns true if the collection contains the passed Object as a key. Returns true if the collection contains the passed Object as a key. Parameters:
| MixedCollection | |
each( Function fn , [Object scope ] )
+ :
+ voidExecutes the specified function once for every item in the collection, passing the following arguments:
<div class="m... Executes the specified function once for every item in the collection, passing the following arguments:
Parameters:
| MixedCollection | |
eachKey( Function fn , [Object scope ] )
- :
- voidExecutes the specified function once for every key in the collection, passing each
+The function should return a boolean value. Returning false from the function will stop the iteration. Parameters:
| MixedCollection | |
eachKey( Function fn , [Object scope ] )
+ :
+ voidExecutes the specified function once for every key in the collection, passing each
key, and its associated item as th... Executes the specified function once for every key in the collection, passing each
-key, and its associated item as the first two parameters. Parameters:
| MixedCollection | |
enableBubble( String/Array events )
- :
- voidEnables events fired by this Observable to bubble up an owner hierarchy by calling
+key, and its associated item as the first two parameters. Parameters:
| MixedCollection | |
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
This is commonly used by Ext.Components to bubble events to owner Containers. See Ext.Component.getBubbleTarget. The default @@ -121,48 +121,48 @@ access the required target more quickly. myForm.header.setStyle('color', 'red'); } } -});Parameters:
| Observable | |
filter( String property , String/RegExp value , [Boolean anyMatch ], [Boolean caseSensitive ] )
- :
- MixedCollectionFilter the objects in this collection by a specific property.
+}); Parameters:
| Observable | |
filter( String property , String/RegExp value , [Boolean anyMatch ], [Boolean caseSensitive ] )
+ :
+ MixedCollectionFilter the objects in this collection by a specific property.
Returns a new collection that has been filtered. Filter the objects in this collection by a specific property.
Returns a new collection that has been filtered. Parameters:
| MixedCollection | |
filterBy( Function fn , [Object scope ] )
- :
- MixedCollectionFilter by a function. Returns a new collection that has been filtered.
+should start with or a RegExp to test against the property anyMatch : Boolean(optional) True to match any part of the string, not just the beginning caseSensitive : Boolean(optional) True for case sensitive comparison (defaults to False).
| MixedCollection | |
filterBy( Function fn , [Object scope ] )
+ :
+ MixedCollectionFilter by a function. Returns a new collection that has been filtered.
The passed function will be called with each o... 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. Parameters:
| MixedCollection | |
find( Function fn , [Object scope ] )
- :
- ObjectReturns the first item in the collection which elicits a true return value from the
+If the function returns true, the value is included otherwise it is filtered. Parameters:
| MixedCollection | |
find( Function fn , [Object scope ] )
+ :
+ ObjectReturns 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. Parameters:
| MixedCollection | |
findIndex( String property , String/RegExp value , [Number start ], [Boolean anyMatch ], [Boolean caseSensitive ] )
- :
+passed selection function.Parameters:
| MixedCollection | |
findIndex( String property , String/RegExp value , [Number start ], [Boolean anyMatch ], [Boolean caseSensitive ] )
+ :
NumberFinds the index of the first matching object in this collection by a specific property/value. Finds the index of the first matching object in this collection by a specific property/value. Parameters:
| MixedCollection | |
findIndexBy( Function fn , [Object scope ], [Number start ] )
- :
- NumberFind the index of the first matching object in this collection by a function.
+should start with or a RegExp to test against the property. start : Number(optional) The index to start searching at (defaults to 0). anyMatch : Boolean(optional) True to match any part of the string, not just the beginning. caseSensitive : Boolean(optional) True for case sensitive comparison.
| MixedCollection | |
findIndexBy( Function fn , [Object scope ], [Number start ] )
+ :
+ NumberFind the index of the first matching object in this collection by a function.
If the function returns true it is cons... Find the index of the first matching object in this collection by a function.
-If the function returns true it is considered a match. Parameters:
| MixedCollection | |
fireEvent( String eventName , Object... args )
- :
- BooleanFires the specified event with the passed parameters (minus the event name).
+If the function returns true it is considered a match. Parameters:
| MixedCollection | |
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). An event may be set to bubble up an Observable parent hierarchy (See Ext.Component.getBubbleTarget) -by calling enableBubble. Parameters:
| Observable | |
first()
- :
- Object Returns the first item in the collection. Returns the first item in the collection. Parameters:
| MixedCollection | |
get( String/Number key )
- :
- ObjectThis method calls item().
-Returns the item associated with the passed key OR index. Key has priority
+by calling enableBubble. Parameters:
| Observable | |
first()
+ :
+ Object Returns the first item in the collection. Returns the first item in the collection. Parameters:
| MixedCollection | |
get( String/Number key )
+ :
+ ObjectThis method calls item().
+Returns the item associated with the passed key OR index. Key has priority
over index. Thi... This method calls item().
Returns the item associated with the passed key OR index. Key has priority
over index. This is the equivalent of calling key first, then if
-nothing matched calling itemAt. Parameters:
| MixedCollection | |
getCount()
- :
- Number Returns the number of items in the collection. Returns the number of items in the collection. Parameters:
| MixedCollection | |
getKey( Object item )
- :
- ObjectMixedCollection has a generic way to fetch keys if you implement getKey. The default implementation
+nothing matched calling itemAt. Parameters:
| MixedCollection | |
getCount()
+ :
+ Number Returns the number of items in the collection. Returns the number of items in the collection. Parameters:
| MixedCollection | |
getKey( Object item )
+ :
+ ObjectMixedCollection has a generic way to fetch keys if you implement getKey. The default implementation
simply returns i... MixedCollection has a generic way to fetch keys if you implement getKey. The default implementation
simply returns item.id but you can provide your own implementation
to return a different value as in the following examples:
Parameters:
| MixedCollection | |
getRange( [Number startIndex ], [Number endIndex ] )
- :
- ArrayReturns a range of items in this collection Returns a range of items in this collection Parameters:
| MixedCollection | |
hasListener( String eventName )
- :
- BooleanChecks to see if this object has any listeners for a specified event Checks to see if this object has any listeners for a specified event Parameters:
| Observable | |
indexOf( Object o )
- :
- NumberReturns index within the collection of the passed Object. Returns index within the collection of the passed Object. Parameters:
| MixedCollection | |
indexOfKey( String key )
- :
- NumberReturns index within the collection of the passed key. Returns index within the collection of the passed key. Parameters:
| MixedCollection | |
insert( Number index , String key , [Object o ] )
- :
- ObjectInserts an item at the specified index in the collection. Fires the add event when complete. Inserts an item at the specified index in the collection. Fires the add event when complete. Parameters:
| MixedCollection | |
item( String/Number key )
- :
- ObjectReturns the item associated with the passed key OR index.
-Key has priority over index. This is the equivalent
+mc.add(otherEl); Parameters:
| MixedCollection | |
getRange( [Number startIndex ], [Number endIndex ] )
+ :
+ ArrayReturns a range of items in this collection Returns a range of items in this collection Parameters:
| MixedCollection | |
hasListener( String eventName )
+ :
+ BooleanChecks to see if this object has any listeners for a specified event Checks to see if this object has any listeners for a specified event Parameters:
| Observable | |
indexOf( Object o )
+ :
+ NumberReturns index within the collection of the passed Object. Returns index within the collection of the passed Object. Parameters:
| MixedCollection | |
indexOfKey( String key )
+ :
+ NumberReturns index within the collection of the passed key. Returns index within the collection of the passed key. Parameters:
| MixedCollection | |
insert( Number index , String key , [Object o ] )
+ :
+ ObjectInserts an item at the specified index in the collection. Fires the add event when complete. Inserts an item at the specified index in the collection. Fires the add event when complete. Parameters:
| MixedCollection | |
item( String/Number key )
+ :
+ ObjectReturns the item associated with the passed key OR index.
+Key has priority over index. This is the equivalent
of cal... Returns the item associated with the passed key OR index.
Key has priority over index. This is the equivalent
-of calling key first, then if nothing matched calling itemAt. Parameters:
| MixedCollection | |
itemAt( Number index )
- :
- ObjectReturns the item at the specified index. Returns the item at the specified index. Parameters:
| MixedCollection | |
key( String/Number key )
- :
- ObjectReturns the item associated with the passed key. Returns the item associated with the passed key. Parameters:
| MixedCollection | |
keySort( [String direction ], [Function fn ] )
- :
+of calling key first, then if nothing matched calling itemAt.Parameters:
| MixedCollection | |
itemAt( Number index )
+ :
+ ObjectReturns the item at the specified index. Returns the item at the specified index. Parameters:
| MixedCollection | |
key( String/Number key )
+ :
+ ObjectReturns the item associated with the passed key. Returns the item associated with the passed key. Parameters:
| MixedCollection | |
keySort( [String direction ], [Function fn ] )
+ :
voidSorts this collection by keys. Sorts this collection by keys. Parameters:
| MixedCollection | |
last()
- :
- Object Returns the last item in the collection. Returns the last item in the collection. Parameters:
| MixedCollection | |
lookup( String/Object id )
- :
- Ext.data.StoreGets a registered Store by id Gets a registered Store by id Parameters:
| StoreMgr | |
on( String eventName , Function handler , [Object scope ], [Object options ] )
- :
+Defaults to sorting by case insensitive string.Returns:
| MixedCollection | |
last()
+ :
+ Object Returns the last item in the collection. Returns the last item in the collection. Parameters:
| MixedCollection | |
lookup( String/Object id )
+ :
+ Ext.data.StoreGets a registered Store by id Gets a registered Store by id Parameters:
| StoreMgr | |
on( String eventName , Function handler , [Object scope ], [Object options ] )
+ :
voidAppends an event handler to this object (shorthand for addListener.) Appends an event handler to this object (shorthand for addListener.) Parameters:
| Observable | |
purgeListeners()
- :
- void Removes all listeners for this object Removes all listeners for this object Parameters:
| Observable | |
register( Ext.data.Store store1 , [Ext.data.Store store2 ], [Ext.data.Store etc... ] )
- :
- voidRegisters one or more Stores with the StoreMgr. You do not normally need to register stores
+If omitted, defaults to the object which fired the event. options : Object(optional) An object containing handler configuration.
| Observable | |
purgeListeners()
+ :
+ void Removes all listeners for this object Removes all listeners for this object Parameters:
| Observable | |
register( Ext.data.Store store1 , [Ext.data.Store store2 ], [Ext.data.Store etc... ] )
+ :
+ voidRegisters one or more Stores with the StoreMgr. You do not normally need to register stores
manually. Any store init... Registers one or more Stores with the StoreMgr. You do not normally need to register stores
-manually. Any store initialized with a Ext.data.Store.storeId will be auto-registered. Parameters:
| StoreMgr | |
relayEvents( Object o , Array events )
- :
- voidRelays 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 | |
remove( Object o )
- :
- ObjectRemove an item from the collection. Remove an item from the collection. Parameters:
| MixedCollection | |
removeAt( Number index )
- :
- ObjectRemove an item from a specified index in the collection. Fires the remove event when complete. Remove an item from a specified index in the collection. Fires the remove event when complete. Parameters:
| MixedCollection | |
removeKey( String key )
- :
- ObjectRemoved an item associated with the passed key fom the collection. Removed an item associated with the passed key fom the collection. Parameters:
| MixedCollection | |
removeListener( String eventName , Function handler , [Object scope ] )
- :
- voidRemoves an event handler. Removes an event handler. Parameters:
| Observable | |
replace( String key , o {Object} )
- :
+manually. Any store initialized with a Ext.data.Store.storeId will be auto-registered.Parameters:
| StoreMgr | |
relayEvents( Object o , Array events )
+ :
+ voidRelays 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 | |
remove( Object o )
+ :
+ ObjectRemove an item from the collection. Remove an item from the collection. Parameters:
| MixedCollection | |
removeAt( Number index )
+ :
+ ObjectRemove an item from a specified index in the collection. Fires the remove event when complete. Remove an item from a specified index in the collection. Fires the remove event when complete. Parameters:
| MixedCollection | |
removeKey( String key )
+ :
+ ObjectRemoved an item associated with the passed key fom the collection. Removed an item associated with the passed key fom the collection. Parameters:
| MixedCollection | |
removeListener( String eventName , Function handler , [Object scope ] )
+ :
+ voidRemoves an event handler. Removes an event handler. Parameters:
| Observable | |
replace( String key , o {Object} )
+ :
ObjectReplaces an item in the collection. Fires the replace event when complete. Replaces an item in the collection. Fires the replace event when complete. Parameters:
| MixedCollection | |
resumeEvents()
- :
- void Resume firing events. (see suspendEvents)
-If events were suspended using the queueSuspended parameter, then all
+with that key. Returns:
| MixedCollection | |
resumeEvents()
+ :
+ void Resume firing events. (see suspendEvents)
+If events were suspended using the queueSuspended parameter, then all
event... Resume firing events. (see suspendEvents)
If events were suspended using the queueSuspended parameter, then all
-events fired during event suspension will be sent to any listeners now. Parameters:
| Observable | |
sort( [String direction ], [Function fn ] )
- :
+events fired during event suspension will be sent to any listeners now.Parameters:
| Observable | |
sort( [String direction ], [Function fn ] )
+ :
voidSorts this collection by item value with the passed comparison function. Sorts this collection by item value with the passed comparison function. Parameters:
| MixedCollection | |
suspendEvents( Boolean queueSuspended )
- :
+Defaults to sorting by numeric value.Returns:
| MixedCollection | |
suspendEvents( Boolean queueSuspended )
+ :
voidSuspend the firing of all events. (see resumeEvents) Suspend the firing of all events. (see resumeEvents) Parameters:
| Observable | |
un( String eventName , Function handler , [Object scope ] )
- :
- voidRemoves an event handler (shorthand for removeListener.) Removes an event handler (shorthand for removeListener.) Parameters:
| Observable | |
unregister( String/Object id1 , [String/Object id2 ], [String/Object etc... ] )
- :
- voidUnregisters one or more Stores with the StoreMgr Unregisters one or more Stores with the StoreMgr Parameters:
| StoreMgr |
Event | Defined By | |
---|---|---|
add :
- ( Number index , Object o , String key )
- Fires when an item is added to the collection. Fires when an item is added to the collection. Listeners will be called with the following arguments:
| MixedCollection | |
clear :
- ()
- Fires when the collection is cleared. Fires when the collection is cleared. Listeners will be called with the following arguments:
| MixedCollection | |
remove :
- ( Object o , [String key ] )
- Fires when an item is removed from the collection. Fires when an item is removed from the collection. Listeners will be called with the following arguments:
| MixedCollection | |
replace :
- ( String key , Object old , Object new )
+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.) Removes an event handler (shorthand for removeListener.) Parameters:
| Observable | |
unregister( String/Object id1 , [String/Object id2 ], [String/Object etc... ] )
+ :
+ voidUnregisters one or more Stores with the StoreMgr Unregisters one or more Stores with the StoreMgr Parameters:
| StoreMgr |
Event | Defined By | |
---|---|---|
add :
+ ( Number index , Object o , String key )
+ Fires when an item is added to the collection. Fires when an item is added to the collection. Listeners will be called with the following arguments:
| MixedCollection | |
clear :
+ ()
+ Fires when the collection is cleared. Fires when the collection is cleared. Listeners will be called with the following arguments:
| MixedCollection | |
remove :
+ ( Object o , [String key ] )
+ Fires when an item is removed from the collection. Fires when an item is removed from the collection. Listeners will be called with the following arguments:
| MixedCollection | |
replace :
+ ( String key , Object old , Object new )
Fires when an item is replaced in the collection. Fires when an item is replaced in the collection. Listeners will be called with the following arguments:
| MixedCollection |