Class ActionValidateBuilder
- java.lang.Object
-
- com.axelor.meta.schema.actions.validate.ActionValidateBuilder
-
public class ActionValidateBuilder extends Object
TheActionValidateBuildercan be used to quickly defineActionValidatemanually, 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 aMapthat represents the action validate.ActionValidateBuildersetAction(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.ActionValidateBuildersetCancelBtnTitle(String cancelBtnTitle)Set the title of the cancel buttonActionValidateBuildersetConfirmBtnTitle(String confirmBtnTitle)Set the title of the confirm buttonActionValidateBuildersetMessage(String message)Set the message to showActionValidateBuildersetTitle(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
-
-