|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WizardStep
Defines the behavior of a wizard step.
Method Summary | |
---|---|
com.google.gwt.user.client.ui.Widget |
display()
This method is called right after the wizard step has been successfully initialized. |
String |
getDirectionName(NavigationListener.NavigationDirection direction)
Allows this step to overwrite the default printed for the navigation directions. |
String |
getNextStep()
Returns the key of the next step in the wizard. |
Object |
getResult()
|
String |
getStepTitle()
|
EnumSet<NavigationListener.NavigationDirection> |
getValidDirections()
|
void |
init(Object data,
com.google.gwt.user.client.rpc.AsyncCallback<?> callback)
Initializes the current wizard step, according to the passed data. |
boolean |
isAutoSubmit()
|
void |
onCancel()
Called before canceling the current wizard step. |
void |
onSubmit(com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
Called before submitting the current wizard step. |
Method Detail |
---|
void init(Object data, com.google.gwt.user.client.rpc.AsyncCallback<?> callback)
getResult()
method of the previous step. The callback
parameter should
handle the asynchronous initialization of this wizard step.
data
- an object to pass to the wizard step, which can contain configuration datacallback
- the object to be notified when the wizard step has finished initializingcom.google.gwt.user.client.ui.Widget display()
String getStepTitle()
Object getResult()
getNextStep()
) or the previous in the navigation stack.void onSubmit(com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
callback
- the object to be notified when the submit is done; pass true
to notify that the submit
was successful and the wizard can move to the next step; pass false
if the user needs to
adjust the submitted databoolean isAutoSubmit()
true
if this step should be submitted automatically, false
otherwise; the
display()
method should return null
if the step is submitted automaticallyvoid onCancel()
String getNextStep()
onSubmit(AsyncCallback)
has returned successfully, so the computing of the next step can be done safely
at onSubmit(AsyncCallback)
time.
EnumSet<NavigationListener.NavigationDirection> getValidDirections()
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 |