Class WidgetItem.Builder

  • Enclosing class:
    WidgetItem

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

      • Builder

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

      • setRowspan

        public WidgetItem.Builder setRowspan​(java.lang.Long rowspan)
        Represents the vertical span of the widget / container format: int32
        Parameters:
        rowspan - New value for the property.
      • setSeparator

        public WidgetItem.Builder setSeparator​(java.lang.Boolean separator)
        If true, separates this widget in a container.
        Parameters:
        separator - New value for the property.
      • setSpan

        public WidgetItem.Builder setSpan​(java.lang.Long span)
        Represents the horizontal span of the widget / container. format: int32
        Parameters:
        span - New value for the property.
      • setWeight

        public WidgetItem.Builder setWeight​(java.lang.Long weight)
        Determines placement of widget or container relative to other widgets and containers. The lower the weight, the higher it is in the placement order. format: int32
        Parameters:
        weight - New value for the property.
      • setWidgetId

        public WidgetItem.Builder setWidgetId​(java.lang.String widgetId)
        Id of the widget configuration that is held by a multi-widget or a container or a view.
        Parameters:
        widgetId - New value for the property.