Package com.axelor.meta.schema.actions
Class ActionView.ActionViewBuilder
- java.lang.Object
-
- com.axelor.meta.schema.actions.ActionView.ActionViewBuilder
-
- Enclosing class:
- ActionView
public static final class ActionView.ActionViewBuilder extends Object
TheActionView.ActionViewBuilder
can be used to quickly defineActionView
manually, especially when setting view toActionResponse
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionView.ActionViewBuilder
add(String type)
ActionView.ActionViewBuilder
add(String type, String name)
ActionView.ActionViewBuilder
context(String key, Object value)
ActionView.ActionViewBuilder
domain(String domain)
ActionView
get()
Get the preparedActionView
.ActionView.ActionViewBuilder
icon(String icon)
Map<String,Object>
map()
Return aMap
that represents the action view.ActionView.ActionViewBuilder
model(String model)
ActionView.ActionViewBuilder
name(String name)
ActionView.ActionViewBuilder
param(String key, String value)
-
-
-
Method Detail
-
name
public ActionView.ActionViewBuilder name(String name)
-
model
public ActionView.ActionViewBuilder model(String model)
-
icon
public ActionView.ActionViewBuilder icon(String icon)
-
add
public ActionView.ActionViewBuilder add(String type)
-
add
public ActionView.ActionViewBuilder add(String type, String name)
-
domain
public ActionView.ActionViewBuilder domain(String domain)
-
context
public ActionView.ActionViewBuilder context(String key, Object value)
-
param
public ActionView.ActionViewBuilder param(String key, String value)
-
get
public ActionView get()
Get the preparedActionView
.- Returns:
- an instance of
ActionView
-
-