Class orion.explorer.Explorer
A table-based explorer component.
Defined in: </jobs/genie.orion/orion-client-dev/workspace/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, excludes)
Expand all the nodes under a node in the explorer
|
|
getRow(item)
|
|
makeNewItemPlaceholder(item, domId, insertAfter)
|
|
select(item, toggle)
|
|
setRenderer(renderer)
|
|
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, excludes)
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
- excludes
getNavDict()
getNavHandler()
getRootPath()
getRow(item)
- Parameters:
- item
initNavHandler()
makeNewItemPlaceholder(item, domId, insertAfter)
- Parameters:
- item
- domId
- insertAfter
refreshSelection()
select(item, toggle)
- Parameters:
- item
- toggle
setRenderer(renderer)
- Parameters:
- renderer
updateCommands(item)
- Parameters:
- item