Class Index | File Index

Classes


Class gva.component.ComponentInitializer


Defined in: ComponentInitializer.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
<inner>  
Simple GUID implementation which increments when used.
<inner>  
The key for the data attribute used to identify component contexts.
Method Summary
Method Attributes Method Name and Description
<static>  
gva.component.ComponentInitializer.getComponentByElement($element)
Retrieves a component instance based on it's DOM element (context).
<static>  
gva.component.ComponentInitializer.getComponentByID(id)
Retrieves a component instance by ID.
<static>  
gva.component.ComponentInitializer.getComponentByQuery(query)
Retrieves a component instance based on a DOM query.
<static>  
gva.component.ComponentInitializer.initializeComponent(type, $context)
Initializes a component of a certain type on a given context.
<static>  
gva.component.ComponentInitializer.registerComponents()
Traverses the DOM and initializes all found components.
Class Detail
gva.component.ComponentInitializer()
Field Detail
<inner> GUID
Simple GUID implementation which increments when used.

<inner> IDENTIFIER_KEY
The key for the data attribute used to identify component contexts.
Method Detail
<static> {gva.controller.AbstractComponent} gva.component.ComponentInitializer.getComponentByElement($element)
Retrieves a component instance based on it's DOM element (context).
Parameters:
{Element} $element
The DOM element (context) of the component.
Returns:
{gva.controller.AbstractComponent} The component instance.

<static> {gva.controller.AbstractComponent} gva.component.ComponentInitializer.getComponentByID(id)
Retrieves a component instance by ID.
Parameters:
{string} id
The ID of the component to retrieve.
Returns:
{gva.controller.AbstractComponent} The component instance.

<static> {gva.controller.AbstractComponent} gva.component.ComponentInitializer.getComponentByQuery(query)
Retrieves a component instance based on a DOM query.
Parameters:
{string} query
A DOM query, for example "#container > .item".
Returns:
{gva.controller.AbstractComponent} The component instance.

<static> {gva.controller.AbstractComponent} gva.component.ComponentInitializer.initializeComponent(type, $context)
Initializes a component of a certain type on a given context.
Parameters:
{string} type
The class name of the component to initialize.
{Element} $context
The DOM element which will serve as the component's context.
Returns:
{gva.controller.AbstractComponent} The initialized component instance.

<static> gva.component.ComponentInitializer.registerComponents()
Traverses the DOM and initializes all found components.

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Dec 22 2011 17:41:22 GMT-0800 (PST)