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
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     

    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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    org.zkoss.zul.ChartModel
     
     
     
     
     
     
     
     
     
    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
    setLocale(String locale)
     
    void
    setModel(org.zkoss.zul.ChartModel model)
     
    void
    setOrient(String orient)
    set chart orientation
    void
    setSeriesColors(String[] seriesColors)
     
    void
    setTickAxisLabel(String tickAxisLabel)
    set x axis label
    void
    setTimeSeries(boolean _timeSeries)
     
    void
    setTimeSeriesFormat(String timeSeriesFormat)
    set time series format
    void
    setTimeSeriesInterval(String _timeSeriesInterval)
     
    void
    set chart title
    void
    set chart type
    void
    setValueAxisLabel(String valueAxisLabel)
    set y axis label
    void
    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

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • Billboard

      public Billboard()
  • Method Details

    • renderProperties

      protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) throws IOException
      Overrides:
      renderProperties in class org.zkoss.zul.impl.XulElement
      Throws:
      IOException
    • service

      public void service(org.zkoss.zk.au.AuRequest request, boolean everError)
      Specified by:
      service in interface org.zkoss.zk.ui.sys.ComponentCtrl
      Overrides:
      service in class org.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

      public String getTitle()
      Returns:
      chart title
    • setTitle

      public void setTitle(String title)
      set chart title
      Parameters:
      title -
    • getType

      public String getType()
      Returns:
      chart type
    • setType

      public void setType(String type)
      set chart type
      Parameters:
      type -
    • getOrient

      public String getOrient()
      Returns:
      chart orientation (horizontal or vertical)
    • setOrient

      public void setOrient(String orient)
      set chart orientation
      Parameters:
      orient -
    • addRendererOptions

      public void addRendererOptions(String key, Object value)
      Parameters:
      key -
      value -
    • addLegendOptions

      public void addLegendOptions(String key, Object value)
      Parameters:
      key -
      value -
    • getZclass

      public String getZclass()
      The default zclass is "z-billboard"
      Overrides:
      getZclass in class org.zkoss.zk.ui.HtmlBasedComponent
    • setLegend

      public void setLegend(boolean show, boolean insideGrid)
      Parameters:
      show -
      insideGrid -
    • getTickAxisLabel

      public String getTickAxisLabel()
      Returns:
      x axis label
    • setTickAxisLabel

      public void setTickAxisLabel(String tickAxisLabel)
      set x axis label
      Parameters:
      tickAxisLabel -
    • getValueAxisLabel

      public String getValueAxisLabel()
      Returns:
      y axis label
    • setValueAxisLabel

      public void setValueAxisLabel(String valueAxisLabel)
      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

      public String getTimeSeriesInterval()
      Returns:
      time series interval
    • setTimeSeriesInterval

      public void setTimeSeriesInterval(String _timeSeriesInterval)
      Parameters:
      _timeSeriesInterval -
    • getTimeSeriesFormat

      public String getTimeSeriesFormat()
      Returns:
      time series format
    • setTimeSeriesFormat

      public void setTimeSeriesFormat(String timeSeriesFormat)
      set time series format
      Parameters:
      timeSeriesFormat -
    • getSeriesColors

      public String[] getSeriesColors()
    • setSeriesColors

      public void setSeriesColors(String[] seriesColors)
    • getXAxisAngle

      public int getXAxisAngle()
    • setXAxisAngle

      public void setXAxisAngle(int xAxisAngle)
    • setLocale

      public void setLocale(String locale)