Class Icon.Builder

  • Enclosing class:
    Icon

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

      • Builder

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

      • setColor

        public Icon.Builder setColor​(java.lang.String color)
        Icon color applied to icon in hex format.
        Parameters:
        color - New value for the property.
      • setPlacement

        public Icon.Builder setPlacement​(java.lang.String placement)
        Possible values are: If specified as PRE, the icon appears before the UI element. If set as POST, the icon appears after the UI element.
        Parameters:
        placement - New value for the property.
      • setSize

        public Icon.Builder setSize​(java.lang.Double size)
        Icon size in unit applied to icon.A unit can be specified by the 'size_unit' property.
        Parameters:
        size - New value for the property.
      • setSizeUnit

        public Icon.Builder setSizeUnit​(java.lang.String sizeUnit)
        Possible values are: Icon size unit applied to icon along with size. if 'size' property value is provided and no value is provided for this property then default value for this proerty is set to 'px'.
        Parameters:
        sizeUnit - New value for the property.
      • setTooltip

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

        public Icon.Builder setType​(java.lang.String type)
        Icon will be rendered based on its type. For example, if ERROR is chosen, then icon representing error will be rendered. or else custom svg icon name can be given.
        Parameters:
        type - New value for the property.
      • build

        public Icon build()