org.araneaframework.uilib.flowcontext.transitionhandler
Class CancelConfirmingTransitionHandler
java.lang.Object
org.araneaframework.framework.container.StandardFlowContainerWidget.StandardTransitionHandler
org.araneaframework.uilib.flowcontext.transitionhandler.CancelConfirmingTransitionHandler
- All Implemented Interfaces:
- FlowContext.TransitionHandler, Serializable
- public class CancelConfirmingTransitionHandler
- extends StandardFlowContainerWidget.StandardTransitionHandler
FlowContext.TransitionHandler with some
special confirmation handling for
FlowContext.TRANSITION_CANCEL events.
It attaches event listener to active flow when its cancellation request is
received and asks user to confirm the action whenever the predicate
shouldConfirm evaluates to true.
- Since:
- 1.1
- Author:
- Taimo Peelo (taimo@araneaframework.org)
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CancelConfirmingTransitionHandler
public CancelConfirmingTransitionHandler(org.apache.commons.collections.Predicate shouldConfirm,
String confirmationMessage)
doTransition
public void doTransition(int transitionType,
Widget activeFlow,
org.apache.commons.collections.Closure transition)
- Specified by:
doTransition in interface FlowContext.TransitionHandler- Overrides:
doTransition in class StandardFlowContainerWidget.StandardTransitionHandler
requireConfirmationContext
protected ConfirmationContext requireConfirmationContext(Widget activeFlow)