Class Index | File Index

Classes


Class orion.explorerNavHandler.ExplorerNavHandler

A tree iteration handler based on an explorer.
Defined in: </shared/eclipse/e4/orion/I201306251555/plugins/org.eclipse.orion.client.ui/web/orion/explorers/explorerNavHandler.js>.

Class Summary
Constructor Attributes Constructor Name and Description
 
Creates a new tree iteration handler
Method Summary
Method Attributes Method Name and Description
 
 
cursorOn(model, force, next, noScroll)
 
 
 
 
getRowDiv(model)
 
 
 
 
isExpandable(model)
 
isExpanded(model)
 
iterate(forward, forceExpand, selecting)
 
moveColumn(model, offset)
 
onClick(model, mouseEvt)
 
onCollapse(model)
 
 
 
 
 
 
 
refreshModel(navDict, model, topIterationNodes, noReset)
 
refreshSelection(noScroll)
 
 
setSelection(model, toggling)
 
toggleCursor(model, on)
Class Detail
orion.explorerNavHandler.ExplorerNavHandler(explorer, options)
Creates a new tree iteration handler
Parameters:
{Object} explorer
The orion.explorer.Explorer instance.
{Object} options
The options object which provides iterate patterns and all call back functions when iteration happens.
{String} options.gridClickSelectionPolicy Optional, Default: "none"
Controls how clicking on a grid model item -- for example, a link or a button -- affects the selection (or how it affects the cursor, if the selectionPolicy is "cursorOnly"). Allowed values are:
  • "none": Clicking on a grid item will not change the selection (or cursor). This is the default.
  • "active": Clicking on a grid item will change the selection (or cursor).
{String} options.selectionPolicy Optional, Default: null
Selection policy for this explorer. Allowed values are:
  • "cursorOnly": No selection of model items is allowed.
  • "singleSelection": Up to 1 model item can be selected.
  • null: Zero or more model items can be selected. This is the default.
{Function} options.postDefaultFunc Optional
If this function provides addtional behaviors after the default behavior. Some explorers may want to do something else when the cursor is changed, etc.
{Function} options.preventDefaultFunc Optional
If this function returns true then the default behavior of all key press will stop at this time. The key event is passed to preventDefaultFunc. It can implement its own behavior based on the key event.
Method Detail
currentModel()

cursorOn(model, force, next, noScroll)
Parameters:
model
force
next
noScroll

focus()

{Element} getAriaContainerElement(node)
Parameters:
node
Returns:
{Element} The ancestor element of node that provides grid/tree/treegrid behavior, or null if no such node was found.

getCurrentGrid(model)
Parameters:
model

getRowDiv(model)
Parameters:
model

getSelection()

getSelectionIds()

getTopLevelNodes()

isExpandable(model)
Parameters:
model

isExpanded(model)
Parameters:
model

iterate(forward, forceExpand, selecting)
Parameters:
forward
forceExpand
selecting

moveColumn(model, offset)
Parameters:
model
offset

onClick(model, mouseEvt)
Parameters:
model
mouseEvt

onCollapse(model)
Parameters:
model

onDownArrow(e)
Parameters:
e

onEnter(e)
Parameters:
e

onLeftArrow(e)
Parameters:
e

onRightArrow(e)
Parameters:
e

onSpace(e)
Parameters:
e

onUpArrow(e)
Parameters:
e

refreshModel(navDict, model, topIterationNodes, noReset)
Parameters:
navDict
model
topIterationNodes
noReset

refreshSelection(noScroll)
Parameters:
noScroll

removeListeners()

setSelection(model, toggling)
Parameters:
model
toggling

toggleCursor(model, on)
Parameters:
model
on

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Jun 25 2013 15:58:42 GMT-0400 (EDT)