public class WizardDialog extends ComplexDialogBox implements SourcesNavigationEvents
| Constructor and Description |
|---|
WizardDialog(String title,
com.google.gwt.user.client.ui.Image icon)
Builds a wizard dialog with the passed title and icon.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addButton(WizardStep step,
NavigationListener.NavigationDirection direction,
com.google.gwt.user.client.ui.Panel container,
String defaultLabel)
Adds the button for the specified direction for the step in the passed container.
|
void |
addNavigationListener(NavigationListener listener)
Adds the
listener to the list of listeners for the navigation events launched by this source. |
void |
displayStep(WizardStep step,
boolean hasPrevious)
Displays the passed wizard step in this dialog.
|
protected void |
fillButtonsContainers(WizardStep step,
boolean hasPrevious)
Fill the buttons containers according to the passed wizard step valid directions.
|
void |
removeNavigationListener(NavigationListener listener)
Removes the
listener from the list of listeners for the navigation events launched by this source. |
void |
setCanceled(boolean canceled)
Sets the canceled state of this dialog.
|
void |
setLoading(boolean loading)
Toggles the loading state on the current dialog (busy icon and disabled buttons).
|
void |
showError(Throwable caught)
If an error occurred on the server while fulfilling the request then this method can be used to display the error
message to the user.
|
center, getBody, getFooter, getHeader, isCanceled, isLoadingaddCloseHandler, getDialog, hide, initWidget, isShowing, onCloseclaimElement, getWidget, initializeClaimedElement, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringpublic WizardDialog(String title, com.google.gwt.user.client.ui.Image icon)
title - the title of this wizard dialogicon - the icon of this wizard dialogpublic void displayStep(WizardStep step, boolean hasPrevious)
step - the step to display in this dialoghasPrevious - true if the currently displayed step has a previous step in the wizard, false otherwise.public void setLoading(boolean loading)
setLoading in class ComplexDialogBoxloading - true if the dialog should enter the loading state, false if it should exit.public void showError(Throwable caught)
Expose the protected ComplexDialogBox.showError(Throwable) method.
showError in class ComplexDialogBoxcaught - the exception that has been caughtComplexDialogBox.showError(Throwable)protected void fillButtonsContainers(WizardStep step, boolean hasPrevious)
NavigationListener.NavigationDirection.PREVIOUS is valid for the current step.step - the current wizard stephasPrevious - true if the previous button can be displayed (i.e. there is a previous step in the displayed
wizard), false otherwise.protected void addButton(WizardStep step, NavigationListener.NavigationDirection direction, com.google.gwt.user.client.ui.Panel container, String defaultLabel)
step - the step to process (add buttons for)direction - the direction of the button to addcontainer - the UI container in which the button needs to be addeddefaultLabel - the default label of the button, if the step does not specify any.public void addNavigationListener(NavigationListener listener)
SourcesNavigationEventslistener to the list of listeners for the navigation events launched by this source.addNavigationListener in interface SourcesNavigationEventslistener - the listener to addpublic void removeNavigationListener(NavigationListener listener)
SourcesNavigationEventslistener from the list of listeners for the navigation events launched by this source.removeNavigationListener in interface SourcesNavigationEventslistener - the listener to removepublic void setCanceled(boolean canceled)
Expose the protected ComplexDialogBox.setCanceled(boolean) method.
setCanceled in class ComplexDialogBoxcanceled - true if the dialog was canceled, false otherwiseComplexDialogBox.setCanceled(boolean)Copyright © 2004–2016 XWiki. All rights reserved.