Package bayern.steinbrecher.wizard.pages
Class SelectionController<T extends java.lang.Comparable<T>>
java.lang.Object
bayern.steinbrecher.wizard.WizardableController<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<T>> extends WizardableController<java.util.Optional<java.util.Set<T>>>
Represents controller for Selection.fxml.
- Since:
- 1.4
- Author:
- Stefan Huber
-
Property Summary
Properties Type Property Description javafx.beans.property.ReadOnlyBooleanPropertyallSelectedReturns the property representing a boolean indicating whether every entry is currently selected.javafx.beans.property.ReadOnlyBooleanPropertynothingSelectedReturns the property representing a boolean indicating whether no entry is currently selected.javafx.beans.property.ReadOnlyIntegerPropertyselectedCountReturns the property representing the number of currently selected fields.javafx.beans.property.ReadOnlyIntegerPropertytotalCountReturns the property representing the total number of entries to select. -
Constructor Summary
Constructors Constructor Description SelectionController() -
Method Summary
Modifier and Type Method Description javafx.beans.property.ReadOnlyBooleanPropertyallSelectedProperty()Returns the property representing a boolean indicating whether every entry is currently selected.protected java.util.Optional<java.util.Set<T>>calculateResult()Calculates the actual result if any.protected java.util.Optional<java.util.ResourceBundle>getResourceBundle()Returns the resource bundle which contains the resources that the content of theWizardPagerequires.intgetSelectedCount()Returns the number of currently selected fields.intgetTotalCount()The total number of entries to select.booleanisAllSelected()Checks whether currently every entry is selected.booleanisNothingSelected()Checks whether currently no entry is selected.javafx.beans.property.ReadOnlyBooleanPropertynothingSelectedProperty()Returns the property representing a boolean indicating whether no entry is currently selected.javafx.beans.property.ReadOnlyIntegerPropertyselectedCountProperty()Returns the property representing the number of currently selected fields.voidsetOptions(java.util.Set<T> options)Removes all options and replaces them with the new list of options.javafx.beans.property.ReadOnlyIntegerPropertytotalCountProperty()Returns the property representing the total number of entries to select.Methods inherited from class bayern.steinbrecher.wizard.WizardableController
bindValidProperty, getResourceValue, getResourceValues, getResult, getStage, hasUserAbborted, isValid, setStage, stageProperty, validProperty
-
Property Details
-
selectedCount
public javafx.beans.property.ReadOnlyIntegerProperty selectedCountPropertyReturns the property representing the number of currently selected fields.- See Also:
getSelectedCount()
-
totalCount
public javafx.beans.property.ReadOnlyIntegerProperty totalCountPropertyReturns the property representing the total number of entries to select.- See Also:
getTotalCount()
-
nothingSelected
public javafx.beans.property.ReadOnlyBooleanProperty nothingSelectedPropertyReturns the property representing a boolean indicating whether no entry is currently selected.- See Also:
isNothingSelected()
-
allSelected
public javafx.beans.property.ReadOnlyBooleanProperty allSelectedPropertyReturns the property representing a boolean indicating whether every entry is currently selected.- 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
Calculates the actual result if any. It does not recognize any criteria about whether to return a result or not. This is handled byWizardableController.getResult().- Specified by:
calculateResultin classWizardableController<java.util.Optional<java.util.Set<T extends java.lang.Comparable<T>>>>- Returns:
- The actual result if any.
- See Also:
WizardableController.getResult()
-
selectedCountProperty
public javafx.beans.property.ReadOnlyIntegerProperty selectedCountProperty()Returns the property representing the number of currently selected fields.- See Also:
getSelectedCount()
-
getSelectedCount
public int getSelectedCount()Returns the number of currently selected fields.- Returns:
- The number of currently selected fields.
-
totalCountProperty
public javafx.beans.property.ReadOnlyIntegerProperty totalCountProperty()Returns the property representing the total number of entries to select.- See Also:
getTotalCount()
-
getTotalCount
public int getTotalCount()The total number of entries to select.- Returns:
- The total number of entries to select.
-
nothingSelectedProperty
public javafx.beans.property.ReadOnlyBooleanProperty nothingSelectedProperty()Returns the property representing a boolean indicating whether no entry is currently selected.- See Also:
isNothingSelected()
-
isNothingSelected
public boolean isNothingSelected()Checks whether currently no entry is selected.- Returns:
trueonly if no entry is selected.
-
allSelectedProperty
public javafx.beans.property.ReadOnlyBooleanProperty allSelectedProperty()Returns the property representing a boolean indicating whether every entry is currently selected.- See Also:
isAllSelected()
-
isAllSelected
public boolean isAllSelected()Checks whether currently every entry is selected.- Returns:
trueonly if every entry is selected.
-
getResourceBundle
protected java.util.Optional<java.util.ResourceBundle> getResourceBundle()Returns the resource bundle which contains the resources that the content of theWizardPagerequires.- Specified by:
getResourceBundlein classWizardableController<java.util.Optional<java.util.Set<T extends java.lang.Comparable<T>>>>- Returns:
- The resource bundle which contains the resources that the content of the
WizardPagerequires.
-