public class Linelayout
extends org.zkoss.zul.impl.XulElement
Only works for browsers supporting CSS flexbox (IE11+, Edge, Chrome, Firefox, Safari).
Default getZclass(): z-linelayout.
| Constructor and Description |
|---|
Linelayout() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeChildAdded(org.zkoss.zk.ui.Component child,
org.zkoss.zk.ui.Component insertBefore) |
int |
getFirstScale()
Returns the scale of space occupied by the first area.
|
LineitemRenderer<?> |
getItemRenderer()
Returns the renderer to render each item, or null if the default
renderer is used.
|
int |
getLastScale()
Returns the scale of space occupied by the last area.
|
LineitemRenderer<?> |
getLineitemRenderer()
Returns the renderer to render each item, or null if the default renderer
is used.
|
String |
getLineStyle()
Returns the CSS style for the line.
|
org.zkoss.zul.ListModel<?> |
getModel()
Returns the model associated with this linelayout, or null
if this linelayout is not associated with any list data model.
|
String |
getOrient()
Returns the orient.
|
String |
getZclass() |
void |
onInitRender()
Handles a private event, onInitRender.
|
protected void |
renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) |
void |
setFirstScale(int firstScale)
Sets the scale of space occupied by the first area.
|
void |
setItemRenderer(LineitemRenderer<?> renderer)
Sets the renderer which is used to render each item
if
getModel() is not null. |
void |
setLastScale(int lastScale)
Sets the scale of space occupied by the last area.
|
void |
setLineitemRenderer(LineitemRenderer renderer)
Sets the renderer which is used to render each item
if
getModel() is not null. |
void |
setLineStyle(String lineStyle)
Sets the CSS style for the line.
|
void |
setModel(org.zkoss.zul.ListModel<?> model)
Sets the list model associated with this linelayout.
|
void |
setOrient(String orient)
Sets the orient.
|
clone, getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributesaddSclass, evalCSSFlex, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, 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, beforeParentChanged, 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 String getOrient()
Default: "vertical".
public void setOrient(String orient)
orient - either horizontal or verticalpublic String getLineStyle()
public void setLineStyle(String lineStyle)
lineStyle - the CSS style for the line.public int getFirstScale()
Default: 1.
public void setFirstScale(int firstScale)
firstScale - the scale of space occupied by the first area.public int getLastScale()
Default: 1.
public void setLastScale(int lastScale)
lastScale - the scale of space occupied by the last area.public void beforeChildAdded(org.zkoss.zk.ui.Component child,
org.zkoss.zk.ui.Component insertBefore)
beforeChildAdded in interface org.zkoss.zk.ui.sys.ComponentCtrlbeforeChildAdded in class org.zkoss.zk.ui.AbstractComponentpublic LineitemRenderer<?> getLineitemRenderer()
public void setLineitemRenderer(LineitemRenderer renderer)
getModel() is not null.renderer - the renderer, or null to use the default.public org.zkoss.zul.ListModel<?> getModel()
public void setModel(org.zkoss.zul.ListModel<?> model)
model - the list model to associate, or null to dissociate
any previous model.public void onInitRender()
protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer)
throws IOException
renderProperties in class org.zkoss.zul.impl.XulElementIOExceptionpublic String getZclass()
getZclass in class org.zkoss.zk.ui.HtmlBasedComponentpublic LineitemRenderer<?> getItemRenderer()
public void setItemRenderer(LineitemRenderer<?> renderer)
getModel() is not null.
Note: changing a render will cause the linelayout to re-render.
renderer - the renderer, or null to use the default.Copyright © 2026. All rights reserved.