|
||||||||||
| 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,
org.zkoss.zk.ui.Component target,
int actpg)
Construct a paging event. |
|
PagingEvent(java.lang.String name,
org.zkoss.zk.ui.Component target,
Pageable pageable,
int actpg)
Construct a paging event that the target is different from the page controller. |
|
PagingEvent(java.lang.String name,
org.zkoss.zk.ui.Component target,
Paginal paginal,
int actpg)
Deprecated. |
|
| Method Summary | |
|---|---|
int |
getActivePage()
Returns the active page (starting from 0). |
Pageable |
getPageable()
Returns the pageable controller. |
Paginal |
getPaginal()
Deprecated. |
| Methods inherited from class org.zkoss.zk.ui.event.Event |
|---|
getData, 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,
org.zkoss.zk.ui.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,
org.zkoss.zk.ui.Component target,
Pageable pageable,
int actpg)
target - the event targetpageable - the paging controller. In other words,
it is usually Paginal.
public PagingEvent(java.lang.String name,
org.zkoss.zk.ui.Component target,
Paginal paginal,
int actpg)
Deprecated since 2.4.1. Use PagingEvent(String,Component,Paginal,int)
instead.
target - the event targetpaginal - the paging controller.| Method Detail |
|---|
public Pageable getPageable()
public Paginal getPaginal()
Deprecated since 2.4.1. Use getPageable() instead.
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 | |||||||||