Class Ext.ComponentMgr
Provides a common registry of all components (specifically subclasses of Ext.Component) on a page so
that they can be easily accessed by component id (see Ext.getCmp).
Every component class also gets registered in ComponentMgr by its 'xtype' property, which is its Ext-specific
type name (e.g., Ext.form.TextField's xtype is 'textfield'). This allows you to check the xtype of specific
object instances (see Ext.Component.getXType and Ext.Component.isXType). For a list of all
available xtypes, see Ext.Component.
This class is a singleton and cannot be created directly.
Public Properties
|
all : MixedCollection
The MixedCollection used internally for the component cache. An example usage may be subscribing to
events on the Mix...
The MixedCollection used internally for the component cache. An example usage may be subscribing to
events on the MixedCollection to monitor addition or removal. Read-only.
|
ComponentMgr |
Public Methods
|
get( String id ) : void
Returns a component by id
Returns a component by id
Parameters:
id : StringThe component id
Returns:
|
ComponentMgr |
|
onAvailable( String id , Funtction fn , Object scope ) : void
Registers a function that will be called when a specified component is added to ComponentMgr
Registers a function that will be called when a specified component is added to ComponentMgr
|
ComponentMgr |
|
register( Ext.Component c ) : void
Registers a component.
Registers a component.
Parameters:
c : Ext.ComponentThe component
Returns:
|
ComponentMgr |
|
unregister( Ext.Component c ) : void
Unregisters a component.
Unregisters a component.
Parameters:
c : Ext.ComponentThe component
Returns:
|
ComponentMgr |
Public Events
This class has no public events.