|
||||||||||
| 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.Treerow
public class Treerow
A treerow.
Default getZclass(): z-tree-row.(since 3.5.0)
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
HtmlBasedComponent.ExtraCtrl |
| Nested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent |
|---|
AbstractComponent.Children |
| Field Summary |
|---|
| Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
_zclass, RS_NO_DISPLAY, RS_NO_HEIGHT, RS_NO_WIDTH |
| Fields inherited from class org.zkoss.zk.ui.AbstractComponent |
|---|
_visible |
| 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 | |
|---|---|
Treerow()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getContext()
Returns the same as XulElement.getContext(). |
int |
getLevel()
Returns the level this cell is. |
Treechildren |
getLinkedTreechildren()
Returns the Treechildren associated with this
Treerow. |
Treechildren |
getLinkedTreechildrenApi()
Returns the Treechildren associated with this
Treerow. |
java.lang.String |
getOuterAttrs()
Appends attributes for generating the real checkbox HTML tags (name="val"); Used only by component developers. |
java.lang.String |
getPopup()
Returns the same as XulElement.getPopup(). |
protected java.lang.String |
getRealSclass()
Returns the real style class that will be generated to the client (when HtmlBasedComponent.getOuterAttrs() is called). |
java.lang.String |
getTooltip()
Returns the same as XulElement.getTooltip(). |
java.lang.String |
getTooltiptext()
Returns the same as HtmlBasedComponent.getTooltiptext() |
Tree |
getTree()
Returns the Tree instance containing this element. |
Tree |
getTreeApi()
Returns the Tree instance containing this element. |
java.lang.String |
getZclass()
Returns the ZK Cascading Style class(es) for this component. |
boolean |
insertBefore(Component child,
Component insertBefore)
Inserts a child before the reference child. |
protected boolean |
isAsapRequired(java.lang.String evtnm)
Returns if any non-deferrable (ASAP) event listener is registered for the specified event. |
boolean |
isVisible()
Returns whether this is visible. |
void |
setContext(java.lang.String context)
Alwasys throws UnsupportedOperationException since developers shall use XulElement.setContext(java.lang.String) instead. |
void |
setParent(Component parent)
Sets the parent component. |
void |
setPopup(java.lang.String popup)
Alwasys throws UnsupportedOperationException since developers shall use XulElement.setPopup(java.lang.String) instead. |
void |
setTooltip(java.lang.String tooltip)
Alwasys throws UnsupportedOperationException since developers shall use XulElement.setTooltip(java.lang.String) instead. |
boolean |
setVisible(boolean visible)
Sets whether this component is visible. |
| Methods inherited from class org.zkoss.zul.impl.XulElement |
|---|
getAction, getActionAttrs, getAllOnClickAttrs, getCtrlKeys, getInnerAttrs, setAction, setContext, setCtrlKeys, setPopup, setTooltip |
| Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
focus, getAllOnClickAttrs, getDraggable, getDroppable, getHeight, getLeft, getMoldSclass, getRealStyle, getRealStyleFlags, getSclass, getStyle, getTop, getWidth, getZindex, getZIndex, newExtraCtrl, redraw, setClass, setDraggable, setDroppable, setFocus, setHeight, setLeft, setMoldSclass, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZclass, setZindex, setZIndex |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.zkoss.zul.impl.api.XulElement |
|---|
getAction, getCtrlKeys, setAction, setContext, setCtrlKeys, setPopup, setTooltip |
| Methods inherited from interface org.zkoss.zk.ui.api.HtmlBasedComponent |
|---|
focus, getHeight, getLeft, getSclass, getStyle, getTop, getWidth, getZindex, getZIndex, setDraggable, setDroppable, setFocus, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZclass, setZindex, setZIndex |
| Methods inherited from interface org.zkoss.zk.ui.Component |
|---|
addEventListener, addForward, addForward, addForward, addForward, appendChild, applyProperties, clone, containsVariable, detach, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getDefinition, getDesktop, getFellow, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getSpaceOwner, getUuid, getVariable, invalidate, isChildable, isInvalidated, isListenerAvailable, redraw, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, setAttribute, setAttribute, setId, setMold, setPage, setPageBefore, setVariable, unsetVariable |
| Constructor Detail |
|---|
public Treerow()
| Method Detail |
|---|
public Tree getTree()
Tree instance containing this element.
public Tree getTreeApi()
Tree instance containing this element.
getTreeApi in interface Treerowpublic int getLevel()
getLevel in interface Treerowpublic Treechildren getLinkedTreechildren()
Treechildren associated with this
Treerow.
In other words, it is Treeitem.getTreechildren() of
AbstractComponent.getParent().
Treechildren.getLinkedTreerow()public Treechildren getLinkedTreechildrenApi()
Treechildren associated with this
Treerow.
In other words, it is Treeitem.getTreechildren() of
AbstractComponent.getParent().
getLinkedTreechildrenApi in interface TreerowTreechildren.getLinkedTreerow()protected java.lang.String getRealSclass()
HtmlBasedComponentHtmlBasedComponent.getOuterAttrs() is called).
Default: it simply returns the catenation of HtmlBasedComponent.getSclass()
and HtmlBasedComponent.getZclass() (since 3.5.0).
Derived classes might override it to provide, say, dual style classes. For example,
final String sclass = getSclass();
return sclass != null ? sclass + " my-addon": "myaddon";
getRealSclass in class HtmlBasedComponentHtmlBasedComponent.getZclass()public java.lang.String getZclass()
HtmlBasedComponentDefault: null (the default value depends on element).
HtmlBasedComponent.setZclass(java.lang.String)) will completely replace the default style
of a component. In other words, the default style of a component
is associated with the default value of HtmlBasedComponent.getZclass().
Once it is changed, the default style won't be applied at all.
If you want to perform small adjustments, use HtmlBasedComponent.setSclass(java.lang.String)
instead.
getZclass in interface HtmlBasedComponentgetZclass in class HtmlBasedComponentHtmlBasedComponent.getSclass(),
HtmlBasedComponent.getRealSclass()public void setContext(java.lang.String context)
XulElement.setContext(java.lang.String) instead.
setContext in interface XulElementsetContext in class XulElementXulElement.setContext(Popup)public void setPopup(java.lang.String popup)
XulElement.setPopup(java.lang.String) instead.
setPopup in interface XulElementsetPopup in class XulElementXulElement.setPopup(Popup)public void setTooltip(java.lang.String tooltip)
XulElement.setTooltip(java.lang.String) instead.
setTooltip in interface XulElementsetTooltip in class XulElementXulElement.setTooltip(Popup)public java.lang.String getContext()
XulElement.getContext().
getContext in interface XulElementgetContext in class XulElementpublic java.lang.String getPopup()
XulElement.getPopup().
getPopup in interface XulElementgetPopup in class XulElementpublic java.lang.String getTooltip()
XulElement.getTooltip().
getTooltip in interface XulElementgetTooltip in class XulElementpublic java.lang.String getTooltiptext()
HtmlBasedComponent.getTooltiptext()
getTooltiptext in interface HtmlBasedComponentgetTooltiptext in class HtmlBasedComponentprotected boolean isAsapRequired(java.lang.String evtnm)
AbstractComponentDefault: return true if any non-deferable event listener of
the specified event is found. In other words, it returns
Events.isListened(org.zkoss.zk.ui.Component, java.lang.String, boolean) with asap = true.
This method is moved from HtmlBasedComponent to
AbstractComponent since 3.0.0.
isAsapRequired in class AbstractComponentevtnm - the event name, such as onClickpublic java.lang.String getOuterAttrs()
getOuterAttrs in class XulElementpublic boolean isVisible()
isVisible in interface ComponentisVisible in class AbstractComponentComponents.isRealVisible(org.zkoss.zk.ui.Component)public boolean setVisible(boolean visible)
Component
setVisible in interface ComponentsetVisible in class AbstractComponentpublic void setParent(Component parent)
ComponentNote: Component.setParent(org.zkoss.zk.ui.Component) always calls back Component.insertBefore(org.zkoss.zk.ui.Component, org.zkoss.zk.ui.Component)
and/or Component.removeChild(org.zkoss.zk.ui.Component),
while Component.insertBefore(org.zkoss.zk.ui.Component, org.zkoss.zk.ui.Component) and Component.removeChild(org.zkoss.zk.ui.Component)
always calls back Component.setParent(org.zkoss.zk.ui.Component),
if the parent is changed. Thus, you don't need to override
both Component.insertBefore(org.zkoss.zk.ui.Component, org.zkoss.zk.ui.Component) and Component.setParent(org.zkoss.zk.ui.Component), if you want
to customize the behavior.
setParent in interface ComponentsetParent in class AbstractComponent
public boolean insertBefore(Component child,
Component insertBefore)
ComponentYou could use Component.setParent(org.zkoss.zk.ui.Component) or Component.appendChild(org.zkoss.zk.ui.Component)
instead of this method, unless
you want to control where to put the child.
Note: Component.setParent(org.zkoss.zk.ui.Component) always calls back Component.insertBefore(org.zkoss.zk.ui.Component, org.zkoss.zk.ui.Component)
and/or Component.removeChild(org.zkoss.zk.ui.Component),
while Component.insertBefore(org.zkoss.zk.ui.Component, org.zkoss.zk.ui.Component) and Component.removeChild(org.zkoss.zk.ui.Component)
always calls back Component.setParent(org.zkoss.zk.ui.Component),
if the parent is changed. Thus, you don't need to override
both Component.insertBefore(org.zkoss.zk.ui.Component, org.zkoss.zk.ui.Component) and Component.setParent(org.zkoss.zk.ui.Component), if you want
to customize the behavior.
insertBefore in interface ComponentinsertBefore in class AbstractComponentchild - the new child to be inserted.insertBefore - the child before which you want the new child
being inserted. If null, the new child is append to the end.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||