Package bayern.steinbrecher.wizard.pages
Class SelectionGroupController<T extends java.lang.Comparable<T>,G>
java.lang.Object
bayern.steinbrecher.wizard.WizardPageController<java.util.Optional<java.util.Map<T,G>>>
bayern.steinbrecher.wizard.pages.SelectionGroupController<T,G>
- Type Parameters:
T- The type of the options to select.G- The type of the groups to associate items with.
public class SelectionGroupController<T extends java.lang.Comparable<T>,G> extends WizardPageController<java.util.Optional<java.util.Map<T,G>>>
The controller of the SelectionGroup.
- Since:
- 1.51
- Author:
- Stefan Huber
-
Property Summary
Properties Type Property Description javafx.beans.property.ReadOnlyBooleanPropertyallSelectedjavafx.beans.property.ReadOnlyBooleanPropertycurrentGroupSelectedjavafx.beans.property.ReadOnlyBooleanPropertynothingSelectedjavafx.beans.property.ReadOnlyIntegerPropertyselectedCountjavafx.beans.property.ReadOnlyMapProperty<G,? extends javafx.beans.property.ReadOnlyIntegerProperty>selectedPerGroupjavafx.beans.property.ReadOnlyIntegerPropertytotalCount -
Constructor Summary
Constructors Constructor Description SelectionGroupController() -
Method Summary
Modifier and Type Method Description javafx.beans.property.ReadOnlyBooleanPropertyallSelectedProperty()protected java.util.Optional<java.util.Map<T,G>>calculateResult()Calculates the actual result if any.javafx.beans.property.ReadOnlyBooleanPropertycurrentGroupSelectedProperty()java.util.Set<G>getGroups()java.util.Set<T>getOptions()intgetSelectedCount()Gets the value of the property selectedCount.javafx.collections.ObservableMap<G,? extends javafx.beans.property.ReadOnlyIntegerProperty>getSelectedPerGroup()Gets the value of the property selectedPerGroup.intgetTotalCount()Gets the value of the property totalCount.booleanisAllSelected()Gets the value of the property allSelected.booleanisCurrentGroupSelected()Gets the value of the property currentGroupSelected.booleanisNothingSelected()Gets the value of the property nothingSelected.javafx.beans.property.ReadOnlyBooleanPropertynothingSelectedProperty()javafx.beans.property.ReadOnlyIntegerPropertyselectedCountProperty()javafx.beans.property.ReadOnlyMapProperty<G,? extends javafx.beans.property.ReadOnlyIntegerProperty>selectedPerGroupProperty()voidsetGroups(com.google.common.collect.BiMap<G,javafx.scene.paint.Color> groups)voidsetOptions(java.util.Set<T> options)javafx.beans.property.ReadOnlyIntegerPropertytotalCountProperty()Methods inherited from class bayern.steinbrecher.wizard.WizardPageController
bindValidProperty, getResourceValue, getResourceValues, getResult, isValid, validProperty
-
Property Details
-
currentGroupSelected
public javafx.beans.property.ReadOnlyBooleanProperty currentGroupSelectedProperty- See Also:
isCurrentGroupSelected()
-
selectedPerGroup
public javafx.beans.property.ReadOnlyMapProperty<G,? extends javafx.beans.property.ReadOnlyIntegerProperty> selectedPerGroupProperty- See Also:
getSelectedPerGroup()
-
totalCount
public javafx.beans.property.ReadOnlyIntegerProperty totalCountProperty- See Also:
getTotalCount()
-
selectedCount
public javafx.beans.property.ReadOnlyIntegerProperty selectedCountProperty- See Also:
getSelectedCount()
-
nothingSelected
public javafx.beans.property.ReadOnlyBooleanProperty nothingSelectedProperty- See Also:
isNothingSelected()
-
allSelected
public javafx.beans.property.ReadOnlyBooleanProperty allSelectedProperty- See Also:
isAllSelected()
-
-
Constructor Details
-
SelectionGroupController
public SelectionGroupController()
-
-
Method Details
-
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.Map<T extends java.lang.Comparable<T>,G>>>- Returns:
- The actual result if any.
- See Also:
WizardPageController.getResult()
-
setOptions
-
getOptions
-
setGroups
-
getGroups
-
currentGroupSelectedProperty
public javafx.beans.property.ReadOnlyBooleanProperty currentGroupSelectedProperty()- See Also:
isCurrentGroupSelected()
-
isCurrentGroupSelected
public boolean isCurrentGroupSelected()Gets the value of the property currentGroupSelected.- Property description:
-
selectedPerGroupProperty
public javafx.beans.property.ReadOnlyMapProperty<G,? extends javafx.beans.property.ReadOnlyIntegerProperty> selectedPerGroupProperty()- See Also:
getSelectedPerGroup()
-
getSelectedPerGroup
public javafx.collections.ObservableMap<G,? extends javafx.beans.property.ReadOnlyIntegerProperty> getSelectedPerGroup()Gets the value of the property selectedPerGroup.- Property description:
-
totalCountProperty
public javafx.beans.property.ReadOnlyIntegerProperty totalCountProperty()- See Also:
getTotalCount()
-
getTotalCount
public int getTotalCount()Gets the value of the property totalCount.- Property description:
-
selectedCountProperty
public javafx.beans.property.ReadOnlyIntegerProperty selectedCountProperty()- See Also:
getSelectedCount()
-
getSelectedCount
public int getSelectedCount()Gets the value of the property selectedCount.- Property description:
-
nothingSelectedProperty
public javafx.beans.property.ReadOnlyBooleanProperty nothingSelectedProperty()- See Also:
isNothingSelected()
-
isNothingSelected
public boolean isNothingSelected()Gets the value of the property nothingSelected.- Property description:
-
allSelectedProperty
public javafx.beans.property.ReadOnlyBooleanProperty allSelectedProperty()- See Also:
isAllSelected()
-
isAllSelected
public boolean isAllSelected()Gets the value of the property allSelected.- Property description:
-