Complete JavaFX MVVM examples, bindings and library documentation
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.scene.control.Button?>
|
||||
<?import javafx.scene.control.TextField?>
|
||||
<?import javafx.scene.layout.HBox?>
|
||||
<?import de.neitzel.fx.view.BindingList?>
|
||||
<?import de.neitzel.fx.view.DirectBinding?>
|
||||
|
||||
<fx:root type="javafx.scene.layout.HBox" xmlns="http://javafx.com/javafx"
|
||||
xmlns:fx="http://javafx.com/fxml" spacing="6">
|
||||
<fx:define>
|
||||
<BindingList>
|
||||
<DirectBinding control="streetField" property="text" path="street" direction="both"/>
|
||||
<DirectBinding control="cityField" property="text" path="city" direction="both"/>
|
||||
</BindingList>
|
||||
</fx:define>
|
||||
<TextField fx:id="streetField" id="streetField"/>
|
||||
<TextField fx:id="cityField" id="cityField"/>
|
||||
<Button fx:id="removeButton" id="removeButton" text="Remove"/>
|
||||
</fx:root>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
<?import de.neitzel.fx.view.Column?>
|
||||
<?import de.neitzel.fx.view.Table?>
|
||||
|
||||
<VBox xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml">
|
||||
<Table fx:id="visitsTable" id="visitsTable" collection="visits"
|
||||
row="de.neitzel.fx.view.component.ActionRow" prefWidth="300">
|
||||
<Column header="Street" attribute="street"/>
|
||||
<Column header="City" attribute="city"/>
|
||||
</Table>
|
||||
</VBox>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
<?import de.neitzel.fx.view.Column?>
|
||||
<?import de.neitzel.fx.view.Table?>
|
||||
|
||||
<VBox xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml">
|
||||
<Table fx:id="visitsTable" id="visitsTable" collection="visits"
|
||||
row="de.neitzel.fx.view.component.VisitRow" prefWidth="300">
|
||||
<Column header="Street" attribute="street" width="100"/>
|
||||
<Column header="City" attribute="city" width="0"/>
|
||||
</Table>
|
||||
</VBox>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
<?import de.neitzel.fx.view.Column?>
|
||||
<?import de.neitzel.fx.view.Table?>
|
||||
|
||||
<VBox xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml">
|
||||
<Table fx:id="visitsTable" id="visitsTable" collection="visits"
|
||||
row="de.neitzel.fx.view.component.VisitRow" prefWidth="300">
|
||||
<Column header="Street" attribute="street" width="280"/>
|
||||
<Column header="City" attribute="city" width="1"/>
|
||||
</Table>
|
||||
</VBox>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
<?import de.neitzel.fx.view.Column?>
|
||||
<?import de.neitzel.fx.view.Table?>
|
||||
|
||||
<VBox xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml">
|
||||
<Table fx:id="visitsTable" id="visitsTable" collection="visits"
|
||||
row="de.neitzel.fx.view.component.VisitRow" prefWidth="300">
|
||||
<Column header="Street" attribute="street" width="100"/>
|
||||
<Column header="City" attribute="city"/>
|
||||
</Table>
|
||||
</VBox>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
<?import de.neitzel.fx.view.Column?>
|
||||
<?import de.neitzel.fx.view.Table?>
|
||||
|
||||
<VBox xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml">
|
||||
<Table fx:id="visitsTable" id="visitsTable" collection="visits"
|
||||
row="de.neitzel.fx.view.component.VisitRow" prefWidth="300">
|
||||
<Column header="Street" attribute="street" width="220"/>
|
||||
<Column header="City" attribute="city" width="80"/>
|
||||
</Table>
|
||||
</VBox>
|
||||
Reference in New Issue
Block a user