Module de.seggebaeing.sqlanalyzer
Class SampleQueryOverviewController
java.lang.Object
de.seggebaeing.sqlanalyzer.presentation.uielements.window.TitledInitializableWindow
de.seggebaeing.sqlanalyzer.presentation.uielements.window.BDOWindow<SampleQuery>
de.seggebaeing.sqlanalyzer.presentation.uielements.window.OverviewWindow<SampleQuery>
de.seggebaeing.sqlanalyzer.presentation.controller.overview.SampleQueryOverviewController
- All Implemented Interfaces:
javafx.fxml.Initializable
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
-
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 newSampleQuery
.protected BDOService
<SampleQuery> Returns the service used to load and persist sample query objects.getTitle()
Returns the fixed title for the sample query overview.void
initialize
(URL location, ResourceBundle resources) Initializes base overview behavior, installs sample-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
-
SampleQueryOverviewController
public SampleQueryOverviewController()Creates an overview without an external filter. Intended for default FXML construction. -
SampleQueryOverviewController
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 sample-query-specific filters, and enables the overview help link.- Specified by:
initialize
in interfacejavafx.fxml.Initializable
- Overrides:
initialize
in classOverviewWindow<SampleQuery>
- Parameters:
location
- FXML location (may benull
)resources
- localization bundle (may benull
)- Implementation Note:
- Invoked by the FXML loader on the JavaFX Application Thread.
-
getService
Returns the service used to load and persist sample query objects.- Specified by:
getService
in classBDOWindow<SampleQuery>
- Returns:
- the
SampleQueryService
instance
-
getTitle
Returns the fixed title for the sample query overview.- Specified by:
getTitle
in classTitledInitializableWindow
- Returns:
- the string
"Sample queries"
-
addItem
protected void addItem()Opens the details view to add a newSampleQuery
.- Specified by:
addItem
in classOverviewWindow<SampleQuery>
-