D
- ConfirmationActionDefinition
.public class ConfirmationAction<D extends ConfirmationActionDefinition> extends AbstractAction<D>
Constructor and Description |
---|
ConfirmationAction(D definition,
com.vaadin.data.Item item,
UiContext uiContext,
ActionExecutor actionExecutor,
info.magnolia.i18nsystem.SimpleTranslator i18n,
ContentConnector contentConnector) |
ConfirmationAction(D definition,
List<? extends com.vaadin.data.Item> items,
UiContext uiContext,
ActionExecutor actionExecutor,
info.magnolia.i18nsystem.SimpleTranslator i18n,
ContentConnector contentConnector) |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Executes the action.
|
protected String |
getConfirmationHeader() |
protected String |
getConfirmationMessage() |
protected com.vaadin.data.Item |
getItem() |
protected List<? extends com.vaadin.data.Item> |
getItems() |
protected String |
getListOfItemPaths() |
protected info.magnolia.i18nsystem.SimpleTranslator |
getSimpleTranslator() |
protected void |
onError(Exception e)
Class that implement CommansActionBase should use
this in order to perform tasks or notification in case of error.
|
getDefinition
public ConfirmationAction(D definition, com.vaadin.data.Item item, UiContext uiContext, ActionExecutor actionExecutor, info.magnolia.i18nsystem.SimpleTranslator i18n, ContentConnector contentConnector)
@Inject public ConfirmationAction(D definition, List<? extends com.vaadin.data.Item> items, UiContext uiContext, ActionExecutor actionExecutor, info.magnolia.i18nsystem.SimpleTranslator i18n, ContentConnector contentConnector)
public void execute() throws ActionExecutionException
Action
ActionExecutionException
- if an error occurs performing the actionprotected String getListOfItemPaths()
protected void onError(Exception e)
protected com.vaadin.data.Item getItem()
protected List<? extends com.vaadin.data.Item> getItems()
protected info.magnolia.i18nsystem.SimpleTranslator getSimpleTranslator()
Copyright © 2017 Magnolia International Ltd.. All rights reserved.