Interface IModelManager

Hierarchy

Index

Properties

Methods

Properties

optional public alias?: Array<string>

[Config Option] (String[])

optional public all?: IHashMap

[Property] (Ext.util.HashMap)

optional public alternateClassName?: any

[Config Option] (String/String[])

optional public config?: any

[Config Option] (Object)

optional public extend?: string

[Config Option] (String)

optional public inheritableStatics?: any

[Config Option] (Object)

optional public mixins?: any

[Config Option] (Object)

optional public platformConfig?: any

[Config Option] (Object)

optional public self?: IClass

[Property] (Ext.Class)

optional public singleton?: boolean

[Config Option] (Boolean)

optional public statics?: any

[Config Option] (Object)

optional public uses?: Array<string>

[Config Option] (String[])

Methods

optional public callOverridden(args?: any): any

[Method] Call the original method that was previously overridden with override This method is deprecated as callParent does

Parameters

  • args?: any optional

    Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments)

Returns

any

Object Returns the result of calling the overridden method

optional public callParent(args?: any): any

[Method] Call the parent method of the current method

Parameters

  • args?: any optional

    Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments)

Returns

any

Object Returns the result of calling the parent method

optional public callSuper(args?: any): any

[Method] This method is used by an override to call the superclass method but bypass any overridden method

Parameters

  • args?: any optional

    Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments)

Returns

any

Object Returns the result of calling the superclass method

optional public create(config?: any, defaultType?: string): any

[Method] Creates and returns an instance of whatever this manager manages based on the supplied type and config object

Parameters

  • config?: any optional

    Object The config object.

  • defaultType?: string optional

    String If no type is discovered in the config object, we fall back to this type.

Returns

any

Object The instance of whatever this manager is managing.

optional public destroy()

[Method]

optional public each(fn?: any, scope?: any)

[Method] Executes the specified function once for each item in the collection

Parameters

  • fn?: any optional

    Function The function to execute.

  • scope?: any optional

    Object The scope to execute in.

optional public get(id?: string): any

[Method] Returns an item by id

Parameters

  • id?: string optional

    String The id of the item.

Returns

any

Object The item, undefined if not found.

optional public getCount(): number

[Method] Gets the number of items in the collection

Returns

number

Number The number of items in the collection.

optional public getInitialConfig(name?: string): any

[Method] Returns the initial configuration passed to constructor

Parameters

  • name?: string optional

    String When supplied, value for particular configuration option is returned, otherwise the full config object is returned.

Returns

any

Object/Mixed

optional public initConfig(instanceConfig?: any): any

[Method] Initialize configuration for this class

Parameters

  • instanceConfig?: any optional

    Object

Returns

any

Object mixins The mixin prototypes as key - value pairs

optional public isRegistered(type?: string): boolean

[Method] Checks if an item type is registered

Parameters

  • type?: string optional

    String The mnemonic string by which the class may be looked up.

Returns

boolean

Boolean Whether the type is registered.

optional public onAvailable(id?: string, fn?: any, scope?: any)

[Method] Registers a function that will be called when an item with the specified id is added to the manager

Parameters

  • id?: string optional

    String The item id.

  • fn?: any optional

    Function The callback function. Called with a single parameter, the item.

  • scope?: any optional

    Object The scope (this reference) in which the callback is executed. Defaults to the item.

optional public register(item?: any)

[Method] Registers an item to be managed

Parameters

  • item?: any optional

    Object The item to register.

optional public registerType(type?: string, cls?: any)

[Method] Registers a new item constructor keyed by a type key

Parameters

  • type?: string optional

    String The mnemonic string by which the class may be looked up.

  • cls?: any optional

    Function The new instance class.

optional public unregister(item?: any)

[Method] Unregisters an item by removing it from this manager

Parameters

  • item?: any optional

    Object The item to unregister.