|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.event.Event
org.zkoss.zul.event.PagingEvent
public class PagingEvent
Used to notify that a new page is selected by the user, or by
Paginal (such as Paging).
It is used for paging long content.
| Constructor Summary | |
|---|---|
PagingEvent(java.lang.String name,
Component target,
int actpg)
Construct a paging event. |
|
PagingEvent(java.lang.String name,
Component target,
Pageable pageable,
int actpg)
Construct a paging event that the target is different from the page controller. |
|
| Method Summary | |
|---|---|
int |
getActivePage()
Returns the active page (starting from 0). |
Pageable |
getPageable()
Returns the pageable controller. |
static PagingEvent |
getPagingEvent(AuRequest request)
Converts an AU request to a render event. |
| Methods inherited from class org.zkoss.zk.ui.event.Event |
|---|
getData, getEvent, getName, getPage, getTarget, isPropagatable, stopPropagation, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PagingEvent(java.lang.String name,
Component target,
int actpg)
target - the target must be a paginal component, i.e.,
implements Pageable.actpg - the active page
public PagingEvent(java.lang.String name,
Component target,
Pageable pageable,
int actpg)
target - the event targetpageable - the paging controller. In other words,
it is usually Paginal.| Method Detail |
|---|
public static final PagingEvent getPagingEvent(AuRequest request)
public Pageable getPageable()
public int getActivePage()
It is the same as getPageable()'s Pageable.getActivePage().
To get the index of the first visible item, use
.
getActivePage() * Pageable.getPageSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||