|
||||||||||
| 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 HtmlBasedComponent.getSclass(): paging.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
org.zkoss.zk.ui.HtmlBasedComponent.ExtraCtrl |
| Field Summary |
|---|
| Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
RS_NO_DISPLAY, RS_NO_HEIGHT, RS_NO_WIDTH |
| Fields inherited from interface org.zkoss.zk.ui.Component |
|---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
| Constructor Summary | |
|---|---|
Paging()
|
|
Paging(int totalsz,
int pagesz)
Contructor. |
|
| Method Summary | |
|---|---|
int |
getActivePage()
Returns the active page (starting from 0). |
java.lang.String |
getInnerTags()
Returns the inner HTML tags of this component. |
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. |
boolean |
isAutohide()
Returns whether to automatically hide this component if there is only one page available. |
boolean |
isChildable()
|
boolean |
isDetailed()
Returns whether to show the detailed info, such as Paginal.getTotalSize(). |
boolean |
isVisible()
|
void |
setActivePage(int pg)
Sets the active page (starting 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 the detailed info, such as Paginal.getTotalSize(). |
void |
setPageIncrement(int pginc)
Sets the number of page anchors shall appear at the client. |
void |
setPageSize(int size)
Sets the number of items per page. |
void |
setTotalSize(int size)
Sets the total number of items. |
| Methods inherited from class org.zkoss.zul.impl.XulElement |
|---|
getAction, getAllOnClickAttrs, getContext, getInnerAttrs, getOuterAttrs, getPopup, getTooltip, setAction, setContext, setPopup, setTooltip |
| Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
addEventListener, appendAsapAttr, focus, getDraggable, getDroppable, getHeight, getLeft, getRealStyle, getRealStyleFlags, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZIndex, isAsapRequired, newExtraCtrl, removeEventListener, setClass, setDraggable, setDroppable, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZIndex |
| Methods inherited from class org.zkoss.zk.ui.AbstractComponent |
|---|
addAnnotation, addAnnotation, addEventHandler, addSharedAnnotationMap, addSharedEventHandlerMap, appendChild, applyProperties, clone, containsVariable, detach, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getDefinition, getDesktop, getEventHandler, getExtraCtrl, getFellow, getFellowIfAny, getId, getListenerIterator, getMold, getMoldURI, getNamespace, getPage, getParent, getPropagatee, getRoot, getSpaceOwner, getUuid, getVariable, insertBefore, invalidate, isListenerAvailable, onChildAdded, onChildRemoved, onDrawNewChild, onWrongValue, redraw, removeAttribute, removeAttribute, removeChild, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setComponentDefinition, setId, setMold, setPage, setParent, setVariable, setVisible, smartUpdate, smartUpdate, smartUpdate, toString, unsetVariable |
| 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 org.zkoss.zk.ui.WrongValueException
Pageable
setPageSize in interface Pageableorg.zkoss.zk.ui.WrongValueExceptionpublic int getTotalSize()
Paginal
getTotalSize in interface Paginal
public void setTotalSize(int size)
throws org.zkoss.zk.ui.WrongValueException
Paginal
setTotalSize in interface Paginalorg.zkoss.zk.ui.WrongValueExceptionpublic int getPageCount()
Pageable
getPageCount in interface Pageablepublic int getActivePage()
Pageable
getActivePage in interface Pageable
public void setActivePage(int pg)
throws org.zkoss.zk.ui.WrongValueException
Pageable
setActivePage in interface Pageableorg.zkoss.zk.ui.WrongValueExceptionpublic int getPageIncrement()
PaginalDefault: 10.
getPageIncrement in interface Paginal
public void setPageIncrement(int pginc)
throws org.zkoss.zk.ui.WrongValueException
Paginal
setPageIncrement in interface Paginalorg.zkoss.zk.ui.WrongValueExceptionpublic boolean isDetailed()
PaginalPaginal.getTotalSize().
isDetailed in interface Paginalpublic void setDetailed(boolean detailed)
PaginalPaginal.getTotalSize().
setDetailed in interface Paginalpublic boolean isAutohide()
Default: false.
public void setAutohide(boolean autohide)
public java.lang.String getInnerTags()
Used only for component development. Not accessible by application developers.
public boolean isVisible()
isVisible in interface org.zkoss.zk.ui.ComponentisVisible in class org.zkoss.zk.ui.AbstractComponentpublic boolean isChildable()
isChildable in interface org.zkoss.zk.ui.ComponentisChildable in class org.zkoss.zk.ui.AbstractComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||