Class DonutPart.Builder

  • Enclosing class:
    DonutPart

    public static final class DonutPart.Builder
    extends java.lang.Object
    Builder class for DonutPart.
    • Constructor Detail

      • Builder

        public Builder()
        Constructor with parameters for the required properties of DonutPart.
    • Method Detail

      • setCondition

        public DonutPart.Builder setCondition​(java.lang.String condition)
        If the condition is met then the part will be displayed. Examples of expression syntax are provided under 'example_request' section of 'CreateWidgetConfiguration' API.
        Parameters:
        condition - New value for the property.
      • setDrilldownId

        public DonutPart.Builder setDrilldownId​(java.lang.String drilldownId)
        Id of drilldown widget, if any. Id should be a valid id of an existing widget. A widget is considered as drilldown widget when it is associated with any other widget and provides more detailed information about any data item from the parent widget.
        Parameters:
        drilldownId - New value for the property.
      • setField

        public DonutPart.Builder setField​(java.lang.String field)
        A numerical value that represents the portion or entity of the donut or stats chart.
        Parameters:
        field - New value for the property.
      • setHideEmptyLegend

        public DonutPart.Builder setHideEmptyLegend​(java.lang.Boolean hideEmptyLegend)
        If true, legend will be shown only if the data for the part is available. This is applicable only if legends are specified in widget configuration.
        Parameters:
        hideEmptyLegend - New value for the property.
      • setLabel

        public DonutPart.Builder setLabel​(Label label)
        Parameters:
        label - New value for the property.
      • setNavigation

        public DonutPart.Builder setNavigation​(java.lang.String navigation)
        Hyperlink of the specified UI page that provides details. If drilldown_id is provided, then navigation cannot be used.
        Parameters:
        navigation - New value for the property.
      • setRenderConfiguration

        public DonutPart.Builder setRenderConfiguration​(java.util.List<RenderConfiguration> renderConfiguration)
        Additional rendering or conditional evaluation of the field values to be performed, if any.
        Parameters:
        renderConfiguration - New value for the property.
      • setTooltip

        public DonutPart.Builder setTooltip​(java.util.List<Tooltip> tooltip)
        Multi-line text to be shown on tooltip while hovering over the portion.
        Parameters:
        tooltip - New value for the property.