|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.gadgets.GadgetState.Builder
public static class GadgetState.Builder
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 |
|---|
public GadgetState.Builder(GadgetState state)
| Method Detail |
|---|
public GadgetState.Builder color(Color color)
Color of the GadgetState under construction and return this Builder
to allow further construction to be done.
color - the Color to use for the GadgetState
public GadgetState.Builder userPrefs(Map<String,String> userPrefs)
Map of user preference values for the GadgetState under construction and return
this Builder to allow further construction to be done.
userPrefs - the Map to use as the user preference values for the GadgetState
public GadgetState build()
GadgetState
GadgetState
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||