Class idx.app.WorkspaceTab
Extends
dijit._TemplatedMixin, dijit._Widget.
Application content/workspace area.
Appears in the TabMenuLauncher container as
the visual component of a Workspace.
Contained/resides in a idx.app.TabMenuDock.
It provides the visual for a Workspace.
Defined in: <idx\app\WorkspaceTab.js>.
Constructor Summary
Constructor Attributes | Constructor Name and Description |
---|---|
Field Summary
Field Attributes | Field Name and Description |
---|---|
Maps the title text to the proper node
|
|
The resources used by this instance.
|
|
Method Summary
Method Attributes | Method Name and Description |
---|---|
addStateStyles(state)
Adds styles to DOM and title nodes, for specified state.
|
|
Overridden to obtain CSS options before calling the base implementation.
|
|
constructor(args, node)
Constructor
Constructs an instance of WorkspaceTab
Sets states for: pre/post hovered, pre/post selected,
selected, first, and last.
|
|
Method to override ability to have focus
|
|
onTabSelect(event, tab, workspace)
This is called whever a tab is selected so the dock can
listen to such events.
|
|
Overrides dijit._Widget.postMixInProperties() to set title
obtained from workspace.
|
|
removeStateStyles(state)
Removes styles from DOM and title nodes, for specified state.
|
|
setPostSelect(postselected)
Adds CSS class for "PostSelected" state - if post selected true
|
|
setPreselect(preselected)
Adds CSS class for pre-selection
|
|
setState(tabCount, tabIndex, selectedIndex, hoverIndex)
Set CSS class style based on state
|
|
startup()
Called at startup to set style based on state
|
Field Detail
{Object} attributeMap
Maps the title text to the proper node
resources
The resources used by this instance.
tabPosition
workspace
Method Detail
addStateStyles(state)
Adds styles to DOM and title nodes, for specified state.
- Parameters:
- {String} state
buildRendering()
Overridden to obtain CSS options before calling the base implementation.
Sets options, design and sizing.
constructor(args, node)
Constructor
Constructs an instance of WorkspaceTab
Sets states for: pre/post hovered, pre/post selected,
selected, first, and last.
- Parameters:
- {Object} args
- {Object} node
{Boolean} isFocusable()
Method to override ability to have focus
- Returns:
- {Boolean} true
onTabSelect(event, tab, workspace)
This is called whever a tab is selected so the dock can
listen to such events. A tab is selected by clicking on
the proper area of the tab.
- Parameters:
- {Event} event
- {idx.app.TabMenuDock} tab
- {idx.app.Workspace} workspace
postMixInProperties()
Overrides dijit._Widget.postMixInProperties() to set title
obtained from workspace.
- See:
- dijit._Widget.postMixInProperties
removeStateStyles(state)
Removes styles from DOM and title nodes, for specified state.
- Parameters:
- {String} state
setPostSelect(postselected)
Adds CSS class for "PostSelected" state - if post selected true
- Parameters:
- {boolean} postselected
- when true adds class. OTW removes
setPreselect(preselected)
Adds CSS class for pre-selection
- Parameters:
- {String} preselected
setState(tabCount, tabIndex, selectedIndex, hoverIndex)
Set CSS class style based on state
- Parameters:
- {int} tabCount
- {int} tabIndex
- {int} selectedIndex
- {int} hoverIndex
startup()
Called at startup to set style based on state