Class ResultFlexChart
Object
AbstractPortletDto
ResultFlexChart
- All Implemented Interfaces:
Serializable,Portlet,ComplexCalculationResult
public class ResultFlexChart
extends AbstractPortletDto
implements ComplexCalculationResult
Holds a FlexChart returned from a logic element.
An instance is created by api.buildFlexChart(baseTemplateToUse, definition). The definition is merged
with the options of the FlexChart template named by baseTemplateToUse.
FlexCharts use the outdated Highcharts release 4 and do not support all Highcharts options. Do not use FlexCharts
in new projects. Use api.buildHighchart(definition) instead.
- See Also:
-
Field Summary
Fields inherited from class AbstractPortletDto
dragDropEnabled, layout, messages, resizingEnabled -
Constructor Summary
ConstructorsConstructorDescriptionNot intended for public use.ResultFlexChart(Object flexChart) Not intended for public use.ResultFlexChart(String baseTemplateToUse, Object flexChart) Not intended for public use. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the FlexChart template the definition is merged with.Returns the chart options built from the definition.Returns the result type of the FlexChart.voidsetBaseTemplateToUse(String template) Sets the FlexChart template the definition is merged with.voidsetFlexChart(Object flexChart) Not intended for public use.Methods inherited from class AbstractPortletDto
getLabelOverride, layout, setLabelOverride, setLayout, value, withDragDrop, withError, withHeight, withHeight, withInfo, withLabelOverride, withLayout, withLayout, withLayout, withResizing, withTab, withWarning, withWidth, withWidth
-
Constructor Details
-
ResultFlexChart
public ResultFlexChart()Not intended for public use. Useapi.buildFlexChart()instead.- See Also:
-
ResultFlexChart
Not intended for public use. This constructor skips the validation of the definition. Useapi.buildFlexChart()instead.- See Also:
-
ResultFlexChart
Not intended for public use. This constructor skips the template check and the validation of the definition. Useapi.buildFlexChart()instead.- See Also:
-
-
Method Details
-
getBaseTemplateToUse
Returns the name of the FlexChart template the definition is merged with.- Returns:
- The name of the FlexChart template.
-
setBaseTemplateToUse
Sets the FlexChart template the definition is merged with.- Parameters:
template- Name of the template to use as a basis for merging with the definition. Ifnull, the predefined Default template is used.
-
getFlexChart
Returns the chart options built from the definition.- Returns:
- The chart options, not the definition object passed to
api.buildFlexChart().
-
setFlexChart
Not intended for public use. Useapi.buildFlexChart()instead.- See Also:
-
getResultType
Returns the result type of the FlexChart.- Specified by:
getResultTypein interfaceComplexCalculationResult- Returns:
- Always
"FLEXCHART".
-