All Implemented Interfaces:
javafx.fxml.Initializable

public class PromptOverviewController extends OverviewWindow<Prompt>
Overview window controller for Prompt entries. Extends OverviewWindow to list prompts, provide filters (type, sample query, text), support an optional external filter, and open a details view to add new prompts. Includes overview help.
Since:
1.0
Author:
Felix Seggebäing
  • Constructor Details

    • PromptOverviewController

      public PromptOverviewController()
      Creates an overview without an external filter. Intended for default FXML construction.
    • PromptOverviewController

      public PromptOverviewController(Predicate<Prompt> filter)
      Creates an overview with the given external filter applied initially.
      Parameters:
      filter - predicate to pre-filter listed models; may be null
  • Method Details

    • initialize

      public void initialize(URL location, ResourceBundle resources)
      Initializes base overview behavior, installs prompt-specific filters, and enables the overview help link.
      Specified by:
      initialize in interface javafx.fxml.Initializable
      Overrides:
      initialize in class OverviewWindow<Prompt>
      Parameters:
      location - FXML location (may be null)
      resources - localization bundle (may be null)
      Implementation Note:
      Invoked by the FXML loader on the JavaFX Application Thread.
    • addItem

      protected void addItem()
      Opens the details view to add a new Prompt.
      Specified by:
      addItem in class OverviewWindow<Prompt>
    • getService

      protected BDOService<Prompt> getService()
      Returns the service used to load and persist prompt objects.
      Specified by:
      getService in class BDOWindow<Prompt>
      Returns:
      the PromptService instance
    • getTitle

      public String getTitle()
      Returns the fixed title for the prompt overview.
      Specified by:
      getTitle in class TitledInitializableWindow
      Returns:
      the string "Prompts"