public class Splitlayout
extends org.zkoss.zul.impl.XulElement
Default getZclass(): z-splitlayout.
| Constructor and Description |
|---|
Splitlayout() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeChildAdded(org.zkoss.zk.ui.Component child,
org.zkoss.zk.ui.Component refChild) |
String |
getCollapse()
Returns which side of the splitter is collapsed when its grippy
is clicked.
|
String |
getHeights()
Returns the heights.
|
String |
getMinHeights()
Returns the minimum heights.
|
String |
getMinWidths()
Returns the minimum widths.
|
String |
getOrient()
Returns the orient.
|
String |
getWidths()
Returns the widths.
|
String |
getZclass()
The default zclass is "z-splitlayout"
|
boolean |
isOpen()
Returns whether it is open (i.e., not collapsed.
|
boolean |
isResizable()
Returns resizable of the splitter
|
boolean |
isVertical()
Returns whether it is a vertical splitlayout.
|
protected void |
renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) |
void |
service(org.zkoss.zk.au.AuRequest request,
boolean everError) |
void |
setCollapse(String collapse)
Sets which side of the splitter is collapsed when its grippy
is clicked.
|
void |
setHeights(String heightsStr)
Sets the heights, which is a list of numbers separated
by comma to denote the width/height of two caves in splitlayout.
|
void |
setMinHeights(String minHeightsStr)
Sets the minimum heights, which is a list of numbers separated
by comma to denote the minimum heights of two caves in splitlayout.
|
void |
setMinWidths(String minWidthsStr)
Sets the minimum widths, which is a list of numbers separated
by comma to denote the minimum width of two caves in splitlayout.
|
void |
setOpen(boolean open)
Opens or collapses the splitter.
|
void |
setOrient(String orient)
Sets the orient.
|
void |
setResizable(boolean resizable)
Sets resizable of the splitter.
|
void |
setWidths(String widthsStr)
Sets the widths, which is a list of numbers separated
by comma to denote the width/height of two caves in splitlayout.
|
clone, getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributesaddSclass, evalCSSFlex, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, removeSclass, removeSclass, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectlyaddAnnotation, addAnnotation, addCallback, 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, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, 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, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, insertBefore, invalidate, invalidatePartial, isChildable, isInitialized, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerializepublic void setOrient(String orient) throws org.zkoss.zk.ui.WrongValueException
orient - either "horizontal" or "vertical".org.zkoss.zk.ui.WrongValueExceptionpublic String getOrient()
Default: vertical
public String getCollapse()
isOpen() returns false.
Default: none.
The returned value can be one of the following.
Unlike XUL, you don't have to put a so-called grippy component as a child of the splitter.
public void setCollapse(String collapse) throws org.zkoss.zk.ui.WrongValueException
collapse - one of none, before and after.
If null or empty is specified, none is assumed.org.zkoss.zk.ui.WrongValueExceptiongetCollapse()public boolean isOpen()
getCollapse() is not "none".public void setOpen(boolean open)
getCollapse() is not "none".public boolean isResizable()
public void setResizable(boolean resizable)
public String getWidths()
public void setWidths(String widthsStr) throws org.zkoss.zk.ui.WrongValueException
For example, "100, 200" means the first cave shall occupy 100px width, the second cave 200px.
Note: the splitters are ignored, i.e., they are not two children in the splitlayout.
Another example, ",300" means the second caves shall occupy 300px width, and the first cave don't specify any width. Of course, the real widths depend on the interpretation of the browser.
org.zkoss.zk.ui.WrongValueExceptionpublic String getHeights()
public void setHeights(String heightsStr) throws org.zkoss.zk.ui.WrongValueException
For example, "100 ,200" means the first cave shall occupy 100px height, the second cave 200px.
Note: the splitters are ignored, i.e., they are not two children in the splitlayout.
Another example, ",300" means the second caves shall occupy 300px height, and the first cave don't specify any height.
org.zkoss.zk.ui.WrongValueExceptionpublic String getMinWidths()
public void setMinWidths(String minWidthsStr) throws org.zkoss.zk.ui.WrongValueException
For example, "10%,20%" in "horizontal" splitlayout means that the first cave should not be smaller than 10% width and the second cave 20% when moving the splitter.
Note: If the sum of minWidths larger than the width of splitlayout, the splitter would be fixed.
Another example, ",30%" in "horizontal" splitlayout means the second caves should not be smaller than 30% height, and the first cave has no restrictions. Of course, the real width depend on the interpretation of the browser.
org.zkoss.zk.ui.WrongValueExceptionpublic String getMinHeights()
public void setMinHeights(String minHeightsStr) throws org.zkoss.zk.ui.WrongValueException
For example, "10%,20%" in "vertical" splitlayout means that the first cave should not be smaller than 10% height and the second cave 20% when moving the splitter.
Note: If the sum of minHeights larger than the height of splitlayout, the splitter would be fixed.
Another example, ",30%" in "vertical" splitlayout means the second caves should not be smaller than 30% height, and the first cave has no restrictions. Of course, the real height depend on the interpretation of the browser.
org.zkoss.zk.ui.WrongValueExceptionpublic void beforeChildAdded(org.zkoss.zk.ui.Component child,
org.zkoss.zk.ui.Component refChild)
beforeChildAdded in interface org.zkoss.zk.ui.sys.ComponentCtrlbeforeChildAdded in class org.zkoss.zk.ui.AbstractComponentpublic boolean isVertical()
protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer)
throws IOException
renderProperties in class org.zkoss.zul.impl.XulElementIOExceptionpublic void service(org.zkoss.zk.au.AuRequest request,
boolean everError)
service in interface org.zkoss.zk.ui.sys.ComponentCtrlservice in class org.zkoss.zk.ui.HtmlBasedComponentpublic String getZclass()
getZclass in class org.zkoss.zk.ui.HtmlBasedComponentCopyright © 2026. All rights reserved.