Class Ext.ComponentMgr
Package: | Ext |
Class: | ComponentMgr |
Extends: | Object |
Defined In: | Component.js |
Provides a common registry of all components on a page so that they can be easily accessed by component id (see
Ext.getCmp).
This class is a singleton and cannot be created directly.
Properties
-
Methods
-
Events
Public Properties
This class has no public properties.
Public Methods
|
get( String id ) : void |
ComponentMgr |
Returns a component by id |
|
onAvailable( String id , Funtction fn , Object scope ) : void |
ComponentMgr |
Registers a function that will be called when a specified component is added to ComponentMgr |
|
register( Ext.Component c ) : void |
ComponentMgr |
Registers a component. |
|
unregister( Ext.Component c ) : void |
ComponentMgr |
Unregisters a component. |
Public Events
This class has no public events.
Method Details
get
public function get( String id
)
Returns a component by id
Parameters:
id
: StringThe component id
Returns:
This method is defined by ComponentMgr.
onAvailable
public function onAvailable( String id
, Funtction fn
, Object scope
)
Registers a function that will be called when a specified component is added to ComponentMgr
This method is defined by ComponentMgr.
register
public function register( Ext.Component c
)
Registers a component.
Parameters:
c
: Ext.ComponentThe component
Returns:
This method is defined by ComponentMgr.
unregister
public function unregister( Ext.Component c
)
Unregisters a component.
Parameters:
c
: Ext.ComponentThe component
Returns:
This method is defined by ComponentMgr.