protected abstract static class Widget.Builder<T extends Widget,B extends Widget.Builder<T,B>> extends Object
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
Modifier and Type | Method and Description |
---|---|
B |
accountId(long accountId)
Sets the account id of the widget.
|
abstract T |
build()
Returns the configured alert condition instance
|
B |
layout(Layout layout)
Sets the layout of the widget.
|
B |
notes(String notes)
Sets the notes of the presentation.
|
B |
position(int row,
int column)
Sets the position of the widget.
|
protected abstract B |
self()
Returns this object.
|
B |
size(int width,
int height)
Sets the size of the widget.
|
B |
title(String title)
Sets the title of the presentation.
|
B |
visualization(String visualization)
Sets the visualization of the widget.
|
B |
widget(Widget widget)
Sets the widget.
|
public B widget(Widget widget)
widget
- The widgetpublic B visualization(String visualization)
visualization
- The visualization of the widgetpublic B accountId(long accountId)
accountId
- The account id of the widgetpublic B layout(Layout layout)
layout
- The layout of the widgetpublic B position(int row, int column)
row
- The row of the widgetcolumn
- The column of the widgetpublic B size(int width, int height)
width
- The width of the widgetheight
- The height of the widgetpublic B title(String title)
title
- The title of the presentationpublic B notes(String notes)
notes
- The notes of the presentationprotected abstract B self()
public abstract T build()
Copyright © 2018. All rights reserved.