Package com.atlassian.gadgets
Class GadgetState.Builder
java.lang.Object
com.atlassian.gadgets.GadgetState.Builder
- Enclosing class:
- GadgetState
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns the final constructedGadgetStateSet theColorof theGadgetStateunder construction and return thisBuilderto allow further construction to be done.Set theMapof user preference values for theGadgetStateunder construction and return thisBuilderto allow further construction to be done.
-
Constructor Details
-
Builder
-
-
Method Details
-
color
Set theColorof theGadgetStateunder construction and return thisBuilderto allow further construction to be done.- Parameters:
color- theColorto use for theGadgetState- Returns:
- this builder to allow for further construction
-
userPrefs
Set theMapof user preference values for theGadgetStateunder construction and return thisBuilderto allow further construction to be done.- Parameters:
userPrefs- theMapto use as the user preference values for theGadgetState- Returns:
- this builder to allow for further construction
-
build
Returns the final constructedGadgetState- Returns:
- the
GadgetState
-