Class Index | File Index

Classes


Class SweetDevRia.ContextManager


Defined in: Context.js.

Class Summary
Constructor Attributes Constructor Name and Description
<private>  
This is the Context component class Singleton managing the contexts in the page, as a stack
Method Summary
Method Attributes Method Name and Description
 
Return the active context id
<static>  
SweetDevRia.ContextManager.getInstance()
Return the singleton instance
 
popContext(contextId)
Pop the last pushed context from the stack
 
pushContext(contextId)
Push a new context in the stack and set it as the current one in use
Class Detail
<private> SweetDevRia.ContextManager()
This is the Context component class Singleton managing the contexts in the page, as a stack
Method Detail
{String} getActiveContext()
Return the active context id
Returns:
the active context id

<static> {Context} SweetDevRia.ContextManager.getInstance()
Return the singleton instance
Returns:
the singletong instance

popContext(contextId)
Pop the last pushed context from the stack
Parameters:
{String} contextId
Optional, the context id to pop. If this parameter is specified, an error is logged to avoid a mistake, and nothing is performed. This parameter is used as an error detector.

pushContext(contextId)
Push a new context in the stack and set it as the current one in use
Parameters:
{String} contextId
the context id to push

Documentation generated by JsDoc Toolkit 2.0.0 on Thu Dec 02 2010 15:18:53 GMT+0100 (CET)