|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.gwt.user.client.ui.wizard.Wizard
public class Wizard
Wizard to handle the loading and navigation in a list of chained dialogs.
| Nested Class Summary | |
|---|---|
protected class |
Wizard.AbstractDefaultAsyncCallback<T>
Asynchronous callback adapter to handle the callback fails by displaying the error inside the dialog. |
| Nested classes/interfaces inherited from interface org.xwiki.gwt.user.client.ui.wizard.NavigationListener |
|---|
NavigationListener.NavigationDirection |
| Field Summary | |
|---|---|
protected WizardStep |
currentStep
The current step of the wizard. |
protected WizardDialog |
dialog
The dialog in which the wizard steps are loaded. |
protected java.util.Stack<java.lang.String> |
navigationStack
Navigation stack to store the user's path through the chain of wizard steps. |
protected WizardStepProvider |
provider
The wizard step provider to get the steps for the next wizard dialogs. |
protected java.util.List<WizardListener> |
wizardListeners
The list of wizard listeners to be notified by this wizard on events. |
| Constructor Summary | |
|---|---|
Wizard(java.lang.String wizardTitle,
com.google.gwt.user.client.ui.Image wizardIcon)
Builds a wizard from the passed title and with the specified icon. |
|
| Method Summary | |
|---|---|
void |
addWizardListener(WizardListener listener)
Adds a wizard listener to the list notified by this wizard. |
WizardStepProvider |
getProvider()
|
protected java.lang.Object |
getResult()
|
void |
hideDialog()
Helper function to hide the dialog and mark that it's a programmatic close not a user close. |
protected void |
initAndDisplayCurrentStep(java.lang.Object data)
Initializes and displays the current wizard step, with the passed data. |
protected void |
onCancel()
Handle cancel of the whole wizard. |
void |
onClose(com.google.gwt.event.logical.shared.CloseEvent<CompositeDialogBox> event)
|
void |
onDirection(NavigationListener.NavigationDirection direction)
Triggered when a navigation event takes place. |
protected void |
onFinish()
Handle commanding the finish of the whole wizard. |
protected void |
onNext()
Handle advancing to the next step. |
protected void |
onPrevious()
Handle going to the previous step. |
void |
removeWizardListener(WizardListener listener)
Removes the specified wizard listener from the list notified by this wizard. |
void |
setProvider(WizardStepProvider provider)
|
void |
start(java.lang.String startStep,
java.lang.Object data)
Shows the wizard from the starting step, with the passed data. |
protected void |
unloadCurrentStep()
Prepares the current step to be unloaded (remove all listeners, etc.), to be executed before loading a next (or previous) step. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.util.List<WizardListener> wizardListeners
protected final java.util.Stack<java.lang.String> navigationStack
protected WizardStepProvider provider
protected final WizardDialog dialog
protected WizardStep currentStep
| Constructor Detail |
|---|
public Wizard(java.lang.String wizardTitle,
com.google.gwt.user.client.ui.Image wizardIcon)
wizardTitle - the title of this wizardwizardIcon - the icon of this wizard| Method Detail |
|---|
public WizardStepProvider getProvider()
public void setProvider(WizardStepProvider provider)
provider - the wizard step provider to set
public void start(java.lang.String startStep,
java.lang.Object data)
startStep - the name of the start step for this wizarddata - the input data for this wizard, to pass to the start stepprotected void initAndDisplayCurrentStep(java.lang.Object data)
data - the data to initialize the current step withprotected void unloadCurrentStep()
public void onDirection(NavigationListener.NavigationDirection direction)
onDirection in interface NavigationListenerdirection - the direction of the navigation eventNavigationListener.onDirection(NavigationDirection)protected void onCancel()
protected void onPrevious()
protected void onNext()
protected void onFinish()
protected java.lang.Object getResult()
public void addWizardListener(WizardListener listener)
listener - the listener to addpublic void removeWizardListener(WizardListener listener)
listener - the listener to removepublic void onClose(com.google.gwt.event.logical.shared.CloseEvent<CompositeDialogBox> event)
onClose in interface com.google.gwt.event.logical.shared.CloseHandler<CompositeDialogBox>CloseHandler.onClose(CloseEvent)public void hideDialog()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||