|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A model builder for
the Paginator
component.
The getTotalSize(Paginator, PageState)
method of this
class is called during the generation of page links for a
Paginator
component. When using a
Paginator
component with a List
or a Table
, you can achieve greater flexibility in terms of caching and
performance by having the model builder implement this interface.
Unlike other model builder classes in Bebop, there is no
PaginationModel class, as this would only be an int
.
Paginator
Method Summary | |
int |
getTotalSize(Paginator paginator,
PageState state)
Returns the total number of results to paginate. |
boolean |
isVisible(PageState state)
Determines whether the paginator should be visible in the request represented by state . |
Method Detail |
public int getTotalSize(Paginator paginator, PageState state)
paginator
- the Paginator instance that invoked this methodstate
- the current page state
public boolean isVisible(PageState state)
state
.
This should normally delegate to the isVisible method of the
associated displayed component.
state
- represents the current request
true
if the paginator is visible in the request;
false
otherwise.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |