|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectzk.Object
zk.Widget
zul.Widget
zul.sel.ItemWidget
zul.sel.Treeitem
public class Treeitem
A treeitem.
Event:
Field Summary |
---|
Fields inherited from class zk.Widget |
---|
$weave, auDelay, autag, bindLevel, className, desktop, effects_, firstChild, id, insertingBefore_, inServer, lastChild, nChildren, nextSibling, parent, previousSibling, uuid, widgetName |
Fields inherited from class zk.Object |
---|
$class, $oid |
Method Summary | |
---|---|
Treecell |
getFirstCell()
Returns the first treecell. |
String |
getImage()
Returns the image of the Treecell it contains. |
String |
getLabel()
Returns the label of the Treecell it contains, or null
if no such cell. |
int |
getLevel()
Returns the level this cell is. |
Tree |
getMeshWidget()
Returns the mesh widget. i.e. |
Treeitem |
getParentItem()
Returns the parent tree item, or null if this item is already the top level of the tree. |
Tree |
getTree()
Returns the Tree . |
boolean |
isContainer()
Returns whether the element is to act as a container which can have child elements. |
boolean |
isEmpty()
Returns whether this element contains no child elements. |
boolean |
isOpen()
Returns whether this container is open. |
Treeitem |
setImage(String image)
Sets the image of the Treecell it contains. |
void |
setLabel(String label)
Sets the label of the Treecell it contains. |
void |
setOpen(boolean open)
Sets whether this container is open. |
Methods inherited from class zul.sel.ItemWidget |
---|
getValue, isCheckable, isDisabled, isSelected, isStripeable_, setCheckable, setDisabled, setSelected, setValue |
Methods inherited from class zul.Widget |
---|
afterKeyDown_, beforeCtrlKeys_, getContext, getCtrlKeys, getOpenTooltip, getPopup, getTooltip, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip |
Methods inherited from class zk.Object |
---|
$init, $instanceof, $super, $super, $supers, $supers, afterInit, isAssignableFrom, isInstance, proxy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void setOpen(boolean open)
open
- public boolean isOpen()
Default: true.
public boolean isContainer()
public boolean isEmpty()
public int getLevel()
public String getLabel()
Treecell
it contains, or null
if no such cell.
getLabel
in class ItemWidget
public void setLabel(String label)
Treecell
it contains.
If it is not created, we automatically create it.
label
- public Treecell getFirstCell()
public String getImage()
Treecell
it contains.
public Treeitem setImage(String image)
Treecell
it contains.
If it is not created, we automatically create it.
image
-
public Treeitem getParentItem()
public Tree getMeshWidget()
Tree
getMeshWidget
in class ItemWidget
public Tree getTree()
Tree
.
getMeshWidget()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |