public abstract class Widget extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
Widget.Builder<T extends Widget,B extends Widget.Builder<T,B>>
Builder to make widget construction easier.
|
Constructor and Description |
---|
Widget()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addData(WidgetData data)
Adds an item to the list of widget data items.
|
boolean |
containsData(WidgetData data)
Returns
true if the given data item is contained in the list of widget data items. |
long |
getAccountId()
Returns the account id of the widget.
|
List<WidgetData> |
getData()
Returns the list of widget data items.
|
Layout |
getLayout()
Returns the layout of the widget.
|
Presentation |
getPresentation()
Returns the presentation of the widget.
|
String |
getVisualization()
Returns the visualization of the widget.
|
void |
setAccountId(long accountId)
Sets the account id of the widget.
|
void |
setData(List<WidgetData> data)
Sets the list of widget data items.
|
void |
setLayout(Layout layout)
Sets the layout of the widget.
|
void |
setPresentation(Presentation presentation)
Sets the presentation of the widget.
|
void |
setVisualization(String visualization)
Sets the visualization of the widget.
|
String |
toString()
Returns a string representation of the object.
|
public void setVisualization(String visualization)
visualization
- The visualization of the widgetpublic String getVisualization()
public void setAccountId(long accountId)
accountId
- The account id of the widgetpublic long getAccountId()
public void setData(List<WidgetData> data)
data
- The list of widget data itemspublic void addData(WidgetData data)
data
- The data item to be addedpublic List<WidgetData> getData()
public boolean containsData(WidgetData data)
true
if the given data item is contained in the list of widget data items.data
- The data item to be checkedtrue
if the given data item is contained in the list of widget data itemspublic void setPresentation(Presentation presentation)
presentation
- The presentation of the widgetpublic Presentation getPresentation()
public void setLayout(Layout layout)
layout
- The layout of the widgetpublic Layout getLayout()
Copyright © 2018. All rights reserved.