|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zk.ui.AbstractComponent org.zkoss.zk.ui.HtmlBasedComponent org.zkoss.zul.impl.XulElement org.zkoss.zul.impl.MeshElement
public abstract class MeshElement
The fundamental class for mesh elements such as Grid
, Listbox
, and Tree
.
Nested Class Summary | |
---|---|
protected class |
MeshElement.InternalPaging
|
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 | |
---|---|
MeshElement()
|
Method Summary | |
---|---|
int |
getActivePage()
Returns the active page (starting from 0). |
int |
getPageCount()
Returns the number of pages. |
int |
getPageSize()
Returns the page size, a.k.a., the number rows per page. |
java.lang.String |
getPagingPosition()
Returns how to position the paging of mesh element at the client screen. |
java.lang.String |
getSpan()
Return column span hint of this component. |
protected abstract boolean |
isAutohidePaging()
|
boolean |
isAutopaging()
Returns whether the auto-paging facility is turned on when mold is "paging". |
boolean |
isSizedByContent()
Returns whether sizing grid/listbox/tree column width by its content. |
boolean |
isSpan()
Returns whether distributes remaining empty space of this component to ANY column. |
protected abstract Paginal |
pgi()
Returns the instance of the @{link Paginal} |
protected void |
renderProperties(ContentRenderer renderer)
Renders the content of this component, excluding the enclosing tags and children. |
void |
setActivePage(int pg)
Sets the active page (starting from 0). |
void |
setAutopaging(boolean autopaging)
Sets whether the auto-paging facility is turned on when mold is "paging". |
void |
setPageSize(int pgsz)
Sets the page size, a.k.a., the number rows per page. |
void |
setPagingPosition(java.lang.String pagingPosition)
Sets how to position the paging of mesh element at the client screen. |
void |
setSizedByContent(boolean byContent)
Sets whether sizing grid/listbox/tree column width by its content; it equals set hflex="min" on each column. |
void |
setSpan(boolean span)
Sets whether distributes remaining empty space of this component to ALL columns proportionally. |
void |
setSpan(java.lang.String span)
Sets column span hint of this component. |
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, getZclass, getZindex, getZIndex, service, 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 |
Constructor Detail |
---|
public MeshElement()
Method Detail |
---|
public java.lang.String getSpan()
Default: null
setSpan(java.lang.String)
public void setSpan(java.lang.String span)
String number span indicates how this component distributes remaining empty space to the specified column(0-based). "0" means distribute remaining empty space to the 1st column; "1" means distribute remaining empty space to the 2nd column, etc.. The spanning column will grow to fit the extra remaining space.
Special span hint with "true" means span ALL columns proportionally per their original widths while null or "false" means NOT spanning any column.
Default: null. That is, NOT span any column.
Note span is meaningful only if there is remaining empty space for columns.
span
- the column span hint.getSpan()
,
setSpan(boolean)
public void setSpan(boolean span)
Default: false. That is, NOT span any column.
Note span is meaningful only if there is remaining empty space for columns.
span
- whether to span the width of ALL columns to occupy the whole mesh element(grid/listbox/tree).public boolean isSpan()
Default: false.
getSpan()
,
setSpan(boolean)
,
setSpan(String)
public void setSizedByContent(boolean byContent)
Default: false.
byContent
- public boolean isSizedByContent()
setSizedByContent(boolean)
public void setAutopaging(boolean autopaging)
setPageSize(int)
is ignored;
rather, the page size is automatically determined by the height of the
Listbox dynamically. Note: Due to performance concern, Autopaging
functionality does not support Detail
components.
autopaging
- true to turn on the auto-paging facility.public boolean isAutopaging()
setPageSize(int)
is ignored;
rather, the page size is automatically determined by the height of the
Listbox dynamically.
public void setPagingPosition(java.lang.String pagingPosition)
pagingPosition
- how to position. It can only be "bottom" (the default), or
"top", or "both".protected abstract boolean isAutohidePaging()
public java.lang.String getPagingPosition()
getPagingPosition
in interface Paginated
protected abstract Paginal pgi()
public int getPageSize()
java.lang.IllegalStateException
- if pgi()
returns null,
i.e., mold is not "paging" and no external controller is specified.public void setPageSize(int pgsz) throws WrongValueException
java.lang.IllegalStateException
- if pgi()
returns null,
i.e., mold is not "paging" and no external controller is specified.
WrongValueException
public int getPageCount()
public int getActivePage()
public void setActivePage(int pg) throws WrongValueException
WrongValueException
protected void renderProperties(ContentRenderer renderer) throws java.io.IOException
HtmlBasedComponent
See also ZK Client-side Reference: Property Rendering
renderProperties
in class XulElement
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |