Clear Up
SharpKit Reference

ComponentManager Class

Namespace: Ext

Base Types

System.Object

Constructors

Name Description
ComponentManager()

Properties

Name Description
alternateClassName @private *

Provides a registry of all Components (instances of {@link Ext.Component} or any subclass thereof) on a page so that they can be easily accessed by {@link Ext.Component component} {@link Ext.Component#getId id} (see {@link #get}, or the convenience method {@link Ext#getCmp Ext.getCmp}).

This object also provides a registry of available Component classes indexed by a mnemonic code known as the Component's `xtype`. The

xtype
provides a way to avoid instantiating child Components when creating a full, nested config object for a complete Ext page.

A child Component may be specified simply as a config object as long as the correct `xtype` is specified so that if and when the Component needs rendering, the correct type can be looked up for lazy instantiation.

For a list of all available `xtype`, see {@link Ext.Component}.

singleton @private *

Provides a registry of all Components (instances of {@link Ext.Component} or any subclass thereof) on a page so that they can be easily accessed by {@link Ext.Component component} {@link Ext.Component#getId id} (see {@link #get}, or the convenience method {@link Ext#getCmp Ext.getCmp}).

This object also provides a registry of available Component classes indexed by a mnemonic code known as the Component's `xtype`. The

xtype
provides a way to avoid instantiating child Components when creating a full, nested config object for a complete Ext page.

A child Component may be specified simply as a config object as long as the correct `xtype` is specified so that if and when the Component needs rendering, the correct type can be looked up for lazy instantiation.

For a list of all available `xtype`, see {@link Ext.Component}.

Methods

Name Description
create(object, JsAction) Creates a new Component from the specified config object using the config object's xtype to determine the class to instantiate. @param {Object} config A configuration object for the Component you wish to create. @param {Function} defaultType (optional) The constructor to provide the default Component type if the config object does not contain a
xtype
. (Optional if the config contains a
xtype
). @return {Ext.Component} The newly instantiated Component.
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.
isRegistered(JsString) Checks if an item type is registered. @param {String} component The mnemonic string by which the class may be looked up @return {Boolean} Whether the type is registered.
register(object) Registers an item to be managed @param {Object} component The item to register
unregister(object) Unregisters an item by removing it from this manager @param {Object} component The item to unregister
© Copyright 2005-2011 SharpKit. All rights reserved.