Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public interface StepFlow.StepValidator

Decides whether the user may leave a step forwards.

Methods

public abstract boolean validate(StepFlow flow, int step)Called before the flow moves forwards from step.

Method details

validate

public abstract boolean validate(StepFlow flow, int step)
Called before the flow moves forwards from step.

Parameters

flow StepFlow
the flow
step int
the index of the step being left

Returns

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