public class PagingEvent extends Event
Paginal
(such as Paging
).
It is used for paging long content.Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getData, getEvent, getName, getPage, getTarget, isPropagatable, stopPropagation, toString
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 pagepublic 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()
Copyright © 2005-2021 Potix Corporation. All Rights Reserved.