Package com.atlassian.gadgets.dashboard
Class DashboardState.Builder
java.lang.Object
com.atlassian.gadgets.dashboard.DashboardState.Builder
- Enclosing class:
- DashboardState
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns the final constructedDashboardStatecolumns(Iterable<? extends Iterable<GadgetState>> columns) Deprecated.dashboardColumns(Iterable<? extends Iterable<DashboardItemState>> columns) Set the columns of theDashboardStateunder construction and return thisBuilderto allow further construction to be done.Set theLayoutof theDashboardStateunder construction and return thisBuilderto allow further construction to be done.Set the title of theDashboardStateunder construction and return thisBuilderto allow further construction to be done.version(long version) Set the version of theDashboardStateunder construction and return thisBuilderto allow further construction to be done.
-
Method Details
-
layout
Set theLayoutof theDashboardStateunder construction and return thisBuilderto allow further construction to be done.- Parameters:
layout- theLayoutto use for theDashboardState- Returns:
- this builder to allow for further construction
-
title
Set the title of theDashboardStateunder construction and return thisBuilderto allow further construction to be done.- Parameters:
title- the title to use for theDashboardState- Returns:
- this builder to allow for further construction
-
columns
@Deprecated public DashboardState.Builder columns(Iterable<? extends Iterable<GadgetState>> columns) Deprecated.Set the columns of theDashboardStateunder construction and return thisBuilderto allow further construction to be done.- Parameters:
columns- anIterablelist ofGadgetStateobjects- Returns:
- this builder to allow for further construction
deprecated Use
dashboardColumns(java.lang.Iterable<? extends java.lang.Iterable<com.atlassian.gadgets.DashboardItemState>>)instead. Since v3.11.
-
dashboardColumns
public DashboardState.Builder dashboardColumns(Iterable<? extends Iterable<DashboardItemState>> columns) Set the columns of theDashboardStateunder construction and return thisBuilderto allow further construction to be done.- Parameters:
columns- anIterablelist ofGadgetStateobjects- Returns:
- this builder to allow for further construction
-
version
Set the version of theDashboardStateunder construction and return thisBuilderto allow further construction to be done.- Parameters:
version- the version of this DashboardState object- Returns:
- this builder to allow for further construction
-
build
Returns the final constructedDashboardState- Returns:
- the
DashboardState
-