Interface StepFlow.StepValidator

Enclosing class:
StepFlow

public static interface StepFlow.StepValidator
Decides whether the user may leave a step forwards.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    validate(StepFlow flow, int step)
    Called before the flow moves forwards from step.
  • Method Details

    • validate

      boolean validate(StepFlow flow, int step)

      Called before the flow moves forwards from step.

      Parameters
      • flow: the flow

      • step: the index of the step being left

      Returns

      true to allow the move, false to stay and mark the step as an error