|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface 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
Default HtmlBasedComponent.getZclass() as follows: (since 3.5.0)
getOrient() is vertical, "z-splitter-ver" is assumedgetOrient() is horizontal, "z-splitter-hor" is
assumed
| Field Summary |
|---|
| Fields inherited from interface org.zkoss.zk.ui.Component |
|---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
| 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. |
boolean |
isOpen()
Returns whether it is opne (i.e., not collapsed. |
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. |
| Methods inherited from interface org.zkoss.zul.impl.api.XulElement |
|---|
getAction, getContext, getCtrlKeys, getPopup, getTooltip, setAction, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip |
| Methods inherited from interface org.zkoss.zk.ui.api.HtmlBasedComponent |
|---|
focus, getHeight, getLeft, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZclass, getZindex, getZIndex, setDraggable, setDroppable, setFocus, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZclass, setZindex, setZIndex |
| Method Detail |
|---|
java.lang.String getOrient()
Box.getOrient().
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.
void setCollapse(java.lang.String collapse)
throws WrongValueException
collapse - one of none, before and after. If null or empty is specified,
none is assumed.
WrongValueExceptiongetCollapse()boolean isOpen()
getCollapse() is not "none".
void setOpen(boolean open)
getCollapse()
is not "none".
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||