|
||||||||||
| 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.Treeitem
public class Treeitem
A treeitem.
Event:
| Nested Class Summary | |
|---|---|
protected class |
Treeitem.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 | |
|---|---|
Treeitem()
|
|
Treeitem(java.lang.String label)
|
|
Treeitem(java.lang.String label,
java.lang.Object value)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
protected java.lang.String |
getAllOnClickAttrs(boolean ignoreOnClick)
Returns the attributes for onClick, onRightClick and onDoubleClick by checking whether the corresponding listeners are added, or null if none is added. |
java.lang.String |
getImage()
Returns the image of the Treecell it contains. |
java.lang.String |
getLabel()
Returns the label of the Treecell it contains, or null
if no such cell. |
int |
getLevel()
Returns the level this cell is. |
java.lang.String |
getSrc()
Returns the src of the Treecell it contains, or null
if no such cell. |
Tree |
getTree()
Returns the tree owning this item. |
Treechildren |
getTreechildren()
Returns the treechildren that this tree item owns, or null if doesn't have any child. |
Treeitem |
getTreeitem()
Deprecated. |
Treerow |
getTreerow()
Returns the treerow that this tree item owns (might null). |
java.lang.Object |
getValue()
Returns the value. |
boolean |
insertBefore(org.zkoss.zk.ui.Component child,
org.zkoss.zk.ui.Component insertBefore)
|
void |
invalidate()
|
protected boolean |
isAsapRequired(java.lang.String evtnm)
|
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. |
boolean |
isSelected()
Returns whether this item is selected. |
protected java.lang.Object |
newExtraCtrl()
|
void |
onChildRemoved(org.zkoss.zk.ui.Component child)
|
void |
setImage(java.lang.String image)
Sets the image of the Treecell it contains. |
void |
setLabel(java.lang.String label)
Sets the label of the Treecell it contains. |
void |
setOpen(boolean open)
Sets whether this container is open. |
void |
setParent(org.zkoss.zk.ui.Component parent)
|
void |
setSelected(boolean selected)
Returns whether this item is selected. |
void |
setSrc(java.lang.String src)
Sets the src of the Treecell it contains. |
void |
setValue(java.lang.Object value)
Sets the value. |
void |
smartUpdate(java.lang.String attr,
java.lang.String value)
|
| Methods inherited from class org.zkoss.zul.impl.XulElement |
|---|
getAction, getContext, getInnerAttrs, getOuterAttrs, 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, 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, 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, isChildable, isListenerAvailable, isVisible, onChildAdded, onDrawNewChild, onWrongValue, redraw, removeAttribute, removeAttribute, removeChild, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setComponentDefinition, setId, setMold, setPage, setVariable, setVisible, smartUpdate, smartUpdate, toString, unsetVariable |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Treeitem()
public Treeitem(java.lang.String label)
public Treeitem(java.lang.String label,
java.lang.Object value)
| Method Detail |
|---|
public Treerow getTreerow()
public Treechildren getTreechildren()
public boolean isContainer()
public boolean isEmpty()
public java.lang.Object getValue()
Default: null.
Note: the value is not sent to the browser, so it is OK to be anything.
public void setValue(java.lang.Object value)
value - the value.
Note: the value is not sent to the browser, so it is OK to be
anything.public boolean isOpen()
Default: true.
public void setOpen(boolean open)
public boolean isSelected()
public void setSelected(boolean selected)
public int getLevel()
public java.lang.String getLabel()
Treecell it contains, or null
if no such cell.
public void setLabel(java.lang.String label)
Treecell it contains.
If it is not created, we automatically create it.
public java.lang.String getSrc()
Treecell it contains, or null
if no such cell.
public void setSrc(java.lang.String src)
Treecell it contains.
If it is not created, we automatically create it.
The same as setImage(java.lang.String).
public java.lang.String getImage()
Treecell it contains.
The same as getImage().
public void setImage(java.lang.String image)
Treecell it contains.
If it is not created, we automatically create it.
The same as setSrc(java.lang.String).
public Treeitem getTreeitem()
Treeitem, if any, or null if it is
the top-level Treeitem. By top-level we mean the first level of
a Tree.
Deprecated since 2.4.1, due to too confusing.
public Tree getTree()
protected java.lang.String getAllOnClickAttrs(boolean ignoreOnClick)
Implementation Note: it is declared here to make it accessible by
Treerow.
getAllOnClickAttrs in class XulElementignoreOnClick - whether to ignore onClickprotected boolean isAsapRequired(java.lang.String evtnm)
isAsapRequired in class org.zkoss.zk.ui.HtmlBasedComponent
public void smartUpdate(java.lang.String attr,
java.lang.String value)
smartUpdate in interface org.zkoss.zk.ui.ComponentsmartUpdate in class org.zkoss.zk.ui.AbstractComponentpublic void setParent(org.zkoss.zk.ui.Component parent)
setParent in interface org.zkoss.zk.ui.ComponentsetParent in class org.zkoss.zk.ui.AbstractComponent
public boolean insertBefore(org.zkoss.zk.ui.Component child,
org.zkoss.zk.ui.Component insertBefore)
insertBefore in interface org.zkoss.zk.ui.ComponentinsertBefore in class org.zkoss.zk.ui.AbstractComponentpublic void onChildRemoved(org.zkoss.zk.ui.Component child)
onChildRemoved in interface org.zkoss.zk.ui.ComponentonChildRemoved in class org.zkoss.zk.ui.AbstractComponentpublic void invalidate()
invalidate in interface org.zkoss.zk.ui.Componentinvalidate in class org.zkoss.zk.ui.AbstractComponentpublic java.lang.Object clone()
clone in interface org.zkoss.zk.ui.Componentclone 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 | |||||||||