public class CardSwitchAction extends java.lang.Object implements IFormAction
Constructor and Description |
---|
CardSwitchAction(CardFlow flow) |
CardSwitchAction(CardFlow flow,
java.lang.String cardToSwitch) |
Modifier and Type | Method and Description |
---|---|
IFlowState |
execute(IBndsFlow flow,
javax.servlet.http.HttpServletRequest request,
java.lang.String formName,
ActionInfo action,
java.util.Map<java.lang.String,UploadedFile> files) |
CardFlow |
getCardFlow() |
java.lang.String |
getCardToSwitch() |
java.lang.String |
getLabel() |
boolean |
isEnabled() |
public CardSwitchAction(CardFlow flow)
flow
- - the card to switch to is expected in RawActionInfo.getParameter()
.public CardSwitchAction(CardFlow flow, java.lang.String cardToSwitch)
flow
- cardToSwitch
- - if null the the card to switch to is taken from the
RawActionInfo.getParameter()
.public final CardFlow getCardFlow()
public final java.lang.String getCardToSwitch()
public IFlowState execute(IBndsFlow flow, javax.servlet.http.HttpServletRequest request, java.lang.String formName, ActionInfo action, java.util.Map<java.lang.String,UploadedFile> files)
execute
in interface IFormAction
public java.lang.String getLabel()