com.atlassian.gadgets
Class GadgetState.Builder

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

public static class GadgetState.Builder
extends Object

A builder that allows you to set the Color and the user preferences of the GadgetState under construction. Creating the final GadgetState is done by calling the build() method.


Constructor Summary
GadgetState.Builder(GadgetState state)
           
 
Method Summary
 GadgetState build()
          Returns the final constructed GadgetState
 GadgetState.Builder color(Color color)
          Set the Color of the GadgetState under construction and return this Builder to allow further construction to be done.
 GadgetState.Builder userPrefs(Map<String,String> userPrefs)
          Set the Map of user preference values for the GadgetState 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
 

Constructor Detail

GadgetState.Builder

public GadgetState.Builder(GadgetState state)
Method Detail

color

public GadgetState.Builder color(Color color)
Set the Color of the GadgetState under construction and return this Builder to allow further construction to be done.

Parameters:
color - the Color to use for the GadgetState
Returns:
this builder to allow for further construction

userPrefs

public GadgetState.Builder userPrefs(Map<String,String> userPrefs)
Set the Map of user preference values for the GadgetState under construction and return this Builder to allow further construction to be done.

Parameters:
userPrefs - the Map to use as the user preference values for the GadgetState
Returns:
this builder to allow for further construction

build

public GadgetState build()
Returns the final constructed GadgetState

Returns:
the GadgetState


Copyright © 2013 Atlassian. All Rights Reserved.