From 4396e7e4e34050db9b0258ce18e7be1e438f2419 Mon Sep 17 00:00:00 2001 From: Denis-Cosmin NUTIU Date: Tue, 9 Apr 2024 23:14:54 +0300 Subject: [PATCH] scaffold ImageTagsSessionHeader control --- .../ui/controls/ImageTagsSessionHeader.kt | 20 ++++++++++++++++ .../controls/image-tags-session-header.fxml | 23 +++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 img-ui/src/main/kotlin/dev/nuculabs/imagetagger/ui/controls/ImageTagsSessionHeader.kt create mode 100644 img-ui/src/main/resources/dev/nuculabs/imagetagger/ui/controls/image-tags-session-header.fxml diff --git a/img-ui/src/main/kotlin/dev/nuculabs/imagetagger/ui/controls/ImageTagsSessionHeader.kt b/img-ui/src/main/kotlin/dev/nuculabs/imagetagger/ui/controls/ImageTagsSessionHeader.kt new file mode 100644 index 0000000..6da8dff --- /dev/null +++ b/img-ui/src/main/kotlin/dev/nuculabs/imagetagger/ui/controls/ImageTagsSessionHeader.kt @@ -0,0 +1,20 @@ +package dev.nuculabs.imagetagger.ui.controls + +import javafx.fxml.FXMLLoader +import javafx.scene.layout.HBox +import java.io.IOException + +class ImageTagsSessionHeader : HBox() { + init { + val fxmlLoader = FXMLLoader( + ImageTagsSessionHeader::class.java.getResource("image-tags-session-header.fxml") + ) + fxmlLoader.setRoot(this) + fxmlLoader.setController(this) + try { + fxmlLoader.load() + } catch (exception: IOException) { + throw RuntimeException(exception) + } + } +} \ No newline at end of file diff --git a/img-ui/src/main/resources/dev/nuculabs/imagetagger/ui/controls/image-tags-session-header.fxml b/img-ui/src/main/resources/dev/nuculabs/imagetagger/ui/controls/image-tags-session-header.fxml new file mode 100644 index 0000000..fdd37e2 --- /dev/null +++ b/img-ui/src/main/resources/dev/nuculabs/imagetagger/ui/controls/image-tags-session-header.fxml @@ -0,0 +1,23 @@ + + + + + + + + + + + +