Package org.idempiere.zk.billboard
Class Billboard
java.lang.Object
org.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zul.impl.XulElement
org.idempiere.zk.billboard.Billboard
- All Implemented Interfaces:
Serializable
,Cloneable
,org.zkoss.zk.ui.Component
,org.zkoss.zk.ui.ext.Scope
,org.zkoss.zk.ui.sys.ComponentCtrl
public class Billboard
extends org.zkoss.zul.impl.XulElement
- Author:
- hengsin
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zk.ui.HtmlBasedComponent.ExtraCtrl
Nested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.AbstractComponent.Children, org.zkoss.zk.ui.AbstractComponent.ForwardInfo, org.zkoss.zk.ui.AbstractComponent.TargetInfo
-
Field Summary
Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent
_zclass
Fields inherited from interface org.zkoss.zk.ui.Component
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE
Fields inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl
AFTER_CHILD_ADDED, AFTER_CHILD_REMOVED, 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLegendOptions
(String key, Object value) void
addRendererOptions
(String key, Object value) org.zkoss.zul.ChartModel
getModel()
String[]
getTitle()
getType()
int
The default zclass is "z-billboard"boolean
protected void
renderProperties
(org.zkoss.zk.ui.sys.ContentRenderer renderer) void
service
(org.zkoss.zk.au.AuRequest request, boolean everError) void
setLegend
(boolean show, boolean insideGrid) void
void
setModel
(org.zkoss.zul.ChartModel model) void
set chart orientationvoid
setSeriesColors
(String[] seriesColors) void
setTickAxisLabel
(String tickAxisLabel) set x axis labelvoid
setTimeSeries
(boolean _timeSeries) void
setTimeSeriesFormat
(String timeSeriesFormat) set time series formatvoid
setTimeSeriesInterval
(String _timeSeriesInterval) void
set chart titlevoid
set chart typevoid
setValueAxisLabel
(String valueAxisLabel) set y axis labelvoid
setXAxisAngle
(int xAxisAngle) Methods inherited from class org.zkoss.zul.impl.XulElement
clone, getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributes
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
addSclass, evalCSSFlex, focus, getAction, getClientAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, removeSclass, removeSclass, setAction, setClass, setClientAction, 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
Methods 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, beforeChildAdded, beforeChildRemoved, beforeParentChanged, 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, 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, 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
-
Field Details
-
ON_DATA_CLICK_EVENT
- See Also:
-
VERTICAL_ORIENTATION
- See Also:
-
HORIZONTAL_ORIENTATION
- See Also:
-
-
Constructor Details
-
Billboard
public Billboard()
-
-
Method Details
-
renderProperties
- Overrides:
renderProperties
in classorg.zkoss.zul.impl.XulElement
- Throws:
IOException
-
service
public void service(org.zkoss.zk.au.AuRequest request, boolean everError) - Specified by:
service
in interfaceorg.zkoss.zk.ui.sys.ComponentCtrl
- Overrides:
service
in classorg.zkoss.zk.ui.HtmlBasedComponent
-
getModel
public org.zkoss.zul.ChartModel getModel()- Returns:
ChartModel
-
setModel
public void setModel(org.zkoss.zul.ChartModel model) - Parameters:
model
-
-
getTitle
- Returns:
- chart title
-
setTitle
set chart title- Parameters:
title
-
-
getType
- Returns:
- chart type
-
setType
set chart type- Parameters:
type
-
-
getOrient
- Returns:
- chart orientation (horizontal or vertical)
-
setOrient
set chart orientation- Parameters:
orient
-
-
addRendererOptions
- Parameters:
key
-value
-
-
addLegendOptions
- Parameters:
key
-value
-
-
getZclass
The default zclass is "z-billboard"- Overrides:
getZclass
in classorg.zkoss.zk.ui.HtmlBasedComponent
-
setLegend
public void setLegend(boolean show, boolean insideGrid) - Parameters:
show
-insideGrid
-
-
getTickAxisLabel
- Returns:
- x axis label
-
setTickAxisLabel
set x axis label- Parameters:
tickAxisLabel
-
-
getValueAxisLabel
- Returns:
- y axis label
-
setValueAxisLabel
set y axis label- Parameters:
valueAxisLabel
-
-
isTimeSeries
public boolean isTimeSeries()- Returns:
- true if it is time series chart
-
setTimeSeries
public void setTimeSeries(boolean _timeSeries) - Parameters:
_timeSeries
-
-
getTimeSeriesInterval
- Returns:
- time series interval
-
setTimeSeriesInterval
- Parameters:
_timeSeriesInterval
-
-
getTimeSeriesFormat
- Returns:
- time series format
-
setTimeSeriesFormat
set time series format- Parameters:
timeSeriesFormat
-
-
getSeriesColors
-
setSeriesColors
-
getXAxisAngle
public int getXAxisAngle() -
setXAxisAngle
public void setXAxisAngle(int xAxisAngle) -
setLocale
-