public interface DataLoader
Grid
, Listbox
to handle data loading from model to server and then to client side.Modifier and Type | Method and Description |
---|---|
void |
doGroupsDataChange(GroupsDataEvent event)
Handle event when GroupsDataEvent is fired from owner component.
|
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.
|
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)
void doGroupsDataChange(GroupsDataEvent event)
event
- the corresponding GroupsDataEventint 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)
Copyright © 2005-2018 Potix Corporation. All Rights Reserved.