Package com.atlassian.gadgets.spec
Class GadgetSpec.Builder
java.lang.Object
com.atlassian.gadgets.spec.GadgetSpec.Builder
- Enclosing class:
- GadgetSpec
A builder that facilitates construction of
GadgetSpec objects. The final GadgetSpec
is created by calling the build() method-
Method Summary
Modifier and TypeMethodDescriptionSet the author of theGadgetSpecunder construction and return thisBuilderto allow further construction to be done.authorEmail(String authorEmail) Set the author email of theGadgetSpecunder construction and return thisBuilderto allow further construction to be done.build()Returns the final constructedGadgetSpecdescription(String description) Set the description of theGadgetSpecunder construction and return thisBuilderto allow further construction to be done.directoryTitle(String directoryTitle) Set the directory title of theGadgetSpecunder construction and return thisBuilderto allow further construction to be done.Set theMapofFeaturefor theGadgetSpecunder construction and return thisBuilderto allow further construction to be done.height(int height) Set the height of theGadgetSpecunder construction and return thisBuilderto allow further construction to be done.scrolling(boolean scrolling) Set the scrolling setting of theGadgetSpecunder construction and return thisBuilderto allow further construction to be done.Set the thumbnailURIof theGadgetSpecunder construction and return thisBuilderto allow further construction to be done.Set the title of theGadgetSpecunder construction and return thisBuilderto allow further construction to be done.Set the titleURIof theGadgetSpecunder construction and return thisBuilderto allow further construction to be done.unsupportedFeatureNames(Iterable<String> unsupportedFeatureNames) Set the list of unsupported features for theGadgetSpecunder construction and return thisBuilderto allow further construction to be done.userPrefs(Iterable<UserPrefSpec> userPrefs) Set the list ofUserPrefSpecobjects for theGadgetSpecunder construction and return thisBuilderto allow further construction to be done.viewsNames(Set<String> viewsNames) Set the list of view names for theGadgetSpecunder construction and return thisBuilderto allow further construction to be done.width(int width) Set the width of theGadgetSpecunder construction and return thisBuilderto allow further construction to be done.
-
Method Details
-
userPrefs
Set the list ofUserPrefSpecobjects for theGadgetSpecunder construction and return thisBuilderto allow further construction to be done.- Parameters:
userPrefs- the list ofUserPrefSpecto use as the user preference values for theGadgetSpec- Returns:
- this builder to allow for further construction
-
scrolling
Set the scrolling setting of theGadgetSpecunder construction and return thisBuilderto allow further construction to be done.- Parameters:
scrolling- the scrolling setting of thisGadgetSpec- Returns:
- this builder to allow for further construction
-
height
Set the height of theGadgetSpecunder construction and return thisBuilderto allow further construction to be done.- Parameters:
height- the height of thisGadgetSpec- Returns:
- this builder to allow for further construction
-
width
Set the width of theGadgetSpecunder construction and return thisBuilderto allow further construction to be done.- Parameters:
width- the width of thisGadgetSpec- Returns:
- this builder to allow for further construction
-
title
Set the title of theGadgetSpecunder construction and return thisBuilderto allow further construction to be done.- Parameters:
title- the title of thisGadgetSpec- Returns:
- this builder to allow for further construction
-
titleUrl
Set the titleURIof theGadgetSpecunder construction and return thisBuilderto allow further construction to be done.- Parameters:
titleUrl- the titleURIof thisGadgetSpec- Returns:
- this builder to allow for further construction
-
thumbnail
Set the thumbnailURIof theGadgetSpecunder construction and return thisBuilderto allow further construction to be done.- Parameters:
thumbnail- the thumbnailURIof thisGadgetSpec- Returns:
- this builder to allow for further construction
-
author
Set the author of theGadgetSpecunder construction and return thisBuilderto allow further construction to be done.- Parameters:
author- the author of thisGadgetSpec- Returns:
- this builder to allow for further construction
-
authorEmail
Set the author email of theGadgetSpecunder construction and return thisBuilderto allow further construction to be done.- Parameters:
authorEmail- the author email of thisGadgetSpec- Returns:
- this builder to allow for further construction
-
description
Set the description of theGadgetSpecunder construction and return thisBuilderto allow further construction to be done.- Parameters:
description- the description of thisGadgetSpec- Returns:
- this builder to allow for further construction
-
directoryTitle
Set the directory title of theGadgetSpecunder construction and return thisBuilderto allow further construction to be done.- Parameters:
directoryTitle- the directory title of thisGadgetSpec- Returns:
- this builder to allow for further construction
-
features
Set theMapofFeaturefor theGadgetSpecunder construction and return thisBuilderto allow further construction to be done.- Parameters:
features- theMapofFeaturefor theGadgetSpec- Returns:
- this builder to allow for further construction
-
unsupportedFeatureNames
Set the list of unsupported features for theGadgetSpecunder construction and return thisBuilderto allow further construction to be done.- Parameters:
unsupportedFeatureNames- the list of unsupported features for theGadgetSpec- Returns:
- this builder to allow for further construction
-
viewsNames
Set the list of view names for theGadgetSpecunder construction and return thisBuilderto allow further construction to be done.- Parameters:
viewsNames- the list of view names for theGadgetSpec- Returns:
- this builder to allow for further construction
-
build
Returns the final constructedGadgetSpec- Returns:
- the
GadgetSpec
-