Add a Table that shows one Row per element, with sort and filter.
The collection keeps its own order. Header clicks and the popup sort one Column, and the checklist or a typed comparison decides which Rows stay visible. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?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">
|
||||
<fx:define>
|
||||
<BindingList>
|
||||
<DirectBinding control="cityField" property="text" path="city" direction="both"/>
|
||||
<DirectBinding control="streetField" property="text" path="street" direction="both"/>
|
||||
</BindingList>
|
||||
</fx:define>
|
||||
<TextField fx:id="cityField" id="cityField"/>
|
||||
<TextField fx:id="streetField" id="streetField"/>
|
||||
</fx:root>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?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">
|
||||
<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"/>
|
||||
</fx:root>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?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="firstTable" id="firstTable" collection="visits"
|
||||
row="de.neitzel.fx.view.component.VisitRow" prefWidth="300">
|
||||
<Column header="Street" attribute="street"/>
|
||||
<Column header="City" attribute="city"/>
|
||||
<Column header="Rank" attribute="rank"/>
|
||||
<Column header="Open" attribute="open"/>
|
||||
<Column header="Role" attribute="role"/>
|
||||
<Column header="Day" attribute="day"/>
|
||||
</Table>
|
||||
<Table fx:id="secondTable" id="secondTable" collection="visits"
|
||||
row="de.neitzel.fx.view.component.VisitRow" prefWidth="300">
|
||||
<Column header="City" attribute="city"/>
|
||||
</Table>
|
||||
</VBox>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?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">
|
||||
<Column header="Place" attribute="place"/>
|
||||
</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">
|
||||
<Column header="Street" attribute="street"/>
|
||||
<Column header="Street again" attribute="street"/>
|
||||
</Table>
|
||||
</VBox>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
<?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"/>
|
||||
</VBox>
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
<?import de.neitzel.fx.view.BindingList?>
|
||||
<?import de.neitzel.fx.view.Column?>
|
||||
<?import de.neitzel.fx.view.DirectBinding?>
|
||||
<?import de.neitzel.fx.view.Table?>
|
||||
|
||||
<VBox xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml">
|
||||
<fx:define>
|
||||
<BindingList>
|
||||
<DirectBinding control="visitsTable" property="selection" path="selectedVisit" direction="both"/>
|
||||
</BindingList>
|
||||
</fx:define>
|
||||
<Table fx:id="visitsTable" id="visitsTable" collection="visits"
|
||||
row="de.neitzel.fx.view.component.VisitRow" prefWidth="300" prefHeight="200">
|
||||
<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.CityFirstRow" 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"/>
|
||||
<Column header="City" attribute="city"/>
|
||||
</Table>
|
||||
</VBox>
|
||||
Reference in New Issue
Block a user