All Implemented Interfaces:
javafx.fxml.Initializable

public class SampleQueryOverviewController extends OverviewWindow<SampleQuery>
Overview window controller for SampleQuery entries. Extends OverviewWindow to list items, provide filters (complexity, SQL, name), support an optional external filter, and open a details view to add new sample queries. Includes overview help.
Since:
1.0
Author:
Felix Seggebäing
  • Constructor Details

    • SampleQueryOverviewController

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

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

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

      public String getTitle()
      Returns the fixed title for the sample query overview.
      Specified by:
      getTitle in class TitledInitializableWindow
      Returns:
      the string "Sample queries"
    • addItem

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