public class Linelayout extends XulElement
Only works for browsers supporting CSS flexbox (IE11+, Edge, Chrome, Firefox, Safari).
Default getZclass()
: z-linelayout.
HtmlBasedComponent.ExtraCtrl
AbstractComponent.Children
_zclass
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE
AFTER_CHILD_ADDED, AFTER_CHILD_REMOVED, AFTER_PAGE_ATTACHED, AFTER_PAGE_DETACHED, CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE
Constructor and Description |
---|
Linelayout() |
Modifier and Type | Method and Description |
---|---|
void |
beforeChildAdded(Component child,
Component insertBefore)
Default: does nothing.
|
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.
|
java.lang.String |
getLineStyle()
Returns the CSS style for the line.
|
ListModel<?> |
getModel()
Returns the model associated with this linelayout, or null
if this linelayout is not associated with any list data model.
|
java.lang.String |
getOrient()
Returns the orient.
|
java.lang.String |
getZclass()
Returns the ZK Cascading Style class(es) for this component.
|
void |
onInitRender()
Handles a private event, onInitRender.
|
protected void |
renderProperties(ContentRenderer renderer)
Renders the content of this component, excluding the enclosing
tags and children.
|
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(java.lang.String lineStyle)
Sets the CSS style for the line.
|
void |
setModel(ListModel<?> model)
Sets the list model associated with this linelayout.
|
void |
setOrient(java.lang.String orient)
Sets the orient.
|
clone, getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributes
addSclass, 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, setZIndexDirectly
addAnnotation, 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, willSerialize
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
invalidatePartial
public java.lang.String getOrient()
Default: "vertical".
public void setOrient(java.lang.String orient)
orient
- either horizontal or verticalpublic java.lang.String getLineStyle()
public void setLineStyle(java.lang.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(Component child, Component insertBefore)
AbstractComponent
beforeChildAdded
in interface ComponentCtrl
beforeChildAdded
in class AbstractComponent
child
- the child to be added (never null).insertBefore
- 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)
public LineitemRenderer<?> getLineitemRenderer()
public void setLineitemRenderer(LineitemRenderer renderer)
getModel()
is not null.renderer
- the renderer, or null to use the default.public ListModel<?> getModel()
public void setModel(ListModel<?> model)
model
- the list model to associate, or null to dissociate
any previous model.public void onInitRender()
protected void renderProperties(ContentRenderer renderer) throws java.io.IOException
HtmlBasedComponent
renderProperties
in class XulElement
java.io.IOException
public java.lang.String getZclass()
HtmlBasedComponent
AbstractComponent.getMold()
).
Default: 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 class HtmlBasedComponent
HtmlBasedComponent.getSclass()
public 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 © 2005-2021 Potix Corporation. All Rights Reserved.