|
||||||||||
| 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.impl.LabelElement
org.zkoss.zul.impl.LabelImageElement
org.zkoss.zul.Treecell
public class Treecell
A treecell.
In XUL, treecell cannot have any child, but ZUL allows it. Thus, you could place any kind of children in it. They will be placed right after the image and label.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.zkoss.zul.impl.LabelImageElement |
|---|
LabelImageElement.ExtraCtrl |
| 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 | |
|---|---|
Treecell()
|
|
Treecell(java.lang.String label)
|
|
Treecell(java.lang.String label,
java.lang.String src)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getColumnHtmlPostfix()
Returns the postfix of the first column (in HTML tags), null if this is not first column. |
java.lang.String |
getColumnHtmlPrefix()
Returns the prefix of the first column (in HTML tags), null if this is not first column. |
int |
getColumnIndex()
Returns the column index of this cell, starting from 0. |
int |
getLevel()
Returns the level this cell is. |
int |
getMaxlength()
Returns the maximal length for this cell, which is decided by the corresponding getTreecol()'s Treecol.getMaxlength(). |
java.lang.String |
getOuterAttrs()
|
int |
getSpan()
Returns number of columns to span this cell. |
Tree |
getTree()
Return the tree that owns this cell. |
Treecol |
getTreecol()
Returns the tree col associated with this cell, or null if not available. |
Treeitem |
getTreeitem()
Deprecated. |
java.lang.String |
getWidth()
Returns the width which the same as getTreecol()'s width. |
boolean |
isLastChild(Treeitem item)
Returns whether an item is the last child. |
void |
setParent(org.zkoss.zk.ui.Component parent)
|
void |
setSpan(int span)
Sets the number of columns to span this cell. |
void |
setWidth(java.lang.String width)
|
| Methods inherited from class org.zkoss.zul.impl.LabelImageElement |
|---|
getImage, getImageContent, getImgTag, getSrc, isImageAssigned, newExtraCtrl, setImage, setImageContent, setSrc |
| Methods inherited from class org.zkoss.zul.impl.LabelElement |
|---|
getLabel, setLabel |
| 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, getZIndex, isAsapRequired, removeEventListener, setClass, setDraggable, setDroppable, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, 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, isChildable, 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 Treecell()
public Treecell(java.lang.String label)
public Treecell(java.lang.String label,
java.lang.String src)
| Method Detail |
|---|
public Tree getTree()
public Treecol getTreecol()
public int getColumnIndex()
public int getMaxlength()
getTreecol()'s Treecol.getMaxlength().
public int getLevel()
public int getSpan()
public void setSpan(int span)
It is the same as the colspan attribute of HTML TD tag.
public java.lang.String getColumnHtmlPrefix()
Used only for component template, not for application developers.
public java.lang.String getColumnHtmlPostfix()
public boolean isLastChild(Treeitem item)
public Treeitem getTreeitem()
Treeitem.
Deprecated since 2.4.1, due to too confusing.
public java.lang.String getWidth()
getTreecol()'s width.
getWidth in class org.zkoss.zk.ui.HtmlBasedComponentpublic void setWidth(java.lang.String width)
setWidth in class org.zkoss.zk.ui.HtmlBasedComponentpublic 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.AbstractComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||