Base Manager class
Creates and returns an instance of whatever this manager manages, based on the supplied type and config object
Creates and returns an instance of whatever this manager manages, based on the supplied type and config object
The config object
If no type is discovered in the config object, we fall back to this type
The instance of whatever this manager is managing
Executes the specified function once for each item in the collection. Returning false from the function will cease iteration.
The paramaters passed to the function are:
The key of the item
The value of the item
The total number of items in the collection
The function to execute.
The scope to execute in. Defaults to this.
Returns an item by id. For additional details see Ext.util.HashMap.get.
Returns an item by id. For additional details see Ext.util.HashMap.get.
The id of the item
The item, undefined
if not found.
Gets the number of items in the collection.
Gets the number of items in the collection.
The number of items in the collection.
Checks if an item type is registered.
Checks if an item type is registered.
The mnemonic string by which the class may be looked up
Whether the type is registered.
Registers a function that will be called when an item with the specified id is added to the manager. This will happen on instantiation.
The item id
The callback function. Called with a single parameter, the item.
The scope (this
reference) in which the callback is executed. Defaults to the item.
Registers an item to be managed
Registers an item to be managed
The item to register
Registers a new item constructor, keyed by a type key.
Registers a new item constructor, keyed by a type key.
The mnemonic string by which the class may be looked up.
The new instance class.