Clear Up
SharpKit Reference

AbstractManager Class

Namespace: Ext

Base Types

System.Object

Constructors

Properties

Name Description
Count Gets the number of items in the collection. @return {Number} The number of items in the collection.
typeName End Definitions

Methods

Name Description
create(object, JsString) Creates and returns an instance of whatever this manager manages, based on the supplied type and config object. @param {Object} config The config object @param {String} defaultType If no type is discovered in the config object, we fall back to this type @return {Object} The instance of whatever this manager is managing
each(JsAction, object) Executes the specified function once for each item in the collection. @param {Function} fn The function to execute. @param {String} fn.key The key of the item @param {Number} fn.value The value of the item @param {Number} fn.length The total number of items in the collection @param {Boolean} fn.return False to cease iteration. @param {Object} scope The scope to execute in. Defaults to `this`.
get(JsString) Returns an item by id. For additional details see {@link Ext.util.HashMap#get}. @param {String} id The id of the item @return {Object} The item, undefined if not found.
getCount() Gets the number of items in the collection. @return {Number} The number of items in the collection.
isRegistered(JsString) Checks if an item type is registered. @param {String} type The mnemonic string by which the class may be looked up @return {Boolean} Whether the type is registered.
onAvailable(JsString, JsAction, object) Registers a function that will be called when an item with the specified id is added to the manager. This will happen on instantiation. @param {String} id The item id @param {Function} fn The callback function. Called with a single parameter, the item. @param {Object} scope The scope (this reference) in which the callback is executed. Defaults to the item.
register(object) Registers an item to be managed @param {Object} item The item to register
registerType(JsString, JsAction) Registers a new item constructor, keyed by a type key. @param {String} type The mnemonic string by which the class may be looked up. @param {Function} cls The new instance class.
unregister(object) Unregisters an item by removing it from this manager @param {Object} item The item to unregister
© Copyright 2005-2011 SharpKit. All rights reserved.