Interface WizardStepNextHandler

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 WizardStepNextHandler
Functional interface representing a callback mechanism for handling the transition from one step to the next in a wizard.

This callback is triggered when an attempt is made to advance from the current step to the next step in the wizard's sequence. It provides a mechanism to control whether the transition should proceed or be prevented based on custom logic.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onNext(Wizard wizard, WizardStep current, WizardStep next)
    Invoked when advancing from the current wizard step to the next step.
  • Method Details

    • onNext

      boolean onNext(Wizard wizard, WizardStep current, WizardStep next)
      Invoked when advancing from the current wizard step to the next step.
      Parameters:
      wizard - the wizard instance managing the steps
      current - the current step in the wizard
      next - the next step to transition to
      Returns:
      true if the transition to the next step is allowed, false otherwise