public class Splitter extends XulElement
Box, Vbox and Hbox).
When the splitter is dragged, the sibling elements of the splitter are
resized. If getCollapse() is true, a grippy is placed
inside the splitter, and one sibling element of the splitter is collapsed
when the grippy is clicked.
Events: onOpen
Default getZclass(): z-splitter.
| Constructor and Description |
|---|
Splitter() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeParentChanged(org.zkoss.zk.ui.Component parent) |
String |
getCollapse()
Returns which side of the splitter is collapsed when its grippy
is clicked.
|
String |
getOrient()
Returns the orientation of the splitter.
|
String |
getZclass() |
protected boolean |
isChildable()
Not allow any children.
|
boolean |
isHorizontal()
Returns if the orientation of this splitter is horizontal.
|
boolean |
isOpen()
Returns whether it is open (i.e., not collapsed.
|
boolean |
isVertical()
Returns if the orientation of this splitter is vertical.
|
protected void |
renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) |
void |
service(org.zkoss.zk.au.AuRequest request,
boolean everError)
Processes an AU request.
|
void |
setCollapse(String collapse)
Sets which side of the splitter is collapsed when its grippy
is clicked.
|
void |
setOpen(boolean open)
Opens or collapses the splitter.
|
clone, getContext, 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, beforeChildAdded, beforeChildRemoved, 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, insertBefore, invalidate, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, 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 boolean isVertical()
public boolean isHorizontal()
public String getOrient()
Box.getOrient().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 void beforeParentChanged(org.zkoss.zk.ui.Component parent)
beforeParentChanged in interface org.zkoss.zk.ui.sys.ComponentCtrlbeforeParentChanged in class org.zkoss.zk.ui.AbstractComponentprotected boolean isChildable()
isChildable in class org.zkoss.zk.ui.AbstractComponentprotected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer)
throws IOException
renderProperties in class XulElementIOExceptionpublic String getZclass()
getZclass in class org.zkoss.zk.ui.HtmlBasedComponentpublic 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 onOpen.
service in interface org.zkoss.zk.ui.sys.ComponentCtrlservice in class org.zkoss.zk.ui.HtmlBasedComponentCopyright © 2015. All rights reserved.