Package org.jboss.hal.ballroom.wizard
Class Wizard<C,S extends Enum<S>>
- java.lang.Object
-
- org.jboss.hal.ballroom.wizard.Wizard<C,S>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceWizard.BackFunction<C,S extends Enum<S>>static classWizard.Builder<C,S extends Enum<S>>static interfaceWizard.CancelCallback<C>A callback executed whenever the user cancels the wizard.static interfaceWizard.CloseAction<C>An action executed when the user clicks on the close button of the success page.static interfaceWizard.FinishCallback<C,S extends Enum<S>>A callback executed when the user finishes last step.static interfaceWizard.NextFunction<C,S extends Enum<S>>static interfaceWizard.SuccessAction<C>An action executed when the user clicks on the success button of the success page.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CgetContext()static booleanisOpen()voidshow()Opens the wizard and reset the state, context and UI.voidshowError(String title, com.google.gwt.safehtml.shared.SafeHtml text)voidshowError(String title, com.google.gwt.safehtml.shared.SafeHtml text, boolean lastStep)voidshowError(String title, com.google.gwt.safehtml.shared.SafeHtml text, String error)voidshowError(String title, com.google.gwt.safehtml.shared.SafeHtml text, String error, boolean lastStep)voidshowProgress(String title, com.google.gwt.safehtml.shared.SafeHtml text)voidshowSuccess(String title, com.google.gwt.safehtml.shared.SafeHtml text)voidshowSuccess(String title, com.google.gwt.safehtml.shared.SafeHtml text, boolean lastStep)voidshowSuccess(String title, com.google.gwt.safehtml.shared.SafeHtml text, String successButton, Wizard.SuccessAction<C> successAction)voidshowSuccess(String title, com.google.gwt.safehtml.shared.SafeHtml text, String successButton, Wizard.SuccessAction<C> successAction, boolean lastStep)voidshowSuccess(String title, com.google.gwt.safehtml.shared.SafeHtml text, String successButton, Wizard.SuccessAction<C> successAction, Wizard.CloseAction<C> closeAction, boolean lastStep)voidshowSuccess(String title, com.google.gwt.safehtml.shared.SafeHtml text, Wizard.CloseAction<C> closeAction)voidshowSuccess(String title, com.google.gwt.safehtml.shared.SafeHtml text, Wizard.CloseAction<C> closeAction, boolean lastStep)voidshowWarning(String title, com.google.gwt.safehtml.shared.SafeHtml text, String okButton, Wizard.SuccessAction<C> okAction, boolean lastStep)
-
-
-
Method Detail
-
isOpen
public static boolean isOpen()
-
show
public void show()
Opens the wizard and reset the state, context and UI. If you override this method please make sure to callsuper.show()before you access or modify the context.
-
showProgress
public void showProgress(String title, com.google.gwt.safehtml.shared.SafeHtml text)
-
showSuccess
public void showSuccess(String title, com.google.gwt.safehtml.shared.SafeHtml text)
-
showSuccess
public void showSuccess(String title, com.google.gwt.safehtml.shared.SafeHtml text, boolean lastStep)
-
showSuccess
public void showSuccess(String title, com.google.gwt.safehtml.shared.SafeHtml text, Wizard.CloseAction<C> closeAction)
-
showSuccess
public void showSuccess(String title, com.google.gwt.safehtml.shared.SafeHtml text, Wizard.CloseAction<C> closeAction, boolean lastStep)
-
showSuccess
public void showSuccess(String title, com.google.gwt.safehtml.shared.SafeHtml text, String successButton, Wizard.SuccessAction<C> successAction)
-
showSuccess
public void showSuccess(String title, com.google.gwt.safehtml.shared.SafeHtml text, String successButton, Wizard.SuccessAction<C> successAction, boolean lastStep)
-
showSuccess
public void showSuccess(String title, com.google.gwt.safehtml.shared.SafeHtml text, String successButton, Wizard.SuccessAction<C> successAction, Wizard.CloseAction<C> closeAction, boolean lastStep)
-
showWarning
public void showWarning(String title, com.google.gwt.safehtml.shared.SafeHtml text, String okButton, Wizard.SuccessAction<C> okAction, boolean lastStep)
-
showError
public void showError(String title, com.google.gwt.safehtml.shared.SafeHtml text)
-
showError
public void showError(String title, com.google.gwt.safehtml.shared.SafeHtml text, boolean lastStep)
-
showError
public void showError(String title, com.google.gwt.safehtml.shared.SafeHtml text, String error)
-
showError
public void showError(String title, com.google.gwt.safehtml.shared.SafeHtml text, String error, boolean lastStep)
-
getContext
public C getContext()
-
-