info.magnolia.ui.framework.action
Class ConfirmationAction
java.lang.Object
info.magnolia.ui.api.action.AbstractAction<ConfirmationActionDefinition>
info.magnolia.ui.framework.action.ConfirmationAction
- All Implemented Interfaces:
- Action
public class ConfirmationAction
- extends AbstractAction<ConfirmationActionDefinition>
Configurable confirmation action. Can be used to intercept the actual action with user feedback.
Allows configuration of a success action and a cancel action.
- See Also:
ConfirmationActionDefinition
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfirmationAction
public ConfirmationAction(ConfirmationActionDefinition definition,
JcrItemAdapter item,
UiContext uiContext,
ActionExecutor actionExecutor)
ConfirmationAction
public ConfirmationAction(ConfirmationActionDefinition definition,
List<JcrItemAdapter> items,
UiContext uiContext,
ActionExecutor actionExecutor)
execute
public void execute()
throws ActionExecutionException
- Description copied from interface:
Action
- Executes the action.
- Throws:
ActionExecutionException
- if an error occurs performing the action
getConfirmationHeader
protected String getConfirmationHeader()
throws Exception
- Throws:
Exception
getConfirmationMessage
protected String getConfirmationMessage()
throws Exception
- Throws:
Exception
getListOfItemPaths
protected String getListOfItemPaths()
onError
protected void onError(Exception e)
- Class that implement CommansActionBase should use
this in order to perform tasks or notification in case of error.
getItem
protected com.vaadin.data.Item getItem()
- Returns:
- the Item linked to this action. If this action is used for multi Item return null.
Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.