java.lang.Object
bayern.steinbrecher.wizard.Wizard

public class Wizard
extends java.lang.Object
Represents a wizard for showing a sequence of 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.ReadOnlyBooleanProperty atBeginning  
    @NotNull javafx.beans.property.ReadOnlyBooleanProperty atFinish
    Property 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.ReadOnlyBooleanProperty atBeginningProperty()  
    @NotNull javafx.beans.property.ReadOnlyBooleanProperty atFinishProperty()
    Property containing a boolean value representing whether the current page shown is a last one.
    static @NotNull Wizard create​(@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.Parent getRoot()  
    @NotNull WizardState getState()
    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.
    boolean isAtBeginning()
    Gets the value of the property atBeginning.
    boolean isAtFinish()
    Returns a boolean value representing whether the current page shown is a last one.
    void put​(@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()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Property Details

    • state

      @NotNull public @NotNull javafx.beans.property.ReadOnlyObjectProperty<WizardState> stateProperty
      See Also:
      getState()
    • atBeginning

      @NotNull public @NotNull javafx.beans.property.ReadOnlyBooleanProperty atBeginningProperty
      See Also:
      isAtBeginning()
    • atFinish

      @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()
    • currentPage

      @NotNull public @NotNull javafx.beans.property.ReadOnlyProperty<WizardPage<?>> currentPageProperty
      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

      public void put​(@NotNull @NotNull java.lang.String key, @NotNull @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. 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

      @NotNull public @NotNull javafx.beans.property.ReadOnlyObjectProperty<WizardState> stateProperty()
      See Also:
      getState()
    • getState

      @NotNull public @NotNull WizardState 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:
      true only if the current page is a last one.
    • currentPageProperty

      @NotNull public @NotNull javafx.beans.property.ReadOnlyProperty<WizardPage<?>> currentPageProperty()
      See Also:
      getCurrentPage()
    • getCurrentPage

      @NotNull public @NotNull WizardPage<?> getCurrentPage()
      Gets the value of the property currentPage.
      Property description: