public class Lineitem
extends org.zkoss.zul.impl.XulElement
Lineitem is the child of Linelayout, it can contain up to 2 components inside.
Default HtmlBasedComponent.getZclass(): z-lineitem
| Modifier and Type | Class and Description |
|---|---|
protected class |
Lineitem.ExtraCtrl |
| Constructor and Description |
|---|
Lineitem() |
| 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 |
getBackSpace()
Returns the spacing with the next lineitem.
|
Object |
getExtraCtrl() |
String |
getFrontSpace()
Returns the spacing with the previous lineitem.
|
String |
getPointIconSclass()
Returns the iconSclass name of this point.
|
String |
getPointImageSrc()
Returns the source URI of the point image.
|
String |
getPointStyle()
Returns the CSS style for the point.
|
boolean |
isOpposite()
Returns whether the first child is displayed in the first area(left/top).
|
boolean |
isPointVisible()
Returns whether the point is visible.
|
protected void |
renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) |
void |
setBackSpace(String backSpace)
Sets the spacing with the next lineitem.
|
void |
setFrontSpace(String frontSpace)
Sets the spacing with the previous lineitem.
|
void |
setOpposite(boolean opposite)
Sets whether the first child is displayed in the first area(left/top).
|
void |
setPointIconSclass(String pointIconSclass)
Sets the iconSclass name of the point.
|
void |
setPointImageContent(org.zkoss.image.Image image)
Sets the pointImageContent directly.
|
void |
setPointImageContent(RenderedImage image)
Sets the pointImageContent directly with the rendered image.
|
void |
setPointImageSrc(String src)
Sets the source URI of the point image.
|
void |
setPointStyle(String pointStyle)
Sets the pointStyle.
|
void |
setPointVisible(boolean pointVisible)
Sets whether the point is visible.
|
clone, getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributesaddSclass, evalCSSFlex, focus, getAction, getDraggable, getDroppable, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZindex, getZIndex, removeSclass, removeSclass, service, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectlyaddAnnotation, 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, 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, invalidatePartial, isChildable, isInitialized, 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, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerializepublic boolean isPointVisible()
Default: true.
public void setPointVisible(boolean pointVisible)
pointVisible - whether the point is visible.public String getPointStyle()
public void setPointStyle(String pointStyle)
pointStyle - the CSS style for the point.public String getPointImageSrc()
Default: null.
public void setPointImageSrc(String src)
Calling this method implies setPointImageContent(null).
In other words, the last invocation of setPointImageSrc(java.lang.String) overrides
the previous setPointImageContent(org.zkoss.image.Image), if any.
src - the URI of the image sourcesetPointImageContent(org.zkoss.image.Image),
setPointImageContent(RenderedImage)public void setPointImageContent(org.zkoss.image.Image image)
Default: null.
Calling this method implies setPointImageSrc(null).
In other words, the last invocation of setPointImageContent(org.zkoss.image.Image) overrides
the previous setPointImageSrc(java.lang.String), if any.
image - the image to display.setPointImageSrc(java.lang.String)public void setPointImageContent(RenderedImage image)
Image) with Images.encode(java.lang.String, java.awt.image.RenderedImage, float, boolean),
and then invoke setPointImageContent(org.zkoss.image.Image).public String getPointIconSclass()
public void setPointIconSclass(String pointIconSclass)
pointIconSclass - the iconSclass name.public boolean isOpposite()
Default: false.
public void setOpposite(boolean opposite)
opposite - whether the first child is displayed in the first area(left/top).public String getFrontSpace()
public void setFrontSpace(String frontSpace)
frontSpace - the spacing with the previous lineitem. (such as "5px" or "5em").
If null or empty (""), the default spacing is used (i.e.,
controlled by CSS alone).public String getBackSpace()
public void setBackSpace(String backSpace)
backSpace - the spacing with the previous lineitem. (such as "5px" or "5em").
If null or empty (""), the default spacing is used (i.e.,
controlled by CSS alone).public void beforeParentChanged(org.zkoss.zk.ui.Component parent)
beforeParentChanged in interface org.zkoss.zk.ui.sys.ComponentCtrlbeforeParentChanged in class org.zkoss.zk.ui.AbstractComponentpublic void beforeChildAdded(org.zkoss.zk.ui.Component child,
org.zkoss.zk.ui.Component refChild)
beforeChildAdded in interface org.zkoss.zk.ui.sys.ComponentCtrlbeforeChildAdded in class org.zkoss.zk.ui.AbstractComponentprotected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer)
throws IOException
renderProperties in class org.zkoss.zul.impl.XulElementIOExceptionpublic Object getExtraCtrl()
getExtraCtrl in interface org.zkoss.zk.ui.sys.ComponentCtrlgetExtraCtrl in class org.zkoss.zk.ui.HtmlBasedComponentCopyright © 2026. All rights reserved.