Class SweetDevRia.ContextManager
Defined in: Context.js.
Constructor Attributes | Constructor Name and Description |
---|---|
<private> |
This is the Context component class
Singleton managing the contexts in the page, as a stack
|
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