|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.gadgets.view.View.Builder
public static class View.Builder
Builder for View
. Settings are specified as name / value pairs and
follow Map
semantics: if a specific name is specified multiple times,
the last value is retained.
Constructor Summary | |
---|---|
View.Builder()
|
Method Summary | |
---|---|
View.Builder |
addViewParam(String name,
String value)
Add a view parameter as a name value pair |
View.Builder |
addViewParams(Map<String,String> params)
Add a number of view parameters as name value pairs |
View |
build()
Returns a new ViewSettings object using the values in this
Builder . |
View.Builder |
viewType(ViewType viewType)
Sets the ViewType to use |
View.Builder |
writable(boolean writable)
Sets whether this view is writable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public View.Builder()
Method Detail |
---|
public View.Builder viewType(ViewType viewType)
ViewType
to use
viewType
- the ViewType
to use
Builder
public View.Builder writable(boolean writable)
addViewParam("writable", writable)
writable
- true
if this view is writable
, false
otherwise
Builder
public View.Builder addViewParam(String name, String value)
name
value
pair
name
- value
-
public View.Builder addViewParams(Map<String,String> params)
name
value
pairs
params
-
public View build()
ViewSettings
object using the values in this
Builder
.
ViewSettings
object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |