|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Producers may implement DataItemView to optimize the management of a view of the contents of a particular subset of records. The view is a two-dimensional ArrayAccess data item which represents the window of data that is currently visible to the consumer.
For example, a consumer of a ScrollableRowsetAccess object that implements DataItemView can use this interface to paint the cells in a grid view of a subset of its rows. As the view is scrolled through the rowset, the items in the view will track the values of the cells in the view.
Method Summary | |
ArrayAccess |
getView(int viewSize)
Returns an object that implements an two-dimensional ArrayAccess to represent a row and column view with viewSize rows. |
int |
getViewStart()
Returns the current value of the ViewStart property. |
void |
scrollView(int relativeAmount)
Changes ViewStart by relativeAmount relative to its current position. |
void |
setViewStart(int absoluteRow)
Sets ViewStart to absoluteRow. |
Method Detail |
public void setViewStart(int absoluteRow)
public int getViewStart()
public void scrollView(int relativeAmount)
public ArrayAccess getView(int viewSize)
Sub-items returned by this ArrayAccess should be ImmediateAccess items that correspond to the current view to provide standard access to the values in each sub-item. If the ViewStart property changes, the values returned by items in the array change so that the view maps to a different range of rows in the row set.
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |