Class GeneratedQueryOverviewController

All Implemented Interfaces:
javafx.fxml.Initializable

public class GeneratedQueryOverviewController extends OverviewWindow<GeneratedQuery>
Overview window controller for GeneratedQuery entries. Extends OverviewWindow to list generated queries, provide filters (generator LLM, original sample query, original prompt type, SQL text), support an optional external filter, and open a details view to add new items. Includes overview help.
Since:
1.0
Author:
Felix Seggebäing
  • Constructor Details

    • GeneratedQueryOverviewController

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

      public GeneratedQueryOverviewController(Predicate<GeneratedQuery> 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 generated-query-specific filters, and enables the overview help link.
      Specified by:
      initialize in interface javafx.fxml.Initializable
      Overrides:
      initialize in class OverviewWindow<GeneratedQuery>
      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 GeneratedQuery.
      Specified by:
      addItem in class OverviewWindow<GeneratedQuery>
    • getService

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

      public String getTitle()
      Returns the fixed title for the generated query overview.
      Specified by:
      getTitle in class TitledInitializableWindow
      Returns:
      the string "Generated queries"