public static final class WidgetItem.Builder
extends java.lang.Object
WidgetItem.| Constructor and Description |
|---|
Builder()
Constructor with parameters for the required properties of
WidgetItem. |
| Modifier and Type | Method and Description |
|---|---|
WidgetItem |
build() |
WidgetItem.Builder |
setAlignment(java.lang.String alignment)
Possible values are:
WidgetItem.ALIGNMENT_LEFT WidgetItem.ALIGNMENT_RIGHT Aligns widget either
left or right. |
WidgetItem.Builder |
setLabel(Label label) |
WidgetItem.Builder |
setRowspan(java.lang.Long rowspan)
Represents the vertical span of the widget / container format: int32
|
WidgetItem.Builder |
setSeparator(java.lang.Boolean separator)
If true, separates this widget in a container.
|
WidgetItem.Builder |
setSpan(java.lang.Long span)
Represents the horizontal span of the widget / container.
|
WidgetItem.Builder |
setWeight(java.lang.Long weight)
Determines placement of widget or container relative to other widgets and
containers.
|
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.
|
public Builder()
WidgetItem.public WidgetItem.Builder setAlignment(java.lang.String alignment)
alignment - New value for the property.public WidgetItem.Builder setLabel(Label label)
label - New value for the property.public WidgetItem.Builder setRowspan(java.lang.Long rowspan)
rowspan - New value for the property.public WidgetItem.Builder setSeparator(java.lang.Boolean separator)
separator - New value for the property.public WidgetItem.Builder setSpan(java.lang.Long span)
span - New value for the property.public WidgetItem.Builder setWeight(java.lang.Long weight)
weight - New value for the property.public WidgetItem.Builder setWidgetId(java.lang.String widgetId)
widgetId - New value for the property.public WidgetItem build()