Class ActionValidateBuilder
java.lang.Object
com.axelor.meta.schema.actions.validate.ActionValidateBuilder
The
ActionValidateBuilder
can be used to quickly define ActionValidate
manually,
especially when setting message to Response.setData(Object)
or with Response
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Return aMap
that represents the action validate.Set the action to be executed on error or alert message to make corrective measures, when error dialog is closed or alert dialog is canceled.setCancelBtnTitle
(String cancelBtnTitle) Set the title of the cancel buttonsetConfirmBtnTitle
(String confirmBtnTitle) Set the title of the confirm buttonsetMessage
(String message) Set the message to showSet the title of the modal/notification
-
Constructor Details
-
ActionValidateBuilder
-
-
Method Details
-
setMessage
Set the message to show- Parameters:
message
- the message to show- Returns:
- this
-
setTitle
Set the title of the modal/notification- Parameters:
title
- the title of the modal/notification- Returns:
- this
-
setAction
Set the action to be executed on error or alert message to make corrective measures, when error dialog is closed or alert dialog is canceled.- Parameters:
action
- the action to be executed- Returns:
- this
-
setConfirmBtnTitle
Set the title of the confirm button- Parameters:
confirmBtnTitle
- the title of the confirm button- Returns:
- this
-
setCancelBtnTitle
Set the title of the cancel button- Parameters:
cancelBtnTitle
- the title of the cancel button- Returns:
- this
-
build
Return aMap
that represents the action validate.- Returns:
- a
Map
-