com.atlassian.gadgets.dashboard
Class DashboardState.Builder

java.lang.Object
  extended by com.atlassian.gadgets.dashboard.DashboardState.Builder
Enclosing class:
DashboardState

public static class DashboardState.Builder
extends Object

A builder that allows the Layout or the columns of the DashboardState under construction to be set. Creating the final DashboardState is done by calling the build() method.


Method Summary
 DashboardState build()
          Returns the final constructed DashboardState
 DashboardState.Builder columns(Iterable<? extends Iterable<GadgetState>> columns)
          Set the columns of the DashboardState under construction and return this Builder to allow further construction to be done.
 DashboardState.Builder layout(Layout layout)
          Set the Layout of the DashboardState under construction and return this Builder to allow further construction to be done.
 DashboardState.Builder title(String title)
          Set the title of the DashboardState under construction and return this Builder to allow further construction to be done.
 DashboardState.Builder version(long version)
          Set the version of the DashboardState under construction and return this Builder to allow further construction to be done.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

layout

public DashboardState.Builder layout(Layout layout)
Set the Layout of the DashboardState under construction and return this Builder to allow further construction to be done.

Parameters:
layout - the Layout to use for the DashboardState
Returns:
this builder to allow for further construction

title

public DashboardState.Builder title(String title)
Set the title of the DashboardState under construction and return this Builder to allow further construction to be done.

Parameters:
title - the title to use for the DashboardState
Returns:
this builder to allow for further construction

columns

public DashboardState.Builder columns(Iterable<? extends Iterable<GadgetState>> columns)
Set the columns of the DashboardState under construction and return this Builder to allow further construction to be done.

Parameters:
columns - an Iterable list of GadgetState objects
Returns:
this builder to allow for further construction

version

public DashboardState.Builder version(long version)
Set the version of the DashboardState under construction and return this Builder to allow further construction to be done.

Parameters:
version - the version of this DashboardState object
Returns:
this builder to allow for further construction

build

public DashboardState build()
Returns the final constructed DashboardState

Returns:
the DashboardState


Copyright © 2010 Atlassian. All Rights Reserved.