Class ActionValidateBuilder
- java.lang.Object
-
- com.axelor.meta.schema.actions.validate.ActionValidateBuilder
-
public class ActionValidateBuilder extends Object
TheActionValidateBuilder
can be used to quickly defineActionValidate
manually, especially when setting message toResponse.setData(Object)
or withResponse
.
-
-
Constructor Summary
Constructors Constructor Description ActionValidateBuilder(ValidatorType validatorType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Map<String,String>>
build()
Return aMap
that represents the action validate.ActionValidateBuilder
setAction(String action)
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.ActionValidateBuilder
setCancelBtnTitle(String cancelBtnTitle)
Set the title of the cancel buttonActionValidateBuilder
setConfirmBtnTitle(String confirmBtnTitle)
Set the title of the confirm buttonActionValidateBuilder
setMessage(String message)
Set the message to showActionValidateBuilder
setTitle(String title)
Set the title of the modal/notification
-
-
-
Constructor Detail
-
ActionValidateBuilder
public ActionValidateBuilder(ValidatorType validatorType)
-
-
Method Detail
-
setMessage
public ActionValidateBuilder setMessage(String message)
Set the message to show- Parameters:
message
- the message to show- Returns:
- this
-
setTitle
public ActionValidateBuilder setTitle(String title)
Set the title of the modal/notification- Parameters:
title
- the title of the modal/notification- Returns:
- this
-
setAction
public ActionValidateBuilder setAction(String action)
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
public ActionValidateBuilder setConfirmBtnTitle(String confirmBtnTitle)
Set the title of the confirm button- Parameters:
confirmBtnTitle
- the title of the confirm button- Returns:
- this
-
setCancelBtnTitle
public ActionValidateBuilder setCancelBtnTitle(String cancelBtnTitle)
Set the title of the cancel button- Parameters:
cancelBtnTitle
- the title of the cancel button- Returns:
- this
-
-