Class
caplin.grid

GridScrollPane

All scrolling behaviour in GridView is handled by this class. Header tracking should be done by adding the GridHeader element as an additional element.

Constructor Summary

Attributes Name and Description
caplin.grid.GridScrollPane(caplin.grid.GridView oGridView, Map mDimensions, function fScrollBar)

Method Summary

Attributes Name and Description
int getNumberOfDisplayedRows()

Returns the number of displayed rows.

DOMElement getRowElement(int nRowIndex)

Returns the row element at the specified index.

DOMElement getScrollPaneContent()

Returns the content element of the scroll pane.

Constructor Detail

caplin.grid.GridScrollPane(caplin.grid.GridView oGridView, Map mDimensions, function fScrollBar)

Parameters
caplin.grid.GridView oGridView the grid view
Map mDimensions Map of scrolling widths & heights
function fScrollBar ScrollBar constructor. If omitted native ScrollBar will be used.

Method Detail

int getNumberOfDisplayedRows()

Returns the number of displayed rows.

Returns
the number of displated rows within the scroll pane.

DOMElement getRowElement(int nRowIndex)

Returns the row element at the specified index.

Parameters
int nRowIndex the index of the row element to get.
Returns
the row element at the specified index.

DOMElement getScrollPaneContent()

Returns the content element of the scroll pane.

Returns
The content element