Refactor name of search results files
This commit is contained in:
parent
c9c794604b
commit
6f5b8427e0
@ -3,7 +3,7 @@ package com.marvinelsen.willow
|
||||
import com.marvinelsen.willow.config.Config
|
||||
import com.marvinelsen.willow.domain.SqliteDictionary
|
||||
import com.marvinelsen.willow.ui.controllers.DetailsController
|
||||
import com.marvinelsen.willow.ui.controllers.ListController
|
||||
import com.marvinelsen.willow.ui.controllers.SearchResultsController
|
||||
import com.marvinelsen.willow.ui.controllers.MainController
|
||||
import com.marvinelsen.willow.ui.controllers.MenuController
|
||||
import com.marvinelsen.willow.ui.controllers.SearchController
|
||||
@ -55,7 +55,7 @@ class WillowApplication : Application() {
|
||||
MenuController::class.java -> MenuController(model, config)
|
||||
DetailsController::class.java -> DetailsController(model, config)
|
||||
SearchController::class.java -> SearchController(model)
|
||||
ListController::class.java -> ListController(model, config)
|
||||
SearchResultsController::class.java -> SearchResultsController(model, config)
|
||||
else -> error("Trying to instantiate unknown controller type $type")
|
||||
}
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ import javafx.scene.control.ListView
|
||||
import javafx.scene.control.ProgressIndicator
|
||||
import java.util.ResourceBundle
|
||||
|
||||
class ListController(private val model: Model, private val config: Config) {
|
||||
class SearchResultsController(private val model: Model, private val config: Config) {
|
||||
@FXML
|
||||
private lateinit var resources: ResourceBundle
|
||||
|
@ -16,7 +16,7 @@
|
||||
</BorderPane.margin>
|
||||
<fx:include source="/fxml/search.fxml"/>
|
||||
<SplitPane dividerPositions="0.33" VBox.vgrow="ALWAYS">
|
||||
<fx:include source="/fxml/list.fxml"/>
|
||||
<fx:include source="/fxml/search-results.fxml"/>
|
||||
<fx:include source="/fxml/details.fxml"/>
|
||||
</SplitPane>
|
||||
</VBox>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<?import javafx.scene.control.ProgressIndicator?>
|
||||
<?import javafx.scene.layout.StackPane?>
|
||||
<StackPane xmlns="http://javafx.com/javafx/23" xmlns:fx="http://javafx.com/fxml/1"
|
||||
fx:controller="com.marvinelsen.willow.ui.controllers.ListController"
|
||||
fx:controller="com.marvinelsen.willow.ui.controllers.SearchResultsController"
|
||||
stylesheets="/css/search-results.css">
|
||||
<ListView fx:id="listViewSearchResults" disable="true"/>
|
||||
<Label fx:id="labelNoEntriesFound" text="%list.no_entries_found" textAlignment="CENTER"
|
Loading…
Reference in New Issue
Block a user