Class orion.ExplorerNavHandler.ExplorerNavDict
A explorer navigation dictionary.
Defined in: </shared/eclipse/e4/orion/I201210191304/plugins/org.eclipse.orion.client.core/web/orion/explorers/explorerNavHandler.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Creates a new explorer navigation dictionary.
|
Method Attributes | Method Name and Description |
---|---|
addRow(modelItem, rowDomNode)
Add a row to the dictionary.
|
|
getGridNavHolder(modelItem, lazyCreate)
Get the grid navigation holder from a row navigation model.
|
|
getValue(id)
Get the value of a key by model id.
|
|
initGridNavHolder(modelItem)
Initialize the grid navigation holder to null.
|
Class Detail
orion.ExplorerNavHandler.ExplorerNavDict(model)
Creates a new explorer navigation dictionary. The key of the dictionary is the model id. The value is a wrapper object that holds .modelItem, .rowDomNode and .gridChildren properties.
The .modelItem property helps quickly looking up a model object by a given id. The .rowDomNode also helps to find out the row DOM node instead of doing dojo.byId().
The .gridChildren is an array representing all the grid navigation information, which the caller has to fill the array out.
- Parameters:
- {Object} model
- The model object that represent the overall explorer.
Method Detail
addRow(modelItem, rowDomNode)
Add a row to the dictionary.
- Parameters:
- {Object} modelItem
- The model item object that represent a row.
- {domNode} rowDomNode
- optional The DOM node that represent a row. If
{Array}
getGridNavHolder(modelItem, lazyCreate)
Get the grid navigation holder from a row navigation model.
- Parameters:
- {Object} modelItem
- The model item object that represent a row.
- lazyCreate
- Returns:
- {Array} The .gridChildren property of the value keyed by the model id.
{Object}
getValue(id)
Get the value of a key by model id.
- Parameters:
- {String} id
- The model id.
- Returns:
- {Object} The value of the id from the dictionary.
initGridNavHolder(modelItem)
Initialize the grid navigation holder to null.
- Parameters:
- {Object} modelItem
- The model item object that represent a row.