Class idx.app.ConsoleLoaderMixin

Class supporting dynamic load of UI content. Handles all the UI registry processing and loading into the actual templated UI widget. Dynamic content can be loaded into specified UI elements, such as: stack containers, tab containers, or even low level items like menus. Loads UI from JSON registry, with following fields:
Required:

Optional:
Defined in: <idx\app\_ConsoleLoaderMixin.js>.

Constructor Summary

Constructor Attributes Constructor Name and Description
 

Field Summary

Field Attributes Field Name and Description
<constant>  
Constant type for top app level 'context' container id
 
href 
URL indicating where to load registry from.
 
numCtx 
Number of context switch areas created
<constant>  
Constant type for top app level 'tab' container id
 
Determines if the url hash will be monitored and UI selection/visibility state updated accordingly.

Method Summary

Method Attributes Method Name and Description
 
addContext(item)
Dynamically adds as a child, a dijit.layout.TabContainer to the stack container context specified in "containerId".
 
addTab(item)
Dynamically adds a content pane to the specified tab pane Creates a small 'context' object in that Dojo content pane.
 
Default constructor
 
Called to process UI registry data loaded into singleton instance registry's 'data' field.

Constructor Detail

idx.app.ConsoleLoaderMixin()

Field Detail

<constant> {String} CONTAINER_ID_TOP

Constant type for top app level 'context' container id
Default Value:
"_ctxMain" use as: "${id}_ctxMain"

{String} href

URL indicating where to load registry from.
Default Value:
null

{int} numCtx

Number of context switch areas created
Default Value:
0

<constant> {String} TAB_ID_TOP

Constant type for top app level 'tab' container id
Default Value:
"_tabMain" use as: "{id}_tabMain"

{boolean} useHash

Determines if the url hash will be monitored and UI selection/visibility state updated accordingly. See idx.app._HashHandlerMixin for more information.
Default Value:
true

Method Detail

addContext(item)

Dynamically adds as a child, a dijit.layout.TabContainer to the stack container context specified in "containerId". Note: If no containerId is specified, the top context container of the application will be used.
Parameters:
{Object} item
- contents of workspace tabcontainer Subscribes to focus gained and lost events so that the event/alert receiver for the console can be aware of major focus changes. returns {TabContainer} new tab container

{ContentPane} addTab(item)

Dynamically adds a content pane to the specified tab pane Creates a small 'context' object in that Dojo content pane.
Parameters:
{Object} item
- contents of workspace tab
Returns:
{ContentPane} new tab

constructor(args)

Default constructor
Parameters:
{Object} args

loadUIFromRegistry()

Called to process UI registry data loaded into singleton instance registry's 'data' field. Calls '_loadContext' and '_loadTabs' methods.