Package org.zkoss.zkmax.zul
Class Lineitem
java.lang.Object
org.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zul.impl.XulElement
org.zkoss.zkmax.zul.Lineitem
- All Implemented Interfaces:
Serializable,Cloneable,Component,Scope,ComponentCtrl
A lineitem.
Lineitem is the child of Linelayout, it can contain up to 2 components inside.
Default HtmlBasedComponent.getZclass(): z-lineitem
- Since:
- 9.0.0
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent
AbstractComponent.Children, AbstractComponent.ForwardInfo, AbstractComponent.TargetInfo -
Field Summary
Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent
_zclassFields inherited from interface org.zkoss.zk.ui.Component
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPEFields inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl
AFTER_CHILD_ADDED, AFTER_CHILD_REMOVED, AFTER_CLONED, AFTER_PAGE_ATTACHED, AFTER_PAGE_DETACHED, AFTER_PARENT_CHANGED, CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeChildAdded(Component child, Component refChild) Default: does nothing.voidbeforeParentChanged(Component parent) Default: If parent is null, execute the @Destroy method if any.Returns the spacing with the next lineitem.Returns the client control for this component.Returns the spacing with the previous lineitem.Returns the iconSclass name of this point.Returns the source content of the point image.Returns the source URI of the point image.Returns the CSS style for the point.booleanReturns whether the first child is displayed in the first area(left/top).booleanReturns whether the point is visible.protected voidrenderProperties(ContentRenderer renderer) Renders the content of this component, excluding the enclosing tags and children.voidsetBackSpace(String backSpace) Sets the spacing with the next lineitem.voidsetFrontSpace(String frontSpace) Sets the spacing with the previous lineitem.voidsetOpposite(boolean opposite) Sets whether the first child is displayed in the first area(left/top).voidsetPointIconSclass(String pointIconSclass) Sets the iconSclass name of the point.voidSets the pointImageContent directly with the rendered image.voidsetPointImageContent(Image image) Sets the pointImageContent directly.voidsetPointImageSrc(String src) Sets the source URI of the point image.voidsetPointStyle(String pointStyle) Sets the pointStyle.voidsetPointVisible(boolean pointVisible) Sets whether the point is visible.Methods inherited from class org.zkoss.zul.impl.XulElement
clone, getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributesMethods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
addSclass, evalCSSFlex, focus, getAction, getClientAction, getDraggable, getDroppable, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getSkeleton, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZindex, getZIndex, removeSclass, removeSclass, service, setAction, setClass, setClientAction, setDraggable, setDroppable, setFocus, setHeight, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setSkeleton, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectlyMethods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildRemoved, destroyIndexCacheMap, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, disableHostChanged, enableBindingAnnotation, enableHostChanged, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, 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, getForwards, getId, getIndexCacheMap, getLastChild, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getStubonlyDescendants, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, initIndexCacheMap, insertBefore, invalidate, isChildable, isDisabledHostChanged, isInitialized, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, onParentChanged, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, renderPropertiesOnly, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setStubonlyDescendants, setSubBindingAnnotationCount, setTemplate, setVisible, setVisibleDirectly, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
-
Constructor Details
-
Lineitem
public Lineitem()
-
-
Method Details
-
isPointVisible
public boolean isPointVisible()Returns whether the point is visible.Default: true.
-
setPointVisible
public void setPointVisible(boolean pointVisible) Sets whether the point is visible.- Parameters:
pointVisible- whether the point is visible.
-
getPointStyle
Returns the CSS style for the point. -
setPointStyle
Sets the pointStyle.- Parameters:
pointStyle- the CSS style for the point.
-
getPointImageSrc
Returns the source URI of the point image.Default: null.
-
setPointImageSrc
Sets the source URI of the point image.Calling this method implies setPointImageContent(null). In other words, the last invocation of
setPointImageSrc(java.lang.String)overrides the previoussetPointImageContent(org.zkoss.image.Image), if any.- Parameters:
src- the URI of the image source- See Also:
-
getPointImageContent
Returns the source content of the point image.Default: null.
- Since:
- 10.0.0
-
setPointImageContent
Sets the pointImageContent directly.Default: null.
Calling this method implies setPointImageSrc(null). In other words, the last invocation of
setPointImageContent(org.zkoss.image.Image)overrides the previoussetPointImageSrc(java.lang.String), if any.- Parameters:
image- the image to display.- See Also:
-
setPointImageContent
Sets the pointImageContent directly with the rendered image. It actually encodes the rendered image to an PNG image (Image) withImages.encode(java.lang.String, java.awt.image.RenderedImage, float, boolean), and then invokesetPointImageContent(org.zkoss.image.Image). -
getPointIconSclass
Returns the iconSclass name of this point. -
setPointIconSclass
Sets the iconSclass name of the point.- Parameters:
pointIconSclass- the iconSclass name.
-
isOpposite
public boolean isOpposite()Returns whether the first child is displayed in the first area(left/top).Default: false.
-
setOpposite
public void setOpposite(boolean opposite) Sets whether the first child is displayed in the first area(left/top).- Parameters:
opposite- whether the first child is displayed in the first area(left/top).
-
getFrontSpace
Returns the spacing with the previous lineitem. -
setFrontSpace
Sets the spacing with the previous lineitem.- Parameters:
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).
-
getBackSpace
Returns the spacing with the next lineitem. -
setBackSpace
Sets the spacing with the next lineitem.- Parameters:
backSpace- the spacing with the next lineitem. (such as "5px" or "5em"). If null or empty (""), the default spacing is used (i.e., controlled by CSS alone).
-
beforeParentChanged
Description copied from class:AbstractComponentDefault: If parent is null, execute the @Destroy method if any.- Specified by:
beforeParentChangedin interfaceComponentCtrl- Overrides:
beforeParentChangedin classAbstractComponent- Parameters:
parent- the new parent. If null, it means detachment.- See Also:
-
beforeChildAdded
Description copied from class:AbstractComponentDefault: does nothing.- Specified by:
beforeChildAddedin interfaceComponentCtrl- Overrides:
beforeChildAddedin classAbstractComponent- Parameters:
child- 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.- See Also:
-
renderProperties
Description copied from class:HtmlBasedComponentRenders the content of this component, excluding the enclosing tags and children.- Overrides:
renderPropertiesin classXulElement- Throws:
IOException
-
getExtraCtrl
Description copied from class:HtmlBasedComponentReturns the client control for this component. It is used only by component developers.Default: creates an instance of
HtmlBasedComponent.ExtraCtrl.- Specified by:
getExtraCtrlin interfaceComponentCtrl- Overrides:
getExtraCtrlin classHtmlBasedComponent- Returns:
- null if no special handling required. If the component
requires some special controls, it could return an object that
implements one or several interfaces in the org.zkoss.zk.ui.ext.render
package.
For example,
Cropper. - See Also:
-