java.lang.Object
bayern.steinbrecher.wizard.WizardController
public final class WizardController
extends java.lang.Object
- Since:
- 1.0
- Author:
- Stefan Huber
-
Property Summary
Properties Type Property Description @NotNull javafx.beans.property.ReadOnlyBooleanPropertyatBeginning@NotNull javafx.beans.property.ReadOnlyBooleanPropertyatFinish@NotNull javafx.beans.property.MapProperty<java.lang.String,EmbeddedWizardPage<?>>visitablePages -
Constructor Summary
Constructors Constructor Description WizardController() -
Method Summary
Modifier and Type Method Description @NotNull javafx.beans.property.ReadOnlyBooleanPropertyatBeginningProperty()@NotNull javafx.beans.property.ReadOnlyBooleanPropertyatFinishProperty()@NotNull java.util.Map<java.lang.String,EmbeddedWizardPage<?>>getVisitablePages()Gets the value of the property visitablePages.@NotNull java.util.Optional<java.util.ArrayList<java.lang.String>>getVisitedPages()booleanisAtBeginning()Gets the value of the property atBeginning.booleanisAtFinish()Gets the value of the property atFinish.voidputPage(@NotNull java.lang.String key, @NotNull EmbeddedWizardPage<?> page)Adds the given page to the wizard and replaces pages with the same key but only if the page was not already visited.voidsetVisitablePages(@NotNull java.util.Map<java.lang.String,EmbeddedWizardPage<?>> visitablePages)Sets a new map of visitable pages.@NotNull javafx.beans.property.MapProperty<java.lang.String,EmbeddedWizardPage<?>>visitablePagesProperty()
-
Property Details
-
visitablePages
@NotNull public @NotNull javafx.beans.property.MapProperty<java.lang.String,EmbeddedWizardPage<?>> visitablePagesProperty- See Also:
getVisitablePages(),setVisitablePages(Map)
-
atBeginning
@NotNull public @NotNull javafx.beans.property.ReadOnlyBooleanProperty atBeginningProperty- See Also:
isAtBeginning()
-
atFinish
@NotNull public @NotNull javafx.beans.property.ReadOnlyBooleanProperty atFinishProperty- See Also:
isAtFinish()
-
-
Constructor Details
-
WizardController
public WizardController()
-
-
Method Details
-
visitablePagesProperty
@NotNull public @NotNull javafx.beans.property.MapProperty<java.lang.String,EmbeddedWizardPage<?>> visitablePagesProperty()- See Also:
getVisitablePages(),setVisitablePages(Map)
-
getVisitablePages
Gets the value of the property visitablePages.- Property description:
-
setVisitablePages
public void setVisitablePages(@NotNull @NotNull java.util.Map<java.lang.String,EmbeddedWizardPage<?>> visitablePages)Sets a new map of visitable pages. NOTE: Calling this method causes the wizard to reset to the first page and clear the history.- Parameters:
visitablePages- The map of pages to set.
-
putPage
public void putPage(@NotNull @NotNull java.lang.String key, @NotNull @NotNull EmbeddedWizardPage<?> 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. NOTE: The size ofpageis not considered anymore afterstart(...)was called.- Parameters:
key- The key the page is associated with.page- The page to add to the wizard.
-
getVisitedPages
@NotNull public @NotNull java.util.Optional<java.util.ArrayList<java.lang.String>> getVisitedPages() -
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()- See Also:
isAtFinish()
-
isAtFinish
public boolean isAtFinish()Gets the value of the property atFinish.- Property description:
-