com.ibm.tivoli.maximo.skd.control.chart

Class SimpleChartBean

    • Constructor Detail

      • SimpleChartBean

        public SimpleChartBean()
    • Method Detail

      • getChartIds

        public java.util.Map getChartIds()
        A ChartBean may create more than 1 chart, so this method should return the unique ids for those charts. If your bean only returns 1 chart, then this can return null.
        Returns:
      • getChart

        public abstract Chart getChart(ChartRequestOptions options)
                                throws java.rmi.RemoteException,
                                       MXException
        Returns a Chart for the ChartRequestOptions. options may be null, but if not, then the options can be used to select a specify chart. If getChartIds() returns one or more chart ids, then the ChartRequestOptions may contain the chartId that is being requested. At the time that this method is called, this Chart Bean will have both the data bean and control set, so they can be used when creating the chart.
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • getSupportedChartTypes

        public com.ibm.json.java.JSONArray getSupportedChartTypes()
        Returns a JSONArray of ChartType JSON Objects that are configured and supported by this chart bean. If it returns Null, then only a single chart type is supported, which is defined by the getChart() method. If this returns more than 1 item, then the chart control will enable the ability to switch between different chart types. By Default this method returns the supportedcharttypes property from the presentation, calling configureChartType for each chart listed.
        Returns:
        JSONArray of Supported Chart Types
      • configureChartType

        public ChartType configureChartType(java.lang.String chartType)
        Factory for configuring a ChartType node for a given type. Subclasses can use this to provide default configurations for supported chart types. The default implementation, simple returns a CharType with the configure chartType, or null, if the chartType is not a valid chart type.
        Parameters:
        chartType -
        Returns:
      • getSupportedChartThemes

        public com.ibm.json.java.JSONArray getSupportedChartThemes()
        Return an Array of supported Dojo Chart Themes. By default this will read the supportedthemes property from the presentation control. It is valid for this method to return null, to indicate that there are no additional chart themes. But, if this method returns more than 1 theme, then a chart theme selector will be rendered with the chart
        Returns:
      • getChartLabel

        protected java.lang.String getChartLabel(java.lang.String msgPrefix,
                                                 java.lang.String defValue)
        Returns the localized chart label for the given msgPrefix.
        Parameters:
        msgPrefix - chart prefix id (_chart will be automatically appended)
        defValue - default title if the title is not localized.
        Returns:
      • structureChangedEvent

        public void structureChangedEvent(DataBean speaker)
        Description copied from class: DataBean
        event called by the "parent" DataBean which tells this DataBean that it references a new mbo or MboSetRemote. The fireStructureChangedEvent is called thus setting the resetRemote flag for all the "children" DataBeans
        Specified by:
        structureChangedEvent in interface DataBeanListener
        Overrides:
        structureChangedEvent in class DataBean