Apply Component FXML attributes after injected initialization

This commit is contained in:
2026-11-12 07:27:31 +01:00
parent 8062b61ed6
commit a092654ded
8 changed files with 173 additions and 2 deletions
@@ -0,0 +1,8 @@
<?import javafx.scene.layout.GridPane?>
<?import de.neitzel.fx.view.component.AddressForm?>
<?import de.neitzel.fx.view.fixture.SampleAddress?>
<GridPane xmlns:fx="http://javafx.com/fxml/1">
<fx:define><SampleAddress fx:id="sample" street="Main"/></fx:define>
<AddressForm fx:id="first" caption="Home &amp; work" prefWidth="190" maxWidth="360" visible="false" alignment="CENTER_RIGHT" model="$sample" GridPane.columnIndex="1"/>
<AddressForm fx:id="second" caption="Second" prefWidth="280" model="$sample" GridPane.rowIndex="1"/>
</GridPane>
@@ -0,0 +1,3 @@
<?import javafx.scene.layout.StackPane?>
<?import de.neitzel.fx.view.component.AddressForm?>
<StackPane xmlns:fx="http://javafx.com/fxml/1"><AddressForm prefWidth="not-a-number"/></StackPane>
@@ -0,0 +1,3 @@
<?import javafx.scene.layout.StackPane?>
<?import de.neitzel.fx.view.component.AddressForm?>
<StackPane xmlns:fx="http://javafx.com/fxml/1"><AddressForm notAProperty="bad"/></StackPane>