|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.xwiki.gwt.user.client.ui.CompositeDialogBox
org.xwiki.gwt.user.client.ui.ComplexDialogBox
org.xwiki.gwt.user.client.ui.wizard.WizardDialog
public class WizardDialog
Wizard dialog class, used to display the current wizard step.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
WizardDialog(java.lang.String title,
com.google.gwt.user.client.ui.Image icon)
Builds a wizard dialog with the passed title and icon. |
|
| Method Summary | |
|---|---|
protected void |
addButton(WizardStep step,
NavigationListener.NavigationDirection direction,
com.google.gwt.user.client.ui.Panel container,
java.lang.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(java.lang.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. |
| Methods inherited from class org.xwiki.gwt.user.client.ui.ComplexDialogBox |
|---|
center, getBody, getFooter, getHeader, isCanceled, isLoading |
| Methods inherited from class org.xwiki.gwt.user.client.ui.CompositeDialogBox |
|---|
addCloseHandler, getDialog, hide, initWidget, isShowing, onClose |
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
|---|
getWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addDomHandler, addHandler, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, 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, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Constructor Detail |
|---|
public WizardDialog(java.lang.String title,
com.google.gwt.user.client.ui.Image icon)
title - the title of this wizard dialogicon - the icon of this wizard dialog| Method Detail |
|---|
public 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(java.lang.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,
java.lang.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)
listener to the list of listeners for the navigation events launched by this source.
addNavigationListener in interface SourcesNavigationEventslistener - the listener to addSourcesNavigationEvents.addNavigationListener(NavigationListener)public void removeNavigationListener(NavigationListener listener)
listener from the list of listeners for the navigation events launched by this source.
removeNavigationListener in interface SourcesNavigationEventslistener - the listener to removeSourcesNavigationEvents.removeNavigationListener(NavigationListener)public 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||