Class orion.explorer.Explorer
A table-based explorer component.
Defined in: </shared/eclipse/e4/orion/I201404012230/bundles/org.eclipse.orion.client.ui/web/orion/explorers/explorer.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
orion.explorer.Explorer(serviceRegistry, selection, renderer, commandRegistry)
Creates a new explorer.
|
Method Attributes | Method Name and Description |
---|---|
changedItem(parent, children)
|
|
Collapse all the nodes in the explorer
|
|
createTree(parentId, model, options)
Displays tree table containing filled with data provided by given model
|
|
destroy()
|
|
expandAll(nodeModel)
Expand all the nodes under a node in the explorer
|
|
getRow(item)
|
|
makeNewItemPlaceHolder(item, domId, column_no, insertAfter)
|
|
updateCommands(item)
|
Class Detail
orion.explorer.Explorer(serviceRegistry, selection, renderer, commandRegistry)
Creates a new explorer.
- Parameters:
- {orion.serviceregistry.ServiceRegistry} serviceRegistry
- The service registry to use for any services required by the explorer
- {orion.selection.Selection} selection
- The initial selection
- renderer
- {orion.commandregistry.CommandRegistry} commandRegistry
- The command registry to use for commands. Optional.
Method Detail
changedItem(parent, children)
- Parameters:
- parent
- children
collapseAll()
Collapse all the nodes in the explorer
createTree(parentId, model, options)
Displays tree table containing filled with data provided by given model
- Parameters:
- {String|Element} parentId
- id of parent dom element, or the element itself
- {Object} model
- providing data to display
- {Object} options
- optional parameters of the tree(custom indent, onCollapse callback)
destroy()
expandAll(nodeModel)
Expand all the nodes under a node in the explorer
- Parameters:
- nodeModel
- {Object} the node model to be expanded. If not provided the whole tree is expanded recursively
getNavDict()
getNavHandler()
getRootPath()
getRow(item)
- Parameters:
- item
initNavHandler()
makeNewItemPlaceHolder(item, domId, column_no, insertAfter)
- Parameters:
- item
- domId
- column_no
- insertAfter
refreshSelection()
updateCommands(item)
- Parameters:
- item