Module de.seggebaeing.sqlanalyzer
Class PromptOverviewController
java.lang.Object
de.seggebaeing.sqlanalyzer.presentation.uielements.window.TitledInitializableWindow
de.seggebaeing.sqlanalyzer.presentation.uielements.window.BDOWindow<Prompt>
de.seggebaeing.sqlanalyzer.presentation.uielements.window.OverviewWindow<Prompt>
de.seggebaeing.sqlanalyzer.presentation.controller.overview.PromptOverviewController
- All Implemented Interfaces:
javafx.fxml.Initializable
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
-
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.PromptOverviewController
(Predicate<Prompt> 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 newPrompt
.protected BDOService
<Prompt> Returns the service used to load and persist prompt objects.getTitle()
Returns the fixed title for the prompt overview.void
initialize
(URL location, ResourceBundle resources) Initializes base overview behavior, installs prompt-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
-
PromptOverviewController
public PromptOverviewController()Creates an overview without an external filter. Intended for default FXML construction. -
PromptOverviewController
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 prompt-specific filters, and enables the overview help link.- Specified by:
initialize
in interfacejavafx.fxml.Initializable
- Overrides:
initialize
in classOverviewWindow<Prompt>
- 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 newPrompt
.- Specified by:
addItem
in classOverviewWindow<Prompt>
-
getService
Returns the service used to load and persist prompt objects.- Specified by:
getService
in classBDOWindow<Prompt>
- Returns:
- the
PromptService
instance
-
getTitle
Returns the fixed title for the prompt overview.- Specified by:
getTitle
in classTitledInitializableWindow
- Returns:
- the string
"Prompts"
-