dojox/grid/_FocusManager (version 1.10)

Summary

Controls grid cell focus. Owned by grid and used internally for focusing. Note: grid cell actually receives keyboard input only when cell is being edited.

Usage

var foo = new _FocusManager(inGrid);
dojox/grid/_FocusManager
Parameter Type Description
inGrid undefined

Property Summary

Method Summary

Properties

_colHeadFocusIdx
_colHeadNode
_contextMenuBindNode
focusClass
focusView
tabbingOut

Methods

_delayedCellFocus()
_delayedHeaderFocus()
_findHeaderCells()
Returns:Array
_focusifyCellNode(inBork)
Parameter Type Description
inBork undefined
_initColumnHeaders()
_isHeaderHidden()

determine if the grid headers are hidden relies on documented technique of setting .dojoxGridHeader { display:none; }

Returns:Boolean | undefined

true if headers are hidden false if headers are not hidden

_mouseDown(e)
Parameter Type Description
e undefined
_mouseUp(e)
Parameter Type Description
e undefined
_scrollHeader(currentIdx)
Parameter Type Description
currentIdx undefined
_scrollInfo(cell,domNode)
Parameter Type Description
cell undefined
domNode undefined
Returns:object | null
_setActiveColHeader(colHeaderNode,colFocusIdx,prevColFocusIdx)
Parameter Type Description
colHeaderNode Node
colFocusIdx Integer
prevColFocusIdx Integer
blurHeader()
colSizeAdjust(e,colIdx,delta)
Parameter Type Description
e undefined
colIdx undefined
delta undefined
destroy()
doBlur(e)
Parameter Type Description
e undefined
doColHeaderBlur(e)
Parameter Type Description
e undefined
doColHeaderFocus(e)
Parameter Type Description
e undefined
doContextMenu(e)
Parameter Type Description
e undefined
doFocus(e)
Parameter Type Description
e undefined
doLastNodeBlur(e)
Parameter Type Description
e undefined
doLastNodeFocus(e)
Parameter Type Description
e undefined
findAndFocusGridCell()

find the first focusable grid cell

Returns:Boolean | boolean

true if focus was set to a cell false if no cell found to set focus onto

focusGrid(inSkipFocusCell)
Parameter Type Description
inSkipFocusCell undefined
focusGridView()
focusHeader()
getHeaderIndex()

if one of the column headers currently has focus, return its index.

Returns:any | undefined | number

index of the focused column header, or -1 if none have focus.

initFocusView()
isFirstFocusCell()
Returns:boolean
isFocusCell(inCell,inRowIndex)

states if the given cell is focused

Parameter Type Description
inCell object

grid cell object

inRowIndex int

grid row index

Returns:any | boolean

true of the given grid cell is focused

isLastFocusCell()
Returns:boolean
isNavHeader()

states whether currently navigating among column headers.

Returns:any | boolean

true if focus is on a column header; false otherwise.

isNoFocusCell()
Returns:boolean
move(inRowDelta,inColDelta)

focus grid cell or simulate focus to column header based on position relative to current focus

Parameter Type Description
inRowDelta int

vertical distance from current focus

inColDelta int

horizontal distance from current focus

next()

focus next grid cell

nextKey(e)
Parameter Type Description
e undefined
previous()

focus previous grid cell

previousKey(e)
Parameter Type Description
e undefined
scrollIntoView()
Returns:null | undefined
setFocusCell(inCell,inRowIndex)

focuses the given grid cell

Parameter Type Description
inCell object

grid cell object

inRowIndex int

grid row index

setFocusIndex(inRowIndex,inCellIndex)

focuses the given grid cell

Parameter Type Description
inRowIndex int

grid row index

inCellIndex int

grid cell index

styleRow(inRow)
Parameter Type Description
inRow undefined
tabOut(inFocusNode)
Parameter Type Description
inFocusNode undefined
Error in the documentation? Can’t find what you are looking for? Let us know!