|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zul.impl.XulElement
org.zkoss.zul.Paging
public class Paging
Paging of long content.
Default getZclass(): z-paging. (since 3.5.0)
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
HtmlBasedComponent.ExtraCtrl |
| Nested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent |
|---|
AbstractComponent.Children |
| Field Summary |
|---|
| Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
_zclass |
| Fields inherited from interface org.zkoss.zk.ui.Component |
|---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
| Fields inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl |
|---|
CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE |
| Constructor Summary | |
|---|---|
Paging()
|
|
Paging(int totalsz,
int pagesz)
Constructor. |
|
| Method Summary | |
|---|---|
int |
getActivePage()
Returns the active page (starting from 0). |
int |
getPageCount()
Returns the number of pages. |
int |
getPageIncrement()
Returns the number of page anchors shall appear at the client. |
int |
getPageSize()
Returns the number of items per page. |
int |
getTotalSize()
Returns the total number of items. |
java.lang.String |
getZclass()
Returns the ZK Cascading Style class(es) for this component. |
boolean |
isAutohide()
Returns whether to automatically hide this component if there is only one page available. |
protected boolean |
isChildable()
Returns whether this component can have a child. |
boolean |
isDetailed()
Returns whether to show the detailed info, such as Paginal.getTotalSize(). |
boolean |
isVisible()
Returns whether this component is visible. |
protected void |
renderProperties(ContentRenderer renderer)
Renders the content of this component, excluding the enclosing tags and children. |
void |
service(AuRequest request,
boolean everError)
Processes an AU request. |
void |
setActivePage(int pg)
Set the active page Note: In server side, active page starts from 0. |
void |
setAutohide(boolean autohide)
Sets whether to automatically hide this component if there is only one page available. |
void |
setDetailed(boolean detailed)
Sets whether to show total size and index of items in current page |
void |
setPageIncrement(int pginc)
Sets the number of page list icon when mold is "os" |
void |
setPageSize(int size)
Sets the items to show in each page |
void |
setTotalSize(int size)
Sets total size of items |
| Methods inherited from class org.zkoss.zul.impl.XulElement |
|---|
clone, getContext, getCtrlKeys, getPopup, getTooltip, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip |
| Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeightDirectly, setHflex, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTooltiptext, setTop, setTopDirectly, setVflex, setWidth, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectly |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.zkoss.zul.ext.Paginal |
|---|
addEventListener, removeEventListener |
| Constructor Detail |
|---|
public Paging()
public Paging(int totalsz,
int pagesz)
totalsz - the total # of itemspagesz - the # of items per page| Method Detail |
|---|
public int getPageSize()
PageableDefault: 20.
getPageSize in interface Pageable
public void setPageSize(int size)
throws WrongValueException
setPageSize in interface PageableWrongValueExceptionpublic int getTotalSize()
Paginal
getTotalSize in interface Paginal
public void setTotalSize(int size)
throws WrongValueException
setTotalSize in interface PaginalWrongValueExceptionpublic int getPageCount()
Pageable
getPageCount in interface Pageablepublic int getActivePage()
Pageable
getActivePage in interface Pageable
public void setActivePage(int pg)
throws WrongValueException
Note: In server side, active page starts from 0. But in browser UI, it starts from 1
setActivePage in interface PageableWrongValueExceptionpublic int getPageIncrement()
PaginalDefault: 10.
getPageIncrement in interface Paginal
public void setPageIncrement(int pginc)
throws WrongValueException
setPageIncrement in interface PaginalWrongValueExceptionpublic boolean isDetailed()
PaginalPaginal.getTotalSize().
isDetailed in interface Paginalpublic void setDetailed(boolean detailed)
setDetailed in interface Paginalpublic boolean isAutohide()
Default: false.
isAutohide in interface Paginalpublic void setAutohide(boolean autohide)
setAutohide in interface Paginal
protected void renderProperties(ContentRenderer renderer)
throws java.io.IOException
HtmlBasedComponentSee also ZK Client-side Reference: Property Rendering
renderProperties in class XulElementjava.io.IOExceptionpublic java.lang.String getZclass()
HtmlBasedComponentAbstractComponent.getMold()).
Default: null (the default value depends on element).
HtmlBasedComponent.setZclass(java.lang.String)) will completely replace the default style
of a component. In other words, the default style of a component
is associated with the default value of HtmlBasedComponent.getZclass().
Once it is changed, the default style won't be applied at all.
If you want to perform small adjustments, use HtmlBasedComponent.setSclass(java.lang.String)
instead.
getZclass in class HtmlBasedComponentHtmlBasedComponent.getSclass()public boolean isVisible()
Component
isVisible in interface ComponentisVisible in class AbstractComponentComponents.isRealVisible(org.zkoss.zk.ui.Component)protected boolean isChildable()
AbstractComponentDefault: return true (means it can have children).
isChildable in class AbstractComponent
public void service(AuRequest request,
boolean everError)
Default: in addition to what are handled by HtmlBasedComponent.service(org.zkoss.zk.au.AuRequest, boolean),
it also handles onSelect.
service in interface ComponentCtrlservice in class HtmlBasedComponenteverError - whether any error ever occurred before
processing this request.AbstractComponent.setAuService(org.zkoss.zk.au.AuService)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||