java.lang.Object
bayern.steinbrecher.wizard.Wizard
public class Wizard
extends java.lang.Object
Represents a wizard for showing a sequence of
You also can style it using CSS. Following CSS classes are available:
Panes. You can step back and forward on these Panes and
only can close is on the last page.You also can style it using CSS. Following CSS classes are available:
- wizard
- wizard-content
- wizard-controls
- Since:
- 1.0
- Author:
- Stefan Huber
-
Property Summary
Properties Type Property Description @NotNull javafx.beans.property.ReadOnlyBooleanPropertyatBeginning@NotNull javafx.beans.property.ReadOnlyBooleanPropertyatFinishProperty containing a boolean value representing whether the current page shown is a last one.@NotNull javafx.beans.property.ReadOnlyProperty<WizardPage<?>>currentPage@NotNull javafx.beans.property.ReadOnlyObjectProperty<WizardState>state -
Method Summary
Modifier and Type Method Description @NotNull javafx.beans.property.ReadOnlyBooleanPropertyatBeginningProperty()@NotNull javafx.beans.property.ReadOnlyBooleanPropertyatFinishProperty()Property containing a boolean value representing whether the current page shown is a last one.static @NotNull Wizardcreate(@NotNull java.util.Map<java.lang.String,WizardPage<?>> pages)@NotNull javafx.beans.property.ReadOnlyProperty<WizardPage<?>>currentPageProperty()@NotNull WizardPage<?>getCurrentPage()Gets the value of the property currentPage.@NotNull javafx.scene.ParentgetRoot()@NotNull WizardStategetState()Gets the value of the property state.@NotNull java.util.Optional<java.util.ArrayList<java.lang.String>>getVisitedPages()Returns the list of visited pages if the wizard finished.booleanisAtBeginning()Gets the value of the property atBeginning.booleanisAtFinish()Returns a boolean value representing whether the current page shown is a last one.voidput(@NotNull java.lang.String key, @NotNull WizardPage<?> page)Adds the given page to the wizard and replaces pages with the same key but only if the page was not already visited.@NotNull javafx.beans.property.ReadOnlyObjectProperty<WizardState>stateProperty()
-
Property Details
-
state
- See Also:
getState()
-
atBeginning
@NotNull public @NotNull javafx.beans.property.ReadOnlyBooleanProperty atBeginningProperty- See Also:
isAtBeginning()
-
atFinish
@NotNull public @NotNull javafx.beans.property.ReadOnlyBooleanProperty atFinishPropertyProperty containing a boolean value representing whether the current page shown is a last one.- See Also:
isAtFinish()
-
currentPage
- See Also:
getCurrentPage()
-
-
Method Details
-
create
@Contract("_ -> new") @NotNull public static @NotNull Wizard create(@NotNull @NotNull java.util.Map<java.lang.String,WizardPage<?>> pages) -
put
Adds the given page to the wizard and replaces pages with the same key but only if the page was not already visited. This method can be used if a page of the wizard is depending on the result of a previous one.- Parameters:
key- The key the page is associated with.page- The page to add to the wizard.
-
getRoot
@NotNull public @NotNull javafx.scene.Parent getRoot() -
stateProperty
- See Also:
getState()
-
getState
Gets the value of the property state.- Property description:
-
getVisitedPages
@NotNull public @NotNull java.util.Optional<java.util.ArrayList<java.lang.String>> getVisitedPages()Returns the list of visited pages if the wizard finished. -
atBeginningProperty
@NotNull public @NotNull javafx.beans.property.ReadOnlyBooleanProperty atBeginningProperty()- See Also:
isAtBeginning()
-
isAtBeginning
public boolean isAtBeginning()Gets the value of the property atBeginning.- Property description:
-
atFinishProperty
@NotNull public @NotNull javafx.beans.property.ReadOnlyBooleanProperty atFinishProperty()Property containing a boolean value representing whether the current page shown is a last one.- See Also:
isAtFinish()
-
isAtFinish
public boolean isAtFinish()Returns a boolean value representing whether the current page shown is a last one.- Returns:
trueonly if the current page is a last one.
-
currentPageProperty
@NotNull public @NotNull javafx.beans.property.ReadOnlyProperty<WizardPage<?>> currentPageProperty()- See Also:
getCurrentPage()
-
getCurrentPage
Gets the value of the property currentPage.- Property description:
-