Class GadgetState.Builder

java.lang.Object
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 Details

  • Method Details

    • 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