Print Friendly

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

Method Defined By
  getString id ) : void ComponentMgr
Returns a component by id
  onAvailableString id, Funtction fn, Object scope ) : void ComponentMgr
Registers a function that will be called when a specified component is added to ComponentMgr
  registerExt.Component c ) : void ComponentMgr
Registers a component.
  unregisterExt.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 : String
    The component id
Returns:
  • void
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
Parameters:
  • id : String
    The component id
  • fn : Funtction
    The callback function
  • scope : Object
    The scope of the callback
Returns:
  • void
This method is defined by ComponentMgr.

register

public function register( Ext.Component c )
Registers a component.
Parameters:
  • c : Ext.Component
    The component
Returns:
  • void
This method is defined by ComponentMgr.

unregister

public function unregister( Ext.Component c )
Unregisters a component.
Parameters:
  • c : Ext.Component
    The component
Returns:
  • void
This method is defined by ComponentMgr.

Ext - Copyright © 2006-2007 Ext JS, LLC
All rights reserved.