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.

@FunctionalInterface public interface WizardStepNextPromise
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 Type
    Method
    Description
    onNext(Wizard wizard, WizardStep current, WizardStep next)
    Called when the user attempts to navigate to the next step.
  • Method Details

    • onNext

      Promise<Boolean> onNext(Wizard wizard, WizardStep current, WizardStep next)
      Called when the user attempts to navigate to the next step.
      Parameters:
      wizard - the wizard instance
      current - the current step being left
      next - the next step to be entered
      Returns:
      a Promise that resolves to true to allow the transition, or false to stay on the current step