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.
  • Constructor Details

  • 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
    • addCategory

      public void addCategory(@NotNull @NotNull javafx.beans.binding.StringBinding categoryName, @NotNull @NotNull ACategoryHandler<?,?,?> categoryHandler)
      Adds new category to this CategorySearchableButtonPane.
      Parameters:
      categoryName - category name binding
      categoryHandler - specific category handler