public class PageSizeEvent
extends org.zkoss.zk.ui.event.Event
MeshElement.setAutopaging(boolean)
) is enabled
and user changed the size of the content.Constructor and Description |
---|
PageSizeEvent(String name,
org.zkoss.zk.ui.Component target,
int pgsz)
Construct a page size event.
|
PageSizeEvent(String name,
org.zkoss.zk.ui.Component target,
Pageable pageable,
int pgsz)
Construct a page size event that the target is different
from the page controller.
|
Modifier and Type | Method and Description |
---|---|
Pageable |
getPageable()
Returns the pageable controller.
|
int |
getPageSize()
Returns the page size.
|
public PageSizeEvent(String name, org.zkoss.zk.ui.Component target, int pgsz)
target
- the target must be a paginal component, i.e.,
implements Pageable
.pgsz
- the new page sizepublic PageSizeEvent(String name, org.zkoss.zk.ui.Component target, Pageable pageable, int pgsz)
target
- the event targetpageable
- the paging controller. In other words,
it is usually Paginal
.public Pageable getPageable()
public int getPageSize()
It is the same as getPageable()
's Pageable.getPageSize()
.
Copyright © 2020. All rights reserved.