public class Lineitem extends 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 |
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 |
---|
Lineitem() |
Modifier and Type | Method and Description |
---|---|
void |
beforeChildAdded(Component child,
Component refChild)
Default: does nothing.
|
void |
beforeParentChanged(Component parent)
Default: If parent is null, execute the @Destroy method if any.
|
java.lang.String |
getBackSpace()
Returns the spacing with the next lineitem.
|
java.lang.Object |
getExtraCtrl()
Returns the client control for this component.
|
java.lang.String |
getFrontSpace()
Returns the spacing with the previous lineitem.
|
java.lang.String |
getPointIconSclass()
Returns the iconSclass name of this point.
|
java.lang.String |
getPointImageSrc()
Returns the source URI of the point image.
|
java.lang.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(ContentRenderer renderer)
Renders the content of this component, excluding the enclosing
tags and children.
|
void |
setBackSpace(java.lang.String backSpace)
Sets the spacing with the next lineitem.
|
void |
setFrontSpace(java.lang.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(java.lang.String pointIconSclass)
Sets the iconSclass name of the point.
|
void |
setPointImageContent(Image image)
Sets the pointImageContent directly.
|
void |
setPointImageContent(java.awt.image.RenderedImage image)
Sets the pointImageContent directly with the rendered image.
|
void |
setPointImageSrc(java.lang.String src)
Sets the source URI of the point image.
|
void |
setPointStyle(java.lang.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, setTooltipAttributes
addSclass, 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, setZIndexDirectly
addAnnotation, 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, willSerialize
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
invalidatePartial
public boolean isPointVisible()
Default: true.
public void setPointVisible(boolean pointVisible)
pointVisible
- whether the point is visible.public java.lang.String getPointStyle()
public void setPointStyle(java.lang.String pointStyle)
pointStyle
- the CSS style for the point.public java.lang.String getPointImageSrc()
Default: null.
public void setPointImageSrc(java.lang.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(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(java.awt.image.RenderedImage image)
Image
) with Images.encode(java.lang.String, java.awt.image.RenderedImage, float, boolean)
,
and then invoke setPointImageContent(org.zkoss.image.Image)
.public java.lang.String getPointIconSclass()
public void setPointIconSclass(java.lang.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 java.lang.String getFrontSpace()
public void setFrontSpace(java.lang.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 java.lang.String getBackSpace()
public void setBackSpace(java.lang.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(Component parent)
AbstractComponent
beforeParentChanged
in interface ComponentCtrl
beforeParentChanged
in class AbstractComponent
parent
- the new parent. If null, it means detachment.ComponentCtrl.beforeParentChanged(org.zkoss.zk.ui.Component)
public void beforeChildAdded(Component child, Component refChild)
AbstractComponent
beforeChildAdded
in interface ComponentCtrl
beforeChildAdded
in class AbstractComponent
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.ComponentCtrl.beforeChildAdded(org.zkoss.zk.ui.Component, org.zkoss.zk.ui.Component)
protected void renderProperties(ContentRenderer renderer) throws java.io.IOException
HtmlBasedComponent
renderProperties
in class XulElement
java.io.IOException
public java.lang.Object getExtraCtrl()
HtmlBasedComponent
Default: creates an instance of HtmlBasedComponent.ExtraCtrl
.
getExtraCtrl
in interface ComponentCtrl
getExtraCtrl
in class HtmlBasedComponent
Cropper
.ComponentCtrl.getExtraCtrl()
Copyright © 2005-2021 Potix Corporation. All Rights Reserved.