-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change FxViewData::rootNode type from Parent to Object (#77)
* Change FxViewData::rootNode type from Parent to Object * Polish code and add some tests * throw exception instead of returning null as it's would be a programming issue --------- Co-authored-by: Clément de Tastes <isomorphisme@gmail.com>
- Loading branch information
1 parent
e3a96a2
commit 8ca3136
Showing
12 changed files
with
138 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
deployment/src/test/java/io/quarkiverse/fx/deployment/fxviews/SampleDialogController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package io.quarkiverse.fx.deployment.fxviews; | ||
|
||
import jakarta.inject.Singleton; | ||
|
||
import io.quarkiverse.fx.views.FxView; | ||
import javafx.fxml.FXML; | ||
import javafx.scene.control.Dialog; | ||
|
||
@FxView | ||
@Singleton | ||
public class SampleDialogController { | ||
|
||
@FXML | ||
Dialog<?> dialog; | ||
} |
15 changes: 15 additions & 0 deletions
15
deployment/src/test/java/io/quarkiverse/fx/deployment/fxviews/SampleSceneController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package io.quarkiverse.fx.deployment.fxviews; | ||
|
||
import jakarta.inject.Singleton; | ||
|
||
import io.quarkiverse.fx.views.FxView; | ||
import javafx.fxml.FXML; | ||
import javafx.scene.Scene; | ||
|
||
@FxView | ||
@Singleton | ||
public class SampleSceneController { | ||
|
||
@FXML | ||
Scene scene; | ||
} |
15 changes: 15 additions & 0 deletions
15
deployment/src/test/java/io/quarkiverse/fx/deployment/fxviews/SampleStageController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package io.quarkiverse.fx.deployment.fxviews; | ||
|
||
import jakarta.inject.Singleton; | ||
|
||
import io.quarkiverse.fx.views.FxView; | ||
import javafx.fxml.FXML; | ||
import javafx.stage.Stage; | ||
|
||
@FxView | ||
@Singleton | ||
public class SampleStageController { | ||
|
||
@FXML | ||
Stage stage; | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<?import javafx.scene.control.Dialog?> | ||
<?import javafx.scene.control.DialogPane?> | ||
<?import javafx.scene.control.Label?> | ||
<?import javafx.scene.layout.BorderPane?> | ||
<Dialog xmlns="http://javafx.com/javafx/21" xmlns:fx="http://javafx.com/fxml/1" width="720.0" height="480.0" | ||
fx:id="dialog" fx:controller="io.quarkiverse.fx.deployment.fxviews.SampleDialogController"> | ||
<dialogPane> | ||
<DialogPane> | ||
<content> | ||
<BorderPane> | ||
<center> | ||
<Label text="Hello World"/> | ||
</center> | ||
</BorderPane> | ||
</content> | ||
</DialogPane> | ||
</dialogPane> | ||
</Dialog> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<?import javafx.scene.control.Label?> | ||
<?import javafx.scene.layout.BorderPane?> | ||
<?import javafx.scene.Scene?> | ||
<Scene xmlns="http://javafx.com/javafx/21" xmlns:fx="http://javafx.com/fxml/1" | ||
fx:id="scene" fx:controller="io.quarkiverse.fx.deployment.fxviews.SampleSceneController"> | ||
<BorderPane> | ||
<center> | ||
<Label text="Hello World"/> | ||
</center> | ||
</BorderPane> | ||
</Scene> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<?import javafx.stage.Stage?> | ||
<Stage xmlns="http://javafx.com/javafx/21" xmlns:fx="http://javafx.com/fxml/1" width="1024.0" height="768.0" | ||
fx:id="stage" fx:controller="io.quarkiverse.fx.deployment.fxviews.SampleStageController"> | ||
<scene> | ||
<fx:include source="SampleScene.fxml" /> | ||
</scene> | ||
</Stage> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters