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.ReadOnlyBooleanPropertyfinishDisallowed@NotNull javafx.beans.property.ReadOnlyBooleanPropertynextDisallowedjavafx.beans.property.ReadOnlyBooleanPropertypreviousDisallowed@NotNull javafx.beans.property.MapProperty<java.lang.String,WizardPage<?,?>>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 javafx.beans.property.ReadOnlyBooleanPropertyfinishDisallowedProperty()@NotNull java.util.Map<java.lang.String,WizardPage<?,?>>getVisitablePages()@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.booleanisFinishDisallowed()Gets the value of the property finishDisallowed.booleanisNextDisallowed()Gets the value of the property nextDisallowed.booleanisPreviousDisallowed()Gets the value of the property previousDisallowed.@NotNull javafx.beans.property.ReadOnlyBooleanPropertynextDisallowedProperty()javafx.beans.property.ReadOnlyBooleanPropertypreviousDisallowedProperty()voidputPage(@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.voidsetVisitablePages(@NotNull java.util.Map<java.lang.String,WizardPage<?,?>> visitablePages)Sets a new map of visitable pages.@NotNull javafx.beans.property.MapProperty<java.lang.String,WizardPage<?,?>>visitablePagesProperty()
-
Property Details
-
visitablePages
@NotNull public @NotNull javafx.beans.property.MapProperty<java.lang.String,WizardPage<?,?>> visitablePagesProperty- Since:
- 1.52
- 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()
-
previousDisallowed
public javafx.beans.property.ReadOnlyBooleanProperty previousDisallowedProperty- See Also:
isPreviousDisallowed()
-
nextDisallowed
@NotNull public @NotNull javafx.beans.property.ReadOnlyBooleanProperty nextDisallowedProperty- See Also:
isNextDisallowed()
-
finishDisallowed
@NotNull public @NotNull javafx.beans.property.ReadOnlyBooleanProperty finishDisallowedProperty- See Also:
isFinishDisallowed()
-
-
Constructor Details
-
WizardController
public WizardController()
-
-
Method Details
-
visitablePagesProperty
@NotNull public @NotNull javafx.beans.property.MapProperty<java.lang.String,WizardPage<?,?>> visitablePagesProperty()- Since:
- 1.52
- See Also:
getVisitablePages(),setVisitablePages(Map)
-
getVisitablePages
- Since:
- 1.52
-
setVisitablePages
public void setVisitablePages(@NotNull @NotNull java.util.Map<java.lang.String,WizardPage<?,?>> 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.- Since:
- 1.52
-
putPage
public void putPage(@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. 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.- Since:
- 1.52
-
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:
-
previousDisallowedProperty
public javafx.beans.property.ReadOnlyBooleanProperty previousDisallowedProperty()- See Also:
isPreviousDisallowed()
-
isPreviousDisallowed
public boolean isPreviousDisallowed()Gets the value of the property previousDisallowed.- Property description:
-
nextDisallowedProperty
@NotNull public @NotNull javafx.beans.property.ReadOnlyBooleanProperty nextDisallowedProperty()- See Also:
isNextDisallowed()
-
isNextDisallowed
public boolean isNextDisallowed()Gets the value of the property nextDisallowed.- Property description:
-
finishDisallowedProperty
@NotNull public @NotNull javafx.beans.property.ReadOnlyBooleanProperty finishDisallowedProperty()- See Also:
isFinishDisallowed()
-
isFinishDisallowed
public boolean isFinishDisallowed()Gets the value of the property finishDisallowed.- Property description:
-