Interface WizardStepNextPromise
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface to handle the transition to the next step in a
Wizard workflow asynchronously.
When a WizardStepNextPromise is associated with a step, the navigation to the next step proceeds only if the promise
resolves to true.
-
Method Summary
Modifier and TypeMethodDescriptiononNext(Wizard wizard, WizardStep current, WizardStep next) Called when the user attempts to navigate to the next step.
-
Method Details
-
onNext
Called when the user attempts to navigate to the next step.- Parameters:
wizard- the wizard instancecurrent- the current step being leftnext- the next step to be entered- Returns:
- a
Promisethat resolves totrueto allow the transition, orfalseto stay on the current step
-