|
||||||||||
| 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 | |
|---|---|
void |
beforeChildAdded(Component child,
Component refChild)
Default: does nothing. |
void |
beforeParentChanged(Component parent)
Default: does nothing. |
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. |
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 |
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 |
| 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 beforeParentChanged(Component parent)
AbstractComponent
beforeParentChanged in interface ComponentCtrlbeforeParentChanged in class AbstractComponentparent - the new parent. If null, it means detachment.ComponentCtrl.beforeParentChanged(org.zkoss.zk.ui.Component)
public void beforeChildAdded(Component child,
Component refChild)
AbstractComponent
beforeChildAdded in interface ComponentCtrlbeforeChildAdded in class AbstractComponentchild - the child to be added (never null).refChild - another child component that the new child
will be inserted before it. If null, the new child will be the
last child.ComponentCtrl.beforeChildAdded(org.zkoss.zk.ui.Component, org.zkoss.zk.ui.Component)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||