| org.zkoss.zul.ext.Paginal
All known Subclasses: org.zkoss.zul.Paging,
Paginal | public interface Paginal extends Pageable(Code) | | Represents a component that is used to control how to display
other components in multiple pages.
It is used to provide an abstract contract between controller and controllee.
For example,
org.zkoss.zul.Paging is a paging controller
while
org.zkoss.zul.Grid is a paging controllee.
In other words,
org.zkoss.zul.Grid (contains long content)
can be controlled by
org.zkoss.zul.Paging .
The paging controller must implement this interface, while
the paging controllee shall access only this interface (rather than
org.zkoss.zul.Paging or so).
Note: If a component supports multiple pages but it cannot
be controlled by a paging controller, it shall implement
Pageable instead.
Example,
org.zkoss.zul.Treechildren is
Pageable but not controllable by
Paginal .
author: tomyeh See Also: Pageable |
addEventListener | public boolean addEventListener(String evtnm, EventListener listener)(Code) | | Adds an event listener to specified event for this component.
The second registration is ignored and false is returned.
The onPaging event is sent with an instance of
org.zkoss.zul.event.PagingEvent to notify which page
is selected.
Parameters: evtnm - what event to listen (never null) whether the listener is added; false if it was added before See Also: org.zkoss.zul.event.PagingEvent |
getPageIncrement | public int getPageIncrement()(Code) | | Returns the number of page anchors shall appear at the client.
Default: 10.
|
getTotalSize | public int getTotalSize()(Code) | | Returns the total number of items.
|
removeEventListener | public boolean removeEventListener(String evtnm, EventListener listener)(Code) | | Removes an event listener.
whether the listener is removed; false if it was never added. |
setPageIncrement | public void setPageIncrement(int pginc) throws WrongValueException(Code) | | Sets the number of page anchors shall appear at the client.
|
|
|