mirror of
https://github.com/frosch95/SmartCSV.fx.git
synced 2026-04-11 13:38:23 +02:00
total number of lines
This commit is contained in:
@@ -15,7 +15,7 @@ even in a "normal" CSV editor. So I decided to write this simple JavaFX applicat
|
|||||||
|
|
||||||
[Wiki & Documentation](https://github.com/frosch95/SmartCSV.fx/wiki)
|
[Wiki & Documentation](https://github.com/frosch95/SmartCSV.fx/wiki)
|
||||||
|
|
||||||
binary distribution of the [latest release (1.0.1)](https://github.com/frosch95/SmartCSV.fx/releases/download/1.0.1/SmartCSV.fx-1.0.1.zip)
|
binary distribution of the [latest release (1.1.0)](https://github.com/frosch95/SmartCSV.fx/releases/download/1.1.0/SmartCSV.fx-1.0.1.zip)
|
||||||
|
|
||||||
## Talks
|
## Talks
|
||||||
[Introduction](http://javafx.ninja/talks/introduction/)
|
[Introduction](http://javafx.ninja/talks/introduction/)
|
||||||
|
|||||||
@@ -48,5 +48,5 @@ test {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group 'ninja.javafx'
|
group 'ninja.javafx'
|
||||||
version '1.0.1'
|
version '1.1.0'
|
||||||
mainClassName = 'ninja.javafx.smartcsv.Main'
|
mainClassName = 'ninja.javafx.smartcsv.Main'
|
||||||
|
|||||||
@@ -208,6 +208,9 @@ public class SmartCSVController extends FXMLController {
|
|||||||
@FXML
|
@FXML
|
||||||
private Label currentLineNumber;
|
private Label currentLineNumber;
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
private Label totalNumberOfLines;
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// members
|
// members
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@@ -674,6 +677,8 @@ public class SmartCSVController extends FXMLController {
|
|||||||
tableView.getItems().setAll(currentCsvFile.getContent().getRows());
|
tableView.getItems().setAll(currentCsvFile.getContent().getRows());
|
||||||
tableView.setEditable(true);
|
tableView.setEditable(true);
|
||||||
|
|
||||||
|
totalNumberOfLines.textProperty().setValue("" + currentCsvFile.getContent().getRows().size());
|
||||||
|
|
||||||
setBottomAnchor(tableView, 0.0);
|
setBottomAnchor(tableView, 0.0);
|
||||||
setTopAnchor(tableView, 0.0);
|
setTopAnchor(tableView, 0.0);
|
||||||
setLeftAnchor(tableView, 0.0);
|
setLeftAnchor(tableView, 0.0);
|
||||||
|
|||||||
@@ -275,7 +275,9 @@
|
|||||||
<ColumnConstraints hgrow="ALWAYS" minWidth="10.0" />
|
<ColumnConstraints hgrow="ALWAYS" minWidth="10.0" />
|
||||||
<ColumnConstraints hgrow="NEVER" minWidth="10.0" />
|
<ColumnConstraints hgrow="NEVER" minWidth="10.0" />
|
||||||
<ColumnConstraints fillWidth="false" halignment="RIGHT" hgrow="NEVER" minWidth="10.0" prefWidth="100.0" />
|
<ColumnConstraints fillWidth="false" halignment="RIGHT" hgrow="NEVER" minWidth="10.0" prefWidth="100.0" />
|
||||||
<ColumnConstraints hgrow="ALWAYS" minWidth="10.0" prefWidth="100.0" />
|
<ColumnConstraints hgrow="ALWAYS" minWidth="10.0" prefWidth="100.0" />
|
||||||
|
<ColumnConstraints fillWidth="false" halignment="RIGHT" hgrow="NEVER" minWidth="10.0" prefWidth="100.0" />
|
||||||
|
<ColumnConstraints hgrow="ALWAYS" minWidth="10.0" prefWidth="100.0" />
|
||||||
</columnConstraints>
|
</columnConstraints>
|
||||||
<rowConstraints>
|
<rowConstraints>
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
||||||
@@ -289,6 +291,8 @@
|
|||||||
<Label fx:id="configurationName" GridPane.columnIndex="5" GridPane.hgrow="ALWAYS" />
|
<Label fx:id="configurationName" GridPane.columnIndex="5" GridPane.hgrow="ALWAYS" />
|
||||||
<Label text="%lineNumber" GridPane.columnIndex="7" />
|
<Label text="%lineNumber" GridPane.columnIndex="7" />
|
||||||
<Label fx:id="currentLineNumber" text="" GridPane.columnIndex="8" />
|
<Label fx:id="currentLineNumber" text="" GridPane.columnIndex="8" />
|
||||||
|
<Label text="%totalNumberOfLines" GridPane.columnIndex="9" />
|
||||||
|
<Label fx:id="totalNumberOfLines" text="0" GridPane.columnIndex="10" />
|
||||||
</children>
|
</children>
|
||||||
<BorderPane.margin>
|
<BorderPane.margin>
|
||||||
<Insets bottom="4.0" left="8.0" right="8.0" top="4.0" />
|
<Insets bottom="4.0" left="8.0" right="8.0" top="4.0" />
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ dialog.validation.rules.header = Validation rules of column "{0}"
|
|||||||
context.menu.edit.column.rules = Edit rules
|
context.menu.edit.column.rules = Edit rules
|
||||||
|
|
||||||
lineNumber = Selected line:
|
lineNumber = Selected line:
|
||||||
|
totalNumberOfLines = Lines:
|
||||||
|
|
||||||
log.header.message = {0} has {1} errors
|
log.header.message = {0} has {1} errors
|
||||||
log.message = row {0} column {1} : {2}
|
log.message = row {0} column {1} : {2}
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ dialog.validation.rules.header = Pr\u00fcfregeln f\u00fcr die Spalte "{0}"
|
|||||||
context.menu.edit.column.rules = Pr\u00fcfregeln bearbeiten
|
context.menu.edit.column.rules = Pr\u00fcfregeln bearbeiten
|
||||||
|
|
||||||
lineNumber = Ausgew\u00e4hlte Zeile:
|
lineNumber = Ausgew\u00e4hlte Zeile:
|
||||||
|
totalNumberOfLines = Zeilen:
|
||||||
|
|
||||||
log.header.message = {0} hat {1} Fehler
|
log.header.message = {0} hat {1} Fehler
|
||||||
log.message = Zeile {0} Spalte {1} : {2}
|
log.message = Zeile {0} Spalte {1} : {2}
|
||||||
|
|||||||
Reference in New Issue
Block a user