|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Pageable
Represents a component that can be displayed in multiple pages but cannot be controlled by an external paging controller.
Paginated
: a multi-page component whose pagination
is controlled by an external page controlle (Paginal
).Paginal
: the paging controller used to control
the pagination of Paginated
.Pageable
: a multi-page component that handles pagination
by itself.Note: a component that can be displayed in multiple pages can be implemented in two ways.
1) If it can be controlled by an external paging controller
(i.e., Paginal
), it shall hold an reference to one of
the paging controllers. And, it doesn't need to implement Pageable
.
Example: grid, listbox and tree.
2) If it cannot be controlled by external controller, it shall
implement the Pageable
interface.
Paginal
Method Summary | |
---|---|
int |
getActivePage()
Returns the active page (starting from 0). |
int |
getPageCount()
Returns the number of pages. |
int |
getPageSize()
Returns the number of items per page. |
void |
setActivePage(int pg)
Sets the active page (starting from 0). |
void |
setPageSize(int size)
Sets the number of items per page. |
Method Detail |
---|
int getPageSize()
Default: 20.
void setPageSize(int size) throws WrongValueException
WrongValueException
int getPageCount()
int getActivePage()
void setActivePage(int pg) throws WrongValueException
WrongValueException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |