Class StatItem.Builder

  • Enclosing class:
    StatItem

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

      • Builder

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

      • setDrilldownId

        public StatItem.Builder setDrilldownId​(java.lang.String drilldownId)
        Id of drilldown widget, if any. Id should be a valid id of an existing widget.
        Parameters:
        drilldownId - New value for the property.
      • setTooltip

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

        public StatItem.Builder setTotal​(java.lang.String total)
        If expression for total is specified, it evaluates it. Total can be omitted if not needed to be shown.
        Parameters:
        total - New value for the property.
      • setValue

        public StatItem.Builder setValue​(java.lang.String value)
        Expression for stat to be displayed.
        Parameters:
        value - New value for the property.