|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WizardStep
Defines the behaviour of a wizard step.
| Method Summary | |
|---|---|
com.google.gwt.user.client.ui.Widget |
display()
|
java.lang.String |
getDirectionName(NavigationListener.NavigationDirection direction)
Allows this step to overwrite the default printed for the navigation directions. |
java.lang.String |
getNextStep()
Returns the key of the next step in the wizard. |
java.lang.Object |
getResult()
|
java.lang.String |
getStepTitle()
|
java.util.EnumSet<NavigationListener.NavigationDirection> |
getValidDirections()
|
void |
init(java.lang.Object data,
com.google.gwt.user.client.rpc.AsyncCallback<?> cb)
Initializes the current wizard step, according to the passed data. |
void |
onCancel()
Called before canceling the current wizard step. |
void |
onSubmit(com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Boolean> async)
Called before submitting the current wizard step. |
| Method Detail |
|---|
void init(java.lang.Object data,
com.google.gwt.user.client.rpc.AsyncCallback<?> cb)
getResult() function of the previous step. The cb parameter should handle the asynchronous
initialization of this wizard step, and should return normally through onSuccess() and error through
onFailure().
data - an object to pass to the wizard step, which can contain configuration data, etc.cb - callback to handle asynchronous loading of this wizard stepcom.google.gwt.user.client.ui.Widget display()
java.lang.String getStepTitle()
java.lang.Object getResult()
getNextStep()) or
the previous in the navigation stack.void onSubmit(com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Boolean> async)
async - asynchronous callback to handle asynchronous nature of this function (in case of validation on the
server side, for example).void onCancel()
java.lang.String getNextStep()
onSubmit(AsyncCallback) has returned successfully, so the computing of the next step can be done safely
at onSubmit(AsyncCallback) time.
java.util.EnumSet<NavigationListener.NavigationDirection> getValidDirections()
java.lang.String getDirectionName(NavigationListener.NavigationDirection direction)
direction - the direction to get the name for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||