|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataLoader
DataLoader is used with Grid, Listbox
to handle data loading from model to server and then to client side.
| Method Summary | |
|---|---|
void |
doListDataChange(ListDataEvent event)
Handle event when ListDataEvent is fired from owner component. |
int |
getLimit()
Returns the required visible limit size of the current loaded data chunk to be shown on the screen. |
int |
getOffset()
Returns the requested visible offset of the current loaded data chunk. |
Component |
getOwner()
Returns the associated owner component of this DataLoader. |
java.lang.Object |
getRealRenderer()
Return the renderer to do rendering. |
int |
getTotalSize()
Returns the total size of the data. |
void |
init(Component owner,
int offset,
int limit)
Callback from the owner component and give a chance to initialize things. |
void |
reset()
Callback from the owner component and give a chance to reset things. |
void |
setLoadAll(boolean b)
Sets whether to always load all items from ListModel. |
void |
syncModel(int offset,
int limit)
Synchronizes the owner component to be consistent with the specified model. |
void |
updateModelInfo()
Used to update some extra control information to the client. |
| Method Detail |
|---|
void init(Component owner,
int offset,
int limit)
owner - the owner component of this DataLoader.void reset()
Component getOwner()
int getOffset()
int getLimit()
void doListDataChange(ListDataEvent event)
int getTotalSize()
void syncModel(int offset,
int limit)
offset - the starting index of the range to do data synchronize.limit - the size of the range to do data synchronize. -1 means the current range.void updateModelInfo()
java.lang.Object getRealRenderer()
void setLoadAll(boolean b)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||