Package bayern.steinbrecher.wizard.pages
Class SelectionController<T extends java.lang.Comparable<? extends T>>
java.lang.Object
bayern.steinbrecher.wizard.WizardPageController<java.util.Optional<java.util.Set<T>>>
bayern.steinbrecher.wizard.pages.SelectionController<T>
- Type Parameters:
T- The type of the objects being able to select.
public class SelectionController<T extends java.lang.Comparable<? extends T>> extends WizardPageController<java.util.Optional<java.util.Set<T>>>
Represents controller for Selection.fxml.
- Since:
- 1.4
- Author:
- Stefan Huber
-
Property Summary
Properties Type Property Description @NotNull javafx.beans.property.ReadOnlyBooleanPropertyallSelected@NotNull javafx.beans.property.ReadOnlyBooleanPropertynothingSelected@NotNull javafx.beans.property.ReadOnlyIntegerPropertyselectedCount@NotNull javafx.beans.property.ReadOnlyIntegerPropertytotalCount -
Constructor Summary
Constructors Constructor Description SelectionController() -
Method Summary
Modifier and Type Method Description @NotNull javafx.beans.property.ReadOnlyBooleanPropertyallSelectedProperty()protected java.util.Optional<java.util.Set<T>>calculateResult()Calculates the actual result if any.intgetSelectedCount()Gets the value of the property selectedCount.intgetTotalCount()Gets the value of the property totalCount.booleanisAllSelected()Gets the value of the property allSelected.booleanisNothingSelected()Gets the value of the property nothingSelected.@NotNull javafx.beans.property.ReadOnlyBooleanPropertynothingSelectedProperty()@NotNull javafx.beans.property.ReadOnlyIntegerPropertyselectedCountProperty()voidsetOptions(@NotNull java.util.Set<T> options)Removes all options and replaces them with the new list of options.@NotNull javafx.beans.property.ReadOnlyIntegerPropertytotalCountProperty()Methods inherited from class bayern.steinbrecher.wizard.WizardPageController
bindValidProperty, getResourceValue, getResourceValues, getResult, isValid, validProperty
-
Property Details
-
selectedCount
@NotNull public @NotNull javafx.beans.property.ReadOnlyIntegerProperty selectedCountProperty- See Also:
getSelectedCount()
-
totalCount
@NotNull public @NotNull javafx.beans.property.ReadOnlyIntegerProperty totalCountProperty- See Also:
getTotalCount()
-
nothingSelected
@NotNull public @NotNull javafx.beans.property.ReadOnlyBooleanProperty nothingSelectedProperty- See Also:
isNothingSelected()
-
allSelected
@NotNull public @NotNull javafx.beans.property.ReadOnlyBooleanProperty allSelectedProperty- See Also:
isAllSelected()
-
-
Constructor Details
-
SelectionController
public SelectionController()
-
-
Method Details
-
setOptions
Removes all options and replaces them with the new list of options.- Parameters:
options- The list of new options.
-
calculateResult
Description copied from class:WizardPageControllerCalculates the actual result if any. It does not recognize any criteria about whether to return a result or not. This is handled byWizardPageController.getResult().- Specified by:
calculateResultin classWizardPageController<java.util.Optional<java.util.Set<T extends java.lang.Comparable<? extends T>>>>- Returns:
- The actual result if any.
- See Also:
WizardPageController.getResult()
-
selectedCountProperty
@NotNull public @NotNull javafx.beans.property.ReadOnlyIntegerProperty selectedCountProperty()- See Also:
getSelectedCount()
-
getSelectedCount
public int getSelectedCount()Gets the value of the property selectedCount.- Property description:
-
totalCountProperty
@NotNull public @NotNull javafx.beans.property.ReadOnlyIntegerProperty totalCountProperty()- See Also:
getTotalCount()
-
getTotalCount
public int getTotalCount()Gets the value of the property totalCount.- Property description:
-
nothingSelectedProperty
@NotNull public @NotNull javafx.beans.property.ReadOnlyBooleanProperty nothingSelectedProperty()- See Also:
isNothingSelected()
-
isNothingSelected
public boolean isNothingSelected()Gets the value of the property nothingSelected.- Property description:
-
allSelectedProperty
@NotNull public @NotNull javafx.beans.property.ReadOnlyBooleanProperty allSelectedProperty()- See Also:
isAllSelected()
-
isAllSelected
public boolean isAllSelected()Gets the value of the property allSelected.- Property description:
-