public static class Wizard.LinearFlow extends java.lang.Object implements Wizard.Flow
Wizard.Flow interface,
designed to support the most common type of wizard flow - namely, a linear
wizard page flow (i.e. through all pages in the order that they are specified).
Therefore, this Wizard.Flow implementation simply traverses a collections of
WizardPanes.
For example of how to use this API, please refer to the Wizard
documentation
Wizard,
WizardPane| Constructor and Description |
|---|
LinearFlow(java.util.Collection<WizardPane> pages)
Creates a new LinearFlow instance that will allow for stepping through
the given collection of
WizardPane instances. |
LinearFlow(WizardPane... pages)
Creates a new LinearFlow instance that will allow for stepping through
the given varargs array of
WizardPane instances. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<WizardPane> |
advance(WizardPane currentPage)
Advances the wizard to the next page if possible.
|
boolean |
canAdvance(WizardPane currentPage)
Check if advancing to the next page is possible
|
public LinearFlow(java.util.Collection<WizardPane> pages)
WizardPane instances.public LinearFlow(WizardPane... pages)
WizardPane instances.public java.util.Optional<WizardPane> advance(WizardPane currentPage)
advance in interface Wizard.FlowcurrentPage - The current wizard pageOptional value containing the next wizard page.public boolean canAdvance(WizardPane currentPage)
canAdvance in interface Wizard.FlowcurrentPage - The current wizard page