|
||||||||||
| 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.Splitter
public class Splitter
An element which should appear before or after an element inside a box
(Box, Vbox and Hbox).
When the splitter is dragged, the sibling elements of the splitter are
resized. If getCollapse() is true, a grippy in placed
inside the splitter, and one sibling element of the splitter is collapsed
when the grippy is clicked.
Events: onOpen
| Nested Class Summary | |
|---|---|
protected class |
Splitter.ExtraCtrl
A utility class to implement AbstractComponent.getExtraCtrl(). |
| 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 | |
|---|---|
Splitter()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getCollapse()
Returns which side of the splitter is collapsed when its grippy is clicked. |
java.lang.String |
getOrient()
Returns the orientation of the splitter. |
java.lang.String |
getOuterAttrs()
|
boolean |
isChildable()
Not allow any children. |
boolean |
isOpen()
Returns whether it is opne (i.e., not collapsed. |
protected java.lang.Object |
newExtraCtrl()
|
void |
setCollapse(java.lang.String collapse)
Sets which side of the splitter is collapsed when its grippy is clicked. |
void |
setOpen(boolean open)
Opens or collapses the splitter. |
void |
setParent(org.zkoss.zk.ui.Component parent)
|
| Methods inherited from class org.zkoss.zul.impl.XulElement |
|---|
getAction, getAllOnClickAttrs, getContext, getInnerAttrs, 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, 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, isVisible, onChildAdded, onChildRemoved, onDrawNewChild, onWrongValue, redraw, removeAttribute, removeAttribute, removeChild, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setComponentDefinition, setId, setMold, setPage, setVariable, setVisible, smartUpdate, smartUpdate, smartUpdate, toString, unsetVariable |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Splitter()
| Method Detail |
|---|
public java.lang.String getOrient()
Box.getOrient().
public java.lang.String getCollapse()
isOpen() returns false.
Default: none.
The returned value can be one ofthe following.
Unlike XUL, you don't have to put a so-called grippy component as a child of the spiltter.
public void setCollapse(java.lang.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 java.lang.String getOuterAttrs()
getOuterAttrs in class XulElementpublic void setParent(org.zkoss.zk.ui.Component parent)
setParent in interface org.zkoss.zk.ui.ComponentsetParent in class org.zkoss.zk.ui.AbstractComponentpublic boolean isChildable()
isChildable in interface org.zkoss.zk.ui.ComponentisChildable in class org.zkoss.zk.ui.AbstractComponentprotected java.lang.Object newExtraCtrl()
newExtraCtrl in class org.zkoss.zk.ui.HtmlBasedComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||