|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This file contains an interface for any scrollable model
It helps manage large returned value by returning only
a set of cached value objects (if used properly), reducing
the traffic and the memory usage with this simple interface.
Method Summary | |
int |
getCount()
gets the total number of elements managed by the Scrollable Model. |
java.lang.Class |
getModelClass()
All objects managed by the scrollable model are of the same class. |
int |
getNbPages()
Gets the total number of pages over the scrollable model |
java.lang.Object[] |
getPage(int pageIndex)
Gets a page worth of Objects, given a page index. |
int |
getPageSize()
gets the page size for an instance of a scrollable model i.e. |
java.lang.Object |
getValueAt(int valueIndex)
Gets the value (hopefully a value object) based on the index the value |
void |
setValueAt(java.io.Serializable value,
int valueIndex)
Sets the value of an element based on its index in the list of values managed by the scrollable model. |
Method Detail |
public int getCount()
public java.lang.Object getValueAt(int valueIndex)
valueIndex,
- the index for the value to retrievepublic java.lang.Class getModelClass()
public int getNbPages()
public int getPageSize()
public void setValueAt(java.io.Serializable value, int valueIndex)
value,
- the 'value object' at a location in the listvalueIndex,
- the location of the value object in the listpublic java.lang.Object[] getPage(int pageIndex)
pageIndex,
- the index in the list of pages
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |