public class SplitTransition.SplitAction extends FormAction
Constructor and Description |
---|
SplitAction(T target,
boolean nav_first) |
Modifier and Type | Method and Description |
---|---|
ViewTransitionResult<T,K> |
action(Form f)
Perform the actual action based on the form parameters.
|
java.lang.String |
getConfirm(Form f)
should this action be confirmed before execute
If this returns null no confirm is required.
|
java.lang.String |
getHelp()
Return an optional help text for this action that can be presented as a tooltip etc.
|
getConfirmMessage, getMustValidate, getShortcut, getText, setConfirm, setConfirmArgs, setMustValidate, setNewWindow, wantNewWindow
public SplitAction(T target, boolean nav_first)
public java.lang.String getHelp()
FormAction
getHelp
in class FormAction
public ViewTransitionResult<T,K> action(Form f) throws ActionException
FormAction
TransitionException
to show an error message to the user.
or a ActionException
to produce a generic error message.action
in class FormAction
f
- FormActionException
public java.lang.String getConfirm(Form f)
FormAction
The form is passed to allow a sub-class to trigger confirm based on form parameters.
However in this case the implementation must handle an incomplete form.
Note that the message can be set by calling FormAction.setConfirm(String)
or
this method can be overidden
getConfirm
in class FormAction
f
- Form calling action.