public class Treerow extends XulElement
Default getZclass()
: z-treerow (since 5.0.0)
AFTER_PAGE_ATTACHED, AFTER_PAGE_DETACHED
Constructor and Description |
---|
Treerow() |
Treerow(String label)
Instantiates a treerow with a treecel holding the given label.
|
Modifier and Type | Method and Description |
---|---|
void |
beforeChildAdded(org.zkoss.zk.ui.Component child,
org.zkoss.zk.ui.Component refChild) |
void |
beforeParentChanged(org.zkoss.zk.ui.Component parent) |
String |
getImage()
Returns the image of the
Treecell it contains, or null
if no such cell. |
String |
getLabel()
Returns the label of the
Treecell it contains, or null
if no such cell. |
int |
getLevel()
Returns the level this cell is.
|
Treechildren |
getLinkedTreechildren()
Returns the
Treechildren associated with this
Treerow . |
Tree |
getTree()
Returns the
Tree instance containing this element. |
String |
getZclass() |
void |
setHflex(String flex)
|
void |
setImage(String image)
Sets the image of the
Treecell it contains. |
void |
setLabel(String label)
Sets the label of the
Treecell it contains. |
void |
setWidth(String width)
|
void |
smartUpdate(String attr,
Object value) |
clone, getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, renderProperties, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributes
focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, service, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeight0, setHeightDirectly, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectly
addAnnotation, addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildRemoved, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, insertBefore, invalidate, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
public Treerow()
public Treerow(String label)
public int getLevel()
public Treechildren getLinkedTreechildren()
Treechildren
associated with this
Treerow
.
In other words, it is Treeitem.getTreechildren()
of
AbstractComponent.getParent()
.Treechildren.getLinkedTreerow()
public String getLabel()
Treecell
it contains, or null
if no such cell.public void setLabel(String label)
Treecell
it contains.
If treecell are not created, we automatically create it.
Notice that this method will create a treecell automatically if they don't exist.
public String getImage()
Treecell
it contains, or null
if no such cell.public void setImage(String image)
Treecell
it contains.
If treecell are not created, we automatically create it.
Notice that this method will create a treerow and treecell automatically if they don't exist.
public void setWidth(String width)
Tree
and Treecol
instead.setWidth
in class org.zkoss.zk.ui.HtmlBasedComponent
public void setHflex(String flex)
Tree
and Treecol
instead.setHflex
in class org.zkoss.zk.ui.HtmlBasedComponent
public String getZclass()
getZclass
in class org.zkoss.zk.ui.HtmlBasedComponent
public void smartUpdate(String attr, Object value)
smartUpdate
in class org.zkoss.zk.ui.AbstractComponent
public void beforeParentChanged(org.zkoss.zk.ui.Component parent)
beforeParentChanged
in interface org.zkoss.zk.ui.sys.ComponentCtrl
beforeParentChanged
in class org.zkoss.zk.ui.AbstractComponent
public void beforeChildAdded(org.zkoss.zk.ui.Component child, org.zkoss.zk.ui.Component refChild)
beforeChildAdded
in interface org.zkoss.zk.ui.sys.ComponentCtrl
beforeChildAdded
in class org.zkoss.zk.ui.AbstractComponent
Copyright © 2017. All rights reserved.