java.lang.Object
org.controlsfx.dialog.Wizard.LinearFlow
- All Implemented Interfaces:
Wizard.Flow
- Enclosing class:
- Wizard
LinearFlow is an implementation of the
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
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLinearFlow(Collection<WizardPane> pages) Creates a new LinearFlow instance that will allow for stepping through the given collection ofWizardPaneinstances.LinearFlow(WizardPane... pages) Creates a new LinearFlow instance that will allow for stepping through the given varargs array ofWizardPaneinstances. -
Method Summary
Modifier and TypeMethodDescriptionadvance(WizardPane currentPage) Advances the wizard to the next page if possible.booleancanAdvance(WizardPane currentPage) Check if advancing to the next page is possible
-
Constructor Details
-
LinearFlow
Creates a new LinearFlow instance that will allow for stepping through the given collection ofWizardPaneinstances. -
LinearFlow
Creates a new LinearFlow instance that will allow for stepping through the given varargs array ofWizardPaneinstances.
-
-
Method Details
-
advance
Advances the wizard to the next page if possible.- Specified by:
advancein interfaceWizard.Flow- Parameters:
currentPage- The current wizard page- Returns:
Optionalvalue containing the next wizard page.
-
canAdvance
Check if advancing to the next page is possible- Specified by:
canAdvancein interfaceWizard.Flow- Parameters:
currentPage- The current wizard page- Returns:
- true if it is possible to advance to the next page, false otherwise.
-