Package com.axelor.meta.schema.actions
Class ActionView
- java.lang.Object
-
- com.axelor.meta.schema.actions.Action
-
- com.axelor.meta.schema.actions.ActionView
-
public class ActionView extends Action
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ActionView.ActionViewBuilder
TheActionView.ActionViewBuilder
can be used to quickly defineActionView
manually, especially when setting view toActionResponse
.static class
ActionView.Context
static class
ActionView.Param
static class
ActionView.View
-
Nested classes/interfaces inherited from class com.axelor.meta.schema.actions.Action
Action.Element
-
-
Constructor Summary
Constructors Constructor Description ActionView()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkPermission(ActionHandler handler)
static ActionView.ActionViewBuilder
define(String title)
Return an instance ofActionView.ActionViewBuilder
that can be used to quickly defineActionView
.Object
evaluate(ActionHandler handler)
Object
getContext()
String
getDomain()
Boolean
getHome()
String
getIcon()
String
getLocalizedTitle()
List<ActionView.Param>
getParams()
String
getTitle()
List<ActionView.View>
getViews()
void
setParams(List<ActionView.Param> params)
void
setTitle(String title)
void
setViews(List<ActionView.View> views)
protected Object
wrapper(Object value)
-
Methods inherited from class com.axelor.meta.schema.actions.Action
execute, getActionId, getModel, getModuleToCheck, getName, getXmlId, setActionId, setModel, setModuleToCheck, setName, setXmlId, test, toExpression, toString, wrap
-
-
-
-
Method Detail
-
getLocalizedTitle
public String getLocalizedTitle()
-
getTitle
public String getTitle()
-
setTitle
public void setTitle(String title)
-
getIcon
public String getIcon()
-
getHome
public Boolean getHome()
-
getDomain
public String getDomain()
-
getViews
public List<ActionView.View> getViews()
-
setViews
public void setViews(List<ActionView.View> views)
-
getContext
public Object getContext()
-
getParams
public List<ActionView.Param> getParams()
-
setParams
public void setParams(List<ActionView.Param> params)
-
evaluate
public Object evaluate(ActionHandler handler)
-
checkPermission
protected void checkPermission(ActionHandler handler)
- Overrides:
checkPermission
in classAction
-
define
public static ActionView.ActionViewBuilder define(String title)
Return an instance ofActionView.ActionViewBuilder
that can be used to quickly defineActionView
.- Parameters:
title
- the view title- Returns:
- an instance of
ActionView.ActionViewBuilder
-
-