| org.zkoss.zul.impl.XulElement org.zkoss.zul.Splitter
Splitter | public class Splitter extends XulElement (Code) | | 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
Splitter.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
Splitter.getSclass : splitter.
author: tomyeh |
Splitter | public Splitter()(Code) | | |
getCollapse | public String getCollapse()(Code) | | Returns which side of the splitter is collapsed when its grippy
is clicked. If this attribute is not specified, the splitter will
not cause a collapse.
If it is collapsed,
Splitter.isOpen returns false.
Default: none.
The returned value can be one ofthe following.
- none
- No collpasing occurs.
- before
- When the grippy is clicked, the element immediately
before the splitter in the same parent is collapsed so that
its width or height is 0.
- after
- When the grippy is clicked, the element immediately
after the splitter in the same parent is collapsed so that
its width or height is 0.
Unlike XUL, you don't have to put a so-called grippy component
as a child of the spiltter.
|
getOrient | public String getOrient()(Code) | | Returns the orientation of the splitter.
It is the same as the parent's orientation (
Box.getOrient .
|
isChildable | public boolean isChildable()(Code) | | Not allow any children.
|
isOpen | public boolean isOpen()(Code) | | Returns whether it is opne (i.e., not collapsed.
Meaningful only if
Splitter.getCollapse is not "none".
|
setCollapse | public void setCollapse(String collapse) throws WrongValueException(Code) | | Sets which side of the splitter is collapsed when its grippy
is clicked. If this attribute is not specified, the splitter will
not cause a collapse.
Parameters: collapse - one of none, before and after.If null or empty is specified, none is assumed. See Also: Splitter.getCollapse |
setOpen | public void setOpen(boolean open)(Code) | | Opens or collapses the splitter.
Meaningful only if
Splitter.getCollapse is not "none".
|
|
|