public class Tree extends MeshElement
Event:
SelectEvent is sent when user changes
the selection.Default getZclass(): z-tree. (since 3.5.0)
Custom Attributes:
isCheckmark()) is enabled.
Notice that you could specify this attribute in any of its ancestor's attributes.
It will be inherited.setModel(org.zkoss.zul.TreeModel<?>) is called and Treecol.setSortDirection(java.lang.String) is set.Treecol.setSortDirection(java.lang.String) is called.TreeDataEvent and Treecol.setSortDirection(java.lang.String) is set.TreeDataEvent,
you can specifies the value as "ignore.change".
Notice that you could specify this attribute in any of its ancestor's attributes.
It will be inherited.To retrieve what are selected in Tree with a TreeSelectableModel,
you shall use TreeSelectableModel.isPathSelected(int[])
to check whether the current path is selected in TreeSelectableModel
rather than using getSelectedItems(). That is, you shall operate on
the item of the TreeSelectableModel rather than on the Treeitem
of the Tree if you use the TreeSelectableModel and TreeModel.
TreeSelectableModel selModel = ((TreeSelectableModel)getModel());
int[][] paths = selModel.getSelectionPaths();
List selected = new ArrayList();
AbstractTreeModel model = (AbstractTreeModel) selModel;
for (int i = 0; i < paths.length; i++) {
selected.add(model.getChild(paths[i]));
}
If the TreeModel in Tree implements a TreeSelectableModel, the
multiple selections status is applied from the method of
TreeSelectableModel.isMultiple()
DefaultTreeModel selModel = new DefaultTreeModel(treeNode);
selModel.setMultiple(true);
tree.setModel(selModel);
To retrieve what are opened nodes in Tree with a TreeOpenableModel,
you shall use TreeOpenableModel.isPathOpened(int[])
to check whether the current path is opened in TreeOpenableModel
rather than using Treeitem.isOpen(). That is, you shall operate on
the item of the TreeOpenableModel rather than on the Treeitem
of the Tree if you use the TreeOpenableModel and TreeModel.
TreeOpenableModel openModel = ((TreeOpenableModel)getModel());
int[][] paths = openModel.getOpenPaths();
List opened = new ArrayList();
AbstractTreeModel model = (AbstractTreeModel) openModel;
for (int i = 0; i < paths.length; i++) {
opened.add(model.getChild(paths[i]));
}
It is used only if live data (setModel(TreeModel) and
not paging (getPagingChild()).
MeshElement.InternalPaging| Constructor and Description |
|---|
Tree() |
| Modifier and Type | Method and Description |
|---|---|
void |
addItemToSelection(Treeitem item)
Selects the given item, without deselecting any other items
that are already selected..
|
void |
beforeChildAdded(org.zkoss.zk.ui.Component newChild,
org.zkoss.zk.ui.Component refChild) |
void |
clear()
Clears all child tree items (
Treeitem. |
void |
clearSelection()
Clears the selection.
|
Object |
clone() |
int |
getActivePage()
Returns the active page (starting from 0).
|
protected Object |
getAssociatedNode(Treeitem ti,
Tree t)
Return a node which is an associated Treeitem ti in a Tree tree
|
protected org.zkoss.zk.ui.Component |
getChildByNode(Object node)
Return the Tree or Treeitem component by a given associated node in model,
or null if the treeitem is not instantiated (i.e., rendered) yet.
|
protected org.zkoss.zk.ui.Component |
getChildByPath(int[] path)
Return the Tree or Treeitem component by a path, or null if corresponding
Treeitem is not instantiated (i.e., rendered) yet.
|
Frozen |
getFrozen()
Returns the frozen child.
|
Collection<org.zkoss.zk.ui.Component> |
getHeads()
Returns a collection of heads, including
getTreecols()
and auxiliary heads (Auxhead) (never null). |
String |
getInnerWidth()
Returns the inner width of this component.
|
int |
getItemCount()
Returns the number of child
Treeitem. |
<T> TreeitemRenderer<T> |
getItemRenderer()
Returns the renderer to render each item, or null if the default
renderer is used.
|
Collection<Treeitem> |
getItems()
Returns a readonly list of all descending
Treeitem
(children's children and so on). |
<T> TreeModel<T> |
getModel()
Returns the list model associated with this tree, or null
if this tree is not associated with any tree data model.
|
String |
getName()
Returns the name of this component.
|
String |
getNonselectableTags()
Returns a list of HTML tag names that shall not cause the tree item
being selected if they are clicked.
|
int |
getPageSize()
Returns the page size, a.k.a., the number items per page.
|
Paginal |
getPaginal()
Returns the paging controller, or null if not available.
|
Paging |
getPagingChild()
Returns the child paging controller that is created automatically,
or null if mold is not "paging", or the controller is specified externally
by
setPaginal(org.zkoss.zul.ext.Paginal). |
int |
getRows()
Returns the rows.
|
int |
getSelectedCount()
Returns the number of items being selected.
|
Treeitem |
getSelectedItem()
Returns the selected item.
|
Set<Treeitem> |
getSelectedItems()
Returns all selected items.
|
String |
getSeltype()
Returns the seltype.
|
int |
getTabindex()
Returns the tab order of this component.
|
Treechildren |
getTreechildren()
Returns the treechildren that this tree owns (might null).
|
Treecols |
getTreecols()
Returns the treecols that this tree owns (might null).
|
Treefoot |
getTreefoot()
Returns the treefoot that this tree owns (might null).
|
<T> TreeitemRenderer<T> |
getTreeitemRenderer()
Deprecated.
As of release 5.0.6, replaced with
getItemRenderer().
/** Returns the renderer to render each item, or null if the default
renderer is used. |
String |
getZclass() |
boolean |
insertBefore(org.zkoss.zk.ui.Component newChild,
org.zkoss.zk.ui.Component refChild) |
protected boolean |
isAutohidePaging() |
boolean |
isCheckmark()
Returns whether the check mark shall be displayed in front
of each item.
|
boolean |
isFixedLayout()
Deprecated.
since 5.0.0, use !
MeshElement.isSizedByContent() instead |
boolean |
isMultiple()
Returns whether multiple selections are allowed.
|
protected boolean |
isSelectOnHighlightDisabled() |
boolean |
isVflex()
Returns whether to grow and shrink vertical to fit their given space,
so called vertical flexibility.
|
void |
onAfterRender() |
void |
onChildAdded(org.zkoss.zk.ui.Component child) |
void |
onChildRemoved(org.zkoss.zk.ui.Component child) |
void |
onInitRender()
Handles a private event, onInitRender.
|
void |
onPageAttached(org.zkoss.zk.ui.Page newpage,
org.zkoss.zk.ui.Page oldpage) |
void |
onPageDetached(org.zkoss.zk.ui.Page page) |
protected Paginal |
pgi()
Returns the instance of the @{link Paginal}
|
protected void |
redrawChildren(Writer out) |
void |
removeItemFromSelection(Treeitem item)
Deselects the given item without deselecting other items.
|
void |
renderItem(Treeitem item)
Renders the specified
Treeitem, if not loaded yet,
with getItemRenderer(). |
void |
renderItem(Treeitem item,
Object node)
Renders the specified
Treeitem, if not loaded yet,
with getItemRenderer(). |
Treeitem |
renderItemByNode(Object node)
Load the treeitems by the given node.
|
Treeitem |
renderItemByPath(int[] path)
Load the treeitems by giving a path of the treeitems top open.
|
void |
renderItems(Set<? extends Treeitem> items)
Renders the specified
Treeitem if not loaded yet,
with getItemRenderer(). |
protected void |
renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) |
void |
selectAll()
Selects all items.
|
void |
selectItem(Treeitem item)
Deselects all of the currently selected items and selects
the given item.
|
void |
service(org.zkoss.zk.au.AuRequest request,
boolean everError)
Processes an AU request.
|
void |
sessionDidActivate(org.zkoss.zk.ui.Page page) |
void |
sessionWillPassivate(org.zkoss.zk.ui.Page page) |
void |
setActivePage(int pg)
Sets the active page (starting from 0).
|
void |
setActivePage(Treeitem item)
Sets the active page in which the specified item is.
|
void |
setCheckmark(boolean checkmark)
Sets whether the check mark shall be displayed in front
of each item.
|
void |
setFixedLayout(boolean fixedLayout)
Deprecated.
since 5.0.0, use
MeshElement.setSizedByContent(boolean)(!fixedLayout) instead |
void |
setInnerWidth(String innerWidth)
Sets the inner width of this component.
|
void |
setItemRenderer(String clsnm)
Sets the renderer by use of a class name.
|
void |
setItemRenderer(TreeitemRenderer<?> renderer)
Sets the renderer which is used to render each item
if
getModel() is not null. |
void |
setModel(TreeModel<?> model)
Sets the tree model associated with this tree.
|
void |
setMold(String mold)
Sets the mold to render this component.
|
void |
setMultiple(boolean multiple)
Sets whether multiple selections are allowed.
|
void |
setName(String name)
Sets the name of this component.
|
void |
setNonselectableTags(String tags)
Sets a list of HTML tag names that shall not cause the tree item
being selected if they are clicked.
|
void |
setPageSize(int pgsz)
Sets the page size, a.k.a., the number items per page.
|
void |
setPaginal(Paginal pgi) |
void |
setRows(int rows)
Sets the rows.
|
void |
setSelectedItem(Treeitem item)
Deselects all of the currently selected items and selects
the given item.
|
void |
setSeltype(String seltype)
Sets the seltype.
|
void |
setTabindex(int tabindex)
Sets the tab order of this component.
|
void |
setTreeitemRenderer(TreeitemRenderer<?> renderer)
Deprecated.
As of release 5.0.6, replaced with
setItemRenderer(org.zkoss.zul.TreeitemRenderer<?>).
Sets the renderer which is used to render each item
if getModel() is not null.
Note: changing a render will not cause the tree to re-render.
If you want it to re-render, you could assign the same model again
(i.e., setModel(getModel())), or fire an |
void |
setVflex(boolean vflex)
Sets whether to grow and shrink vertical to fit their given space,
so called vertical flexibility.
|
void |
smartUpdate(String attr,
Object value) |
void |
toggleItemSelection(Treeitem item)
If the specified item is selected, it is deselected.
|
getPageCount, getPagingPosition, getSpan, isAutopaging, isSizedByContent, isSpan, setAutopaging, setPagingPosition, setSizedByContent, setSpan, setSpangetContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltipfocus, 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, setZIndexDirectlyaddAnnotation, addAnnotation, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildRemoved, beforeParentChanged, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowRoots, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, invalidate, isChildable, isInvalidated, isListenerAvailable, isVisible, onWrongValue, query, queryAll, redraw, removeAttribute, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setPage, setPageBefore, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerializepublic void onPageAttached(org.zkoss.zk.ui.Page newpage,
org.zkoss.zk.ui.Page oldpage)
onPageAttached in interface org.zkoss.zk.ui.sys.ComponentCtrlonPageAttached in class org.zkoss.zk.ui.AbstractComponentpublic void onPageDetached(org.zkoss.zk.ui.Page page)
onPageDetached in interface org.zkoss.zk.ui.sys.ComponentCtrlonPageDetached in class org.zkoss.zk.ui.AbstractComponentpublic void setMold(String mold)
setMold in interface org.zkoss.zk.ui.ComponentsetMold in class org.zkoss.zk.ui.AbstractComponentmold - the mold. If null or empty, "default" is assumed.
Allowed values: default, pagingComponentDefinitionpublic Paginal getPaginal()
AbstractComponent.getMold() is "paging".
If mold is "paging", this method never returns null, because
a child paging controller is created automatically (if not specified
by developers with setPaginal(org.zkoss.zul.ext.Paginal)).
If a paging controller is specified (either by setPaginal(org.zkoss.zul.ext.Paginal),
or by setMold(java.lang.String) with "paging"),
the tree will rely on the paging controller to handle long-content
instead of scrolling.
public void setPaginal(Paginal pgi)
public Paging getPagingChild()
setPaginal(org.zkoss.zul.ext.Paginal).public int getPageSize()
getPageSize in class MeshElementIllegalStateException - if getPaginal() returns null,
i.e., mold is not "paging" and no external controller is specified.public void setPageSize(int pgsz)
throws org.zkoss.zk.ui.WrongValueException
Note: mold is "paging" and no external controller is specified.
setPageSize in class MeshElementorg.zkoss.zk.ui.WrongValueExceptionprotected Paginal pgi()
MeshElementpgi in class MeshElementpublic void setFixedLayout(boolean fixedLayout)
MeshElement.setSizedByContent(boolean)(!fixedLayout) insteadfixedLayout - true to outline this grid by browserpublic boolean isFixedLayout()
MeshElement.isSizedByContent() insteadpublic Treecols getTreecols()
public Treefoot getTreefoot()
public Frozen getFrozen()
public Treechildren getTreechildren()
public Collection<org.zkoss.zk.ui.Component> getHeads()
getTreecols()
and auxiliary heads (Auxhead) (never null).public int getRows()
Default: 0.
public void setRows(int rows)
throws org.zkoss.zk.ui.WrongValueException
Note: if both HtmlBasedComponent.setHeight(java.lang.String) is specified with non-empty,
setRows(int) is ignored
org.zkoss.zk.ui.WrongValueExceptionpublic String getName()
Default: null.
The name is used only to work with "legacy" Web application that handles user's request by servlets. It works only with HTTP/HTML-based browsers. It doesn't work with other kind of clients.
Don't use this method if your application is purely based on ZK's event-driven model.
public void setName(String name)
The name is used only to work with "legacy" Web application that handles user's request by servlets. It works only with HTTP/HTML-based browsers. It doesn't work with other kind of clients.
Don't use this method if your application is purely based on ZK's event-driven model.
name - the name of this component.public void setNonselectableTags(String tags)
Default: null (it means button, input, textarea and a). If you want to select no matter which tag is clicked, please specify an empty string.
tags - a list of HTML tag names that will not cause the tree item
being selected if clicked. Specify null to use the default and "" to
indicate none.public String getNonselectableTags()
Refer to setNonselectableTags(java.lang.String) for details.
public boolean isCheckmark()
Default: false.
public void setCheckmark(boolean checkmark)
The check mark is a checkbox if isMultiple() returns
true. It is a radio button if isMultiple() returns false.
public boolean isVflex()
Note: this attribute is ignored if setRows(int) is specified
Default: false.
public void setVflex(boolean vflex)
Note: this attribute is ignored if setRows(int) is specified
public void setInnerWidth(String innerWidth)
Application developers rarely call this method, unless
they want to preserve the widths of sizable columns
changed by the user.
To preserve the widths, the developer have to store the widths of
all columns and the inner width (getInnerWidth()),
and then restore them when re-creating this component.
innerWidth - the inner width. If null, "100%" is assumed.public String getInnerWidth()
Default: "100%"
setInnerWidth(java.lang.String)public String getSeltype()
Default: "single".
public void setSeltype(String seltype) throws org.zkoss.zk.ui.WrongValueException
org.zkoss.zk.ui.WrongValueExceptionpublic int getTabindex()
Default: 0 (means the same as browser's default).
public void setTabindex(int tabindex)
throws org.zkoss.zk.ui.WrongValueException
org.zkoss.zk.ui.WrongValueExceptionpublic boolean isMultiple()
Default: false.
public void setMultiple(boolean multiple)
Notice that, if a model is assigned, it will change the model's
state (by TreeSelectableModel.setMultiple(boolean)).
public void setActivePage(Treeitem item)
item - the item to show. If the item is null, invisible, or doesn't belong
to the same tree, nothing happens.public void smartUpdate(String attr, Object value)
smartUpdate in class org.zkoss.zk.ui.AbstractComponentpublic Collection<Treeitem> getItems()
Treeitem
(children's children and so on).
Note: the performance of the size method of returned collection is no good.
public int getItemCount()
Treeitem.
The same as getItems().size().
Note: the performance of this method is no good.
public void selectItem(Treeitem item)
It is the same as setSelectedItem(org.zkoss.zul.Treeitem).
item - the item to select. If null, all items are deselected.public void addItemToSelection(Treeitem item)
public void removeItemFromSelection(Treeitem item)
public void toggleItemSelection(Treeitem item)
public void clearSelection()
public void selectAll()
public Treeitem getSelectedItem()
public void setSelectedItem(Treeitem item)
It is the same as selectItem(org.zkoss.zul.Treeitem).
public int getSelectedCount()
public void clear()
Treeitem.
Note: after clear, getTreechildren() won't be null, but
it has no child
public String getZclass()
getZclass in class org.zkoss.zk.ui.HtmlBasedComponentpublic void beforeChildAdded(org.zkoss.zk.ui.Component newChild,
org.zkoss.zk.ui.Component refChild)
beforeChildAdded in interface org.zkoss.zk.ui.sys.ComponentCtrlbeforeChildAdded in class org.zkoss.zk.ui.AbstractComponentpublic boolean insertBefore(org.zkoss.zk.ui.Component newChild,
org.zkoss.zk.ui.Component refChild)
insertBefore in interface org.zkoss.zk.ui.ComponentinsertBefore in class org.zkoss.zk.ui.AbstractComponentpublic void onChildAdded(org.zkoss.zk.ui.Component child)
onChildAdded in interface org.zkoss.zk.ui.sys.ComponentCtrlonChildAdded in class org.zkoss.zk.ui.AbstractComponentpublic void onChildRemoved(org.zkoss.zk.ui.Component child)
onChildRemoved in interface org.zkoss.zk.ui.sys.ComponentCtrlonChildRemoved in class org.zkoss.zk.ui.AbstractComponentpublic Object clone()
clone in interface org.zkoss.zk.ui.Componentclone in class XulElementpublic void sessionWillPassivate(org.zkoss.zk.ui.Page page)
sessionWillPassivate in interface org.zkoss.zk.ui.sys.ComponentCtrlsessionWillPassivate in class org.zkoss.zk.ui.AbstractComponentpublic void sessionDidActivate(org.zkoss.zk.ui.Page page)
sessionDidActivate in interface org.zkoss.zk.ui.sys.ComponentCtrlsessionDidActivate in class org.zkoss.zk.ui.AbstractComponentprotected org.zkoss.zk.ui.Component getChildByNode(Object node)
TreeModel.getRoot()).IllegalStateException - if no model is assigned (setModel(org.zkoss.zul.TreeModel<?>)).renderItemByNode(java.lang.Object)protected org.zkoss.zk.ui.Component getChildByPath(int[] path)
TreeModel.getRoot()).public void setModel(TreeModel<?> model)
Note: changing a render will not cause the tree to re-render.
If you want it to re-render, you could assign the same model again
(i.e., setModel(getModel())), or fire an TreeDataEvent event.
model - the tree model to associate, or null to dissociate
any previous model.org.zkoss.zk.ui.UiException - if failed to initialize with the modelpublic void onInitRender()
public <T> TreeModel<T> getModel()
public void setItemRenderer(TreeitemRenderer<?> renderer)
getModel() is not null.
Note: changing a render will not cause the tree to re-render.
If you want it to re-render, you could assign the same model again
(i.e., setModel(getModel())), or fire an TreeDataEvent event.
renderer - the renderer, or null to use the default.org.zkoss.zk.ui.UiException - if failed to initialize with the modelpublic void setItemRenderer(String clsnm) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InstantiationException, InvocationTargetException
public <T> TreeitemRenderer<T> getItemRenderer()
public void setTreeitemRenderer(TreeitemRenderer<?> renderer)
setItemRenderer(org.zkoss.zul.TreeitemRenderer<?>).
Sets the renderer which is used to render each item
if getModel() is not null.
Note: changing a render will not cause the tree to re-render.
If you want it to re-render, you could assign the same model again
(i.e., setModel(getModel())), or fire an TreeDataEvent event.
renderer - the renderer, or null to use the default.org.zkoss.zk.ui.UiException - if failed to initialize with the modelpublic <T> TreeitemRenderer<T> getTreeitemRenderer()
getItemRenderer().
/** Returns the renderer to render each item, or null if the default
renderer is used.public void renderItem(Treeitem item)
Treeitem, if not loaded yet,
with getItemRenderer().
It does nothing if getModel() returns null.
To unload treeitem, use Treeitem.unload().
renderItems(java.util.Set<? extends org.zkoss.zul.Treeitem>)public void renderItem(Treeitem item, Object node)
Treeitem, if not loaded yet,
with getItemRenderer().
It does nothing if getModel() returns null.
Note: Since the corresponding node is given, This method has better performance than renderItem(Treeitem item) due to not searching for its corresponding node.
To unload treeitem, use Treeitem.unload().
renderItems(java.util.Set<? extends org.zkoss.zul.Treeitem>)public void renderItems(Set<? extends Treeitem> items)
Treeitem if not loaded yet,
with getItemRenderer().
It does nothing if getModel() returns null.
To unload treeitem, with Treeitem.unload().
renderItem(org.zkoss.zul.Treeitem)protected Object getAssociatedNode(Treeitem ti, Tree t)
public Treeitem renderItemByNode(Object node)
TreeModel.getChild(E, int).
Notice that this method has to search the model one-by-one.
The performance might not be good, so use renderItemByPath(int[])
if possible.
IllegalStateException - if no model is assigned (setModel(org.zkoss.zul.TreeModel<?>)).public Treeitem renderItemByPath(int[] path)
Treeitem.setOpen(boolean)). If you want to visit the rendered
item in paging mold, please invoke setActivePage(Treeitem).path - - an index path. The first element is the index at the first level
of the tree structure.protected void redrawChildren(Writer out) throws IOException
redrawChildren in class org.zkoss.zk.ui.AbstractComponentIOExceptionprotected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer)
throws IOException
renderProperties in class MeshElementIOExceptionprotected boolean isAutohidePaging()
isAutohidePaging in class MeshElementprotected boolean isSelectOnHighlightDisabled()
public void service(org.zkoss.zk.au.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 org.zkoss.zk.ui.sys.ComponentCtrlservice in class org.zkoss.zk.ui.HtmlBasedComponentpublic void setActivePage(int pg)
throws org.zkoss.zk.ui.WrongValueException
MeshElementsetActivePage in class MeshElementorg.zkoss.zk.ui.WrongValueExceptionpublic int getActivePage()
MeshElementgetActivePage in class MeshElementpublic void onAfterRender()
Copyright © 2015. All rights reserved.