public class PagingEvent
extends org.zkoss.zk.ui.event.Event
Paginal (such as Paging).
It is used for paging long content.| Constructor and Description |
|---|
PagingEvent(String name,
org.zkoss.zk.ui.Component target,
int actpg)
Construct a paging event.
|
PagingEvent(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.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getActivePage()
Returns the active page (starting from 0).
|
Pageable |
getPageable()
Returns the pageable controller.
|
static PagingEvent |
getPagingEvent(org.zkoss.zk.au.AuRequest request)
Converts an AU request to a render event.
|
public PagingEvent(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 pagepublic static final PagingEvent getPagingEvent(org.zkoss.zk.au.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()
Copyright © 2015. All rights reserved.