Interface ILineitem<I extends IAnyGroup>
- All Superinterfaces:
IAnyGroup<ILineitem<I>>,IChildable<ILineitem<I>,,I> IComponent<ILineitem<I>>,IHtmlBasedComponent<ILineitem<I>>,IXulElement<ILineitem<I>>
Lineitem component
Lineitem is the child of Linelayout, it can contain up to 2 components inside.
- Author:
- katherine
- See Also:
-
Lineitem
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classILineitem.Builder<I extends IAnyGroup>Builds instances of typeILineitem.static classBuilds an updater of typeILineitemforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns the spacing with the next lineitem.Returns the spacing with the previous lineitem.Returns the iconSclass name of this point.org.zkoss.image.ImageReturns the content set bywithPointImageContent(org.zkoss.image.Image).Returns the source URI of the point image.Returns the CSS style for the point.default StringReturns the client widget class.default booleanReturns whether the first child is displayed in the first area(left/top).default booleanReturns whether the point is visible.of(I... children) Returns the instance with the given any group children (only up to two children).Returns the instance with the given any group children (only up to two children).Returns the instance with the given id.ofPointIconSclass(String pointIconSclass) Returns the instance with the given pointIconSclass.ofPointImageSrc(String src) Returns the instance with the given pointImageSrc.withBackSpace(String backSpace) Returns a copy ofthisimmutable component with the specifiedbackSpace.withFrontSpace(String frontSpace) Returns a copy ofthisimmutable component with the specifiedfrontSpace.withOpposite(boolean opposite) Returns a copy ofthisimmutable component with the specifiedopposite.withPointIconSclass(String pointIconSclass) Returns a copy ofthisimmutable component with the specifiedpointIconSclass.Returns a copy ofthisimmutable component with the specifiedimage.withPointImageContent(org.zkoss.image.Image pointImageContent) Returns a copy ofthisimmutable component with the specifiedpointImageContent.withPointImageSrc(String pointImageSrc) Returns a copy ofthisimmutable component with the specifiedpointImageSrc.withPointStyle(String pointStyle) Returns a copy ofthisimmutable component with the specifiedpointStyle.withPointVisible(boolean pointVisible) Returns a copy ofthisimmutable component with the specifiedpointVisible.Methods inherited from interface org.zkoss.stateless.sul.IChildable
getChildren, withChildren, withChildrenMethods inherited from interface org.zkoss.stateless.sul.IComponent
getAction, getActions, getClientAttributes, getId, getMold, getWidgetListeners, getWidgetOverrides, isVisible, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withActions, withActions, withClientAttribute, withClientAttributes, withId, withMold, withVisible, withWidgetClass, withWidgetListener, withWidgetListeners, withWidgetOverride, withWidgetOverridesMethods inherited from interface org.zkoss.stateless.sul.IHtmlBasedComponent
getClientAction, getDraggable, getDroppable, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getSkeleton, getStyle, getTabindex, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZIndex, isFocus, withClientAction, withDraggable, withDroppable, withFocus, withHeight, withHflex, withLeft, withRenderdefer, withSclass, withSkeleton, withStyle, withTabindex, withTabindex, withTooltiptext, withTop, withVflex, withWidth, withZclass, withZIndexMethods inherited from interface org.zkoss.stateless.sul.IXulElement
getContext, getCtrlKeys, getPopup, getTooltip, withContext, withCtrlKeys, withPopup, withTooltip
-
Field Details
-
DEFAULT
Constant for default attributes of this immutable component.
-
-
Method Details
-
getWidgetClass
Returns the client widget class.Default:
"zkmax.layout.Lineitem"- Specified by:
getWidgetClassin interfaceIComponent<I extends IAnyGroup>
-
getPointStyle
Returns the CSS style for the point.Default:
null -
withPointStyle
Returns a copy ofthisimmutable component with the specifiedpointStyle.Sets the pointStyle.
- Parameters:
pointStyle- Sets the pointStyle.Default:
null.- Returns:
- A modified copy of the
thisobject
-
getPointIconSclass
Returns the iconSclass name of this point. -
withPointIconSclass
Returns a copy ofthisimmutable component with the specifiedpointIconSclass.Sets the pointIconSclass name of the point.
- Parameters:
pointIconSclass- Sets the pointStyle.Default:
null.- Returns:
- A modified copy of the
thisobject
-
getFrontSpace
Returns the spacing with the previous lineitem. -
withFrontSpace
Returns a copy ofthisimmutable component with the specifiedfrontSpace.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).Default:
null.- Returns:
- A modified copy of the
thisobject
-
getBackSpace
Returns the spacing with the next lineitem. -
withBackSpace
Returns a copy ofthisimmutable component with the specifiedbackSpace.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).Default:
null.- Returns:
- A modified copy of the
thisobject
-
isPointVisible
default boolean isPointVisible()Returns whether the point is visible.Default:
true. -
withPointVisible
Returns a copy ofthisimmutable component with the specifiedpointVisible.Sets whether the point is visible.
- Parameters:
pointVisible- Whether the point is visible.Default:
true.- Returns:
- A modified copy of the
thisobject
-
isOpposite
default boolean isOpposite()Returns whether the first child is displayed in the first area(left/top).Default: false.
-
withOpposite
Returns a copy ofthisimmutable component with the specifiedopposite.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).Default:
true.- Returns:
- A modified copy of the
thisobject
-
getPointImageSrc
Returns the source URI of the point image.Default:
null. -
withPointImageSrc
Returns a copy ofthisimmutable component with the specifiedpointImageSrc.Sets the source URI of the point image.
Note: the
withPointImageContent(org.zkoss.image.Image)is higher priority if both methods are specified.- Parameters:
pointImageSrc- The source URI of the point image.Default:
null.- Returns:
- A modified copy of the
thisobject
-
getPointImageContent
@Nullable org.zkoss.image.Image getPointImageContent()Returns the content set bywithPointImageContent(org.zkoss.image.Image).Note: it won't fetch what is set through by
withPointImageSrc(String). It simply returns what is passed towithPointImageContent(org.zkoss.image.Image). -
withPointImageContent
Returns a copy ofthisimmutable component with the specifiedpointImageContent.Sets the content directly.
Default:
null.Calling this method implies
withPointImageSrcis useless. In other words, ThewithPointImageContent(org.zkoss.image.Image)priority is higher than calling thewithPointImageSrc(String), if any.- Parameters:
pointImageContent- The image to display.- Returns:
- A modified copy of
thisobject - See Also:
-
withPointImageContent
Returns a copy ofthisimmutable component with the specifiedimage.Sets the content 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 invokewithPointImageContent(org.zkoss.image.Image)}.If you want more control such as different format, quality, and naming, you can use
Imagesdirectly.- Parameters:
image- The image to display.- Returns:
- A modified copy of
thisobject
-
of
Returns the instance with the given any group children (only up to two children).- Parameters:
children- The children belong to any group- See Also:
-
of
Returns the instance with the given any group children (only up to two children).- Parameters:
children- The children belong to any group- See Also:
-
ofPointIconSclass
Returns the instance with the given pointIconSclass.- Parameters:
pointIconSclass- The sclass name of the point icon.
-
ofPointImageSrc
Returns the instance with the given pointImageSrc.- Parameters:
src- The source URI of the point background image.
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-