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.
  • 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 class ASearchableButtonPane<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 class ASearchableButtonPane<javafx.scene.control.ToggleButton>
      Returns:
      empty button label
    • fillOptionalPane

      protected javafx.scene.layout.Pane fillOptionalPane()
      Description copied from class: ASearchableButtonPane
      Gets optional Pane that is located as a first Node.
      Specified by:
      fillOptionalPane in class ASearchableButtonPane<javafx.scene.control.ToggleButton>
      Returns:
      optional Pane that is located as a first Node or null
    • addEntity

      public void addEntity(String text, Runnable onClick)
      Adds an entity to pane.
      Parameters:
      text - button text
      onClick - onClick event
    • setRefreshButtonAction

      public void setRefreshButtonAction(Runnable onClick)
    • setReloadFunction

      public void setReloadFunction(CategorySearchableButtonPane categoryPane)
    • getRefreshButton

      public javafx.scene.control.Button getRefreshButton()