T
- public class ConfirmTransition<T> extends java.lang.Object implements ExtraFormTransition<T>
ForwardTransition
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FORCE_CONFIRM_ATTR
attribute that that can be added to an AppContext to convert ConfirmTransition
into a single action form (ie with a default action) for api use
|
static java.lang.String |
NO |
static java.lang.String |
YES |
Constructor and Description |
---|
ConfirmTransition(java.lang.String text,
DirectTransition<T> yes,
DirectTransition<T> no) |
Modifier and Type | Method and Description |
---|---|
void |
buildForm(Form f,
T target,
AppContext c)
Build the transition form.
|
<X extends ContentBuilder> |
getExtraHtml(X cb,
SessionService<?> op,
T target)
Add the extra content to be shown with the transition
|
FormResult |
getResult(TransitionVisitor<T> vis) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExtraHtml
public static final java.lang.String FORCE_CONFIRM_ATTR
public static final java.lang.String NO
public static final java.lang.String YES
public ConfirmTransition(java.lang.String text, DirectTransition<T> yes, DirectTransition<T> no)
public void buildForm(Form f, T target, AppContext c) throws TransitionException
BaseFormTransition
buildForm
in interface BaseFormTransition<T>
f
- Form to be builttarget
- target ObjectTransitionException
public <X extends ContentBuilder> X getExtraHtml(X cb, SessionService<?> op, T target)
ExtraContent
getExtraHtml
in interface ExtraContent<T>
public FormResult getResult(TransitionVisitor<T> vis) throws TransitionException
getResult
in interface FormTransition<T>
getResult
in interface Transition<T>
TransitionException