Class CategorySearchableButtonPane
java.lang.Object
cz.zcu.fav.kiv.mjakubas.saf.gui.view.ASearchableButtonPane<javafx.scene.control.ToggleButton>
cz.zcu.fav.kiv.mjakubas.saf.gui.view.CategorySearchableButtonPane
public class CategorySearchableButtonPane
extends ASearchableButtonPane<javafx.scene.control.ToggleButton>
Class provides a
Pane
view of a searchable list of all categories as a list of ToggleButton
.-
Field Summary
Fields inherited from class cz.zcu.fav.kiv.mjakubas.saf.gui.view.ASearchableButtonPane
optionalPane, rootPane, searchableButtons, searchField, searchPane
-
Constructor Summary
ConstructorsConstructorDescriptionCategorySearchableButtonPane
(@NotNull EntitiesController entitiesController, @NotNull EntitiesSearchableButtonPane entitiesSearchableButtonPane, @NotNull EntityFormsPane formsPane) Instantiates newASearchableButtonPane
of categories. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCategory
(@NotNull javafx.beans.binding.StringBinding categoryName, @NotNull ACategoryHandler<?, ?, ?> categoryHandler) Adds new category to thisCategorySearchableButtonPane
.protected javafx.scene.layout.Pane
Gets optionalPane
that is located as a firstNode
.protected javafx.beans.binding.StringBinding
Gets empty button label.protected javafx.beans.binding.StringBinding
Gets search field prompt text.Methods inherited from class cz.zcu.fav.kiv.mjakubas.saf.gui.view.ASearchableButtonPane
addSearchableButton, clearSearchableButtons, getFocusButton, getPane, getSearchableButtons, setVisible
-
Constructor Details
-
CategorySearchableButtonPane
public CategorySearchableButtonPane(@NotNull @NotNull EntitiesController entitiesController, @NotNull @NotNull EntitiesSearchableButtonPane entitiesSearchableButtonPane, @NotNull @NotNull EntityFormsPane formsPane) Instantiates newASearchableButtonPane
of categories.
-
-
Method Details
-
getSearchFieldPrompt
protected javafx.beans.binding.StringBinding getSearchFieldPrompt()Description copied from class:ASearchableButtonPane
Gets search field prompt text.- Specified by:
getSearchFieldPrompt
in classASearchableButtonPane<javafx.scene.control.ToggleButton>
- Returns:
- search field prompt text
-
getEmptyButtonLabel
protected javafx.beans.binding.StringBinding getEmptyButtonLabel()Description copied from class:ASearchableButtonPane
Gets empty button label. Empty button is a button that is shown if filter returns no matched buttons.- Specified by:
getEmptyButtonLabel
in classASearchableButtonPane<javafx.scene.control.ToggleButton>
- Returns:
- empty button label
-
fillOptionalPane
protected javafx.scene.layout.Pane fillOptionalPane()Description copied from class:ASearchableButtonPane
Gets optionalPane
that is located as a firstNode
.- Specified by:
fillOptionalPane
in classASearchableButtonPane<javafx.scene.control.ToggleButton>
- Returns:
- optional
Pane
that is located as a firstNode
or null
-
addCategory
public void addCategory(@NotNull @NotNull javafx.beans.binding.StringBinding categoryName, @NotNull @NotNull ACategoryHandler<?, ?, ?> categoryHandler) Adds new category to thisCategorySearchableButtonPane
.- Parameters:
categoryName
- category name bindingcategoryHandler
- specific category handler
-