Module de.seggebaeing.sqlanalyzer
Class GeneratedQueryOverviewController
java.lang.Object
de.seggebaeing.sqlanalyzer.presentation.uielements.window.TitledInitializableWindow
de.seggebaeing.sqlanalyzer.presentation.uielements.window.BDOWindow<GeneratedQuery>
de.seggebaeing.sqlanalyzer.presentation.uielements.window.OverviewWindow<GeneratedQuery>
de.seggebaeing.sqlanalyzer.presentation.controller.overview.GeneratedQueryOverviewController
- All Implemented Interfaces:
javafx.fxml.Initializable
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
-
Field Summary
Fields inherited from class de.seggebaeing.sqlanalyzer.presentation.uielements.window.OverviewWindow
listView
Fields inherited from class de.seggebaeing.sqlanalyzer.presentation.uielements.window.BDOWindow
headerLabel, refreshBtn
Fields inherited from class de.seggebaeing.sqlanalyzer.presentation.uielements.window.TitledInitializableWindow
root
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an overview without an external filter.Creates an overview with the given external filter applied initially. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addItem()
Opens the details view to add a newGeneratedQuery
.protected BDOService
<GeneratedQuery> Returns the service used to load and persist generated query objects.getTitle()
Returns the fixed title for the generated query overview.void
initialize
(URL location, ResourceBundle resources) Initializes base overview behavior, installs generated-query-specific filters, and enables the overview help link.Methods inherited from class de.seggebaeing.sqlanalyzer.presentation.uielements.window.OverviewWindow
addObjectFilter, addStringFilter, refresh
Methods inherited from class de.seggebaeing.sqlanalyzer.presentation.uielements.window.BDOWindow
requestDeletion, setHeaderText
Methods inherited from class de.seggebaeing.sqlanalyzer.presentation.uielements.window.TitledInitializableWindow
closeWindow, enableHelp, getRoot, getStage
-
Constructor Details
-
GeneratedQueryOverviewController
public GeneratedQueryOverviewController()Creates an overview without an external filter. Intended for default FXML construction. -
GeneratedQueryOverviewController
Creates an overview with the given external filter applied initially.- Parameters:
filter
- predicate to pre-filter listed models; may benull
-
-
Method Details
-
initialize
Initializes base overview behavior, installs generated-query-specific filters, and enables the overview help link.- Specified by:
initialize
in interfacejavafx.fxml.Initializable
- Overrides:
initialize
in classOverviewWindow<GeneratedQuery>
- Parameters:
location
- FXML location (may benull
)resources
- localization bundle (may benull
)- Implementation Note:
- Invoked by the FXML loader on the JavaFX Application Thread.
-
addItem
protected void addItem()Opens the details view to add a newGeneratedQuery
.- Specified by:
addItem
in classOverviewWindow<GeneratedQuery>
-
getService
Returns the service used to load and persist generated query objects.- Specified by:
getService
in classBDOWindow<GeneratedQuery>
- Returns:
- the
GeneratedQuery
instance
-
getTitle
Returns the fixed title for the generated query overview.- Specified by:
getTitle
in classTitledInitializableWindow
- Returns:
- the string
"Generated queries"
-