show state and allow exit based on state

This commit is contained in:
Andreas Billmann
2015-12-18 12:19:19 +01:00
parent 67f92cd60f
commit c87471f0d1
5 changed files with 147 additions and 25 deletions

View File

@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import java.net.*?>
<?import javafx.geometry.*?>
<?import javafx.scene.control.*?>
<?import java.lang.*?>
@@ -55,19 +56,35 @@
</items>
</SplitPane>
</center>
<bottom>
<HBox spacing="8.0" BorderPane.alignment="CENTER">
<children>
<Label fx:id="stateline" text="Status" HBox.hgrow="ALWAYS" />
</children>
<BorderPane.margin>
<Insets bottom="4.0" left="4.0" right="4.0" top="4.0" />
</BorderPane.margin>
</HBox>
</bottom>
<left>
</left>
<stylesheets>
<URL value="@/ninja/javafx/smartcsv/fx/smartcsv.css"/>
<URL value="@/ninja/javafx/smartcsv/fx/smartcsv.css" />
</stylesheets>
<bottom>
<GridPane hgap="8.0" BorderPane.alignment="CENTER">
<columnConstraints>
<ColumnConstraints hgrow="NEVER" minWidth="10.0" />
<ColumnConstraints hgrow="ALWAYS" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="NEVER" minWidth="10.0" />
<ColumnConstraints hgrow="ALWAYS" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="NEVER" minWidth="10.0" />
<ColumnConstraints hgrow="ALWAYS" minWidth="10.0" prefWidth="100.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<Label text="%stateline.csv" GridPane.hgrow="NEVER" />
<Label fx:id="csvName" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" />
<Label text="%stateline.state" GridPane.columnIndex="2" GridPane.hgrow="NEVER" />
<Label fx:id="stateName" GridPane.columnIndex="3" GridPane.hgrow="ALWAYS" />
<Label text="%stateline.configuration" GridPane.columnIndex="4" GridPane.hgrow="NEVER" />
<Label fx:id="configurationName" GridPane.columnIndex="5" GridPane.hgrow="ALWAYS" />
</children>
<BorderPane.margin>
<Insets top="4.0" left="8.0" bottom="4.0" right="8.0" />
</BorderPane.margin>
</GridPane>
</bottom>
</BorderPane>

View File

@@ -9,6 +9,17 @@ menu.edit = Edit
menu.help = Help
title.validation.errors = Validation Errors:
stateline.csv = CSV:
stateline.configuration = Validation Configuration:
stateline.state = State:
state.changed = changed
state.unchanged = unchanged
dialog.exit.title = Close Application
dialog.exit.header.text = Do you want to close application?
dialog.exit.text = There are changes made to the csv file. If you close now, the changes are lost!
# validaton messages
validation.message.not.empty = should not be empty
validation.message.integer = should be an integer

View File

@@ -17,6 +17,17 @@ menu.edit = Bearbeiten
menu.help = Hilfe
title.validation.errors = Fehler in der Datei:
stateline.csv = CSV:
stateline.configuration = Pr\u00fcfkonfiguration:
stateline.state = Status:
state.changed = Ge\u00e4ndert
state.unchanged = Unver\u00e4ndert
dialog.exit.title = Anwendung beenden
dialog.exit.header.text = M\u00f6chten Sie wirklich die Anwendung beenden?
dialog.exit.text = Es gibt noch ungespeicherte \u00c4nderungen, die verloren gehen, wenn Sie die Anwendung jetzt beenden.
# validaton messages
validation.message.not.empty = Darf nicht leer sein.
validation.message.integer = Muss eine Zahl sein.