Class EntitiesSearchableButtonPane
java.lang.Object
cz.zcu.fav.kiv.mjakubas.saf.gui.view.ASearchableButtonPane<javafx.scene.control.ToggleButton>
cz.zcu.fav.kiv.mjakubas.saf.gui.view.EntitiesSearchableButtonPane
public class EntitiesSearchableButtonPane
extends ASearchableButtonPane<javafx.scene.control.ToggleButton>
ASearchableButtonPane
implementation for entities searchable button pane.-
Field Summary
Fields inherited from class cz.zcu.fav.kiv.mjakubas.saf.gui.view.ASearchableButtonPane
optionalPane, rootPane, searchableButtons, searchField, searchPane
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds an entity to pane.protected javafx.scene.layout.Pane
Gets optionalPane
that is located as a firstNode
.protected javafx.beans.binding.StringBinding
Gets empty button label.javafx.scene.control.Button
protected javafx.beans.binding.StringBinding
Gets search field prompt text.void
setRefreshButtonAction
(Runnable onClick) void
setReloadFunction
(CategorySearchableButtonPane categoryPane) Methods inherited from class cz.zcu.fav.kiv.mjakubas.saf.gui.view.ASearchableButtonPane
addSearchableButton, clearSearchableButtons, getFocusButton, getPane, getSearchableButtons, setVisible
-
Constructor Details
-
EntitiesSearchableButtonPane
public EntitiesSearchableButtonPane()
-
-
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
-
addEntity
Adds an entity to pane.- Parameters:
text
- button textonClick
- onClick event
-
setRefreshButtonAction
-
setReloadFunction
-
getRefreshButton
public javafx.scene.control.Button getRefreshButton()
-