@Deprecated public class EditorCallbackActionDefinition extends ConfiguredActionDefinition
EditorCallback
,
optionally performing validation beforehand.
This action is typically configured as a dialog/editor's 'commit' action (instead of a plain save action). It allows to keep the callback code close to that of the dialog/editor opening action.
Constructor and Description |
---|
EditorCallbackActionDefinition()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getSuccessActionName()
Deprecated.
Defines the success string to pass to the success callback when executed.
|
boolean |
isCallSuccess()
Deprecated.
Defines whether the action will invoke the success callback when executed (or alternatively the cancel callback).
|
boolean |
isValidationEnabled()
Deprecated.
Defines whether validation should be performed before invoking the callback.
|
void |
setCallSuccess(boolean callSuccess)
Deprecated.
|
void |
setSuccessActionName(String successActionName)
Deprecated.
|
void |
setValidationEnabled(boolean isValidationEnabled)
Deprecated.
|
getAvailability, getDescription, getErrorMessage, getFailureMessage, getI18nBasename, getIcon, getImplementationClass, getLabel, getName, getSuccessMessage, setAvailability, setDescription, setErrorMessage, setFailureMessage, setI18nBasename, setIcon, setImplementationClass, setLabel, setName, setSuccessMessage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getShortcut
public EditorCallbackActionDefinition()
public boolean isCallSuccess()
true
, i.e. success.public void setCallSuccess(boolean callSuccess)
public String getSuccessActionName()
"success"
.isCallSuccess()
,
EditorCallback.onSuccess(String)
public void setSuccessActionName(String successActionName)
public boolean isValidationEnabled()
false
, i.e. non-validated.EditorValidator
public void setValidationEnabled(boolean isValidationEnabled)
Copyright © 2020 Magnolia International Ltd.. All rights reserved.