parent
b71b0cce49
commit
a497b0fcbb
@ -1,44 +0,0 @@
|
|||||||
package com.olexyn.ensync;
|
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
public class Person {
|
|
||||||
|
|
||||||
private String firstName;
|
|
||||||
private String surname;
|
|
||||||
private Date date;
|
|
||||||
private String occupation;
|
|
||||||
private double salary;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Person(String firstName, String surname, Date date, String occupation, double salary){
|
|
||||||
this.firstName = firstName;
|
|
||||||
this.surname = surname;
|
|
||||||
this.date = date;
|
|
||||||
this.occupation = occupation;
|
|
||||||
this.salary = salary;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public double getSalary(){
|
|
||||||
return 0.0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getDateOfBirth(){
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getFirstName(){
|
|
||||||
return "firstName";
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSurname(){
|
|
||||||
return "surname";
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getOccupation(){
|
|
||||||
return "occupation";
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,124 +1,93 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
<?import javafx.scene.control.cell.*?>
|
|
||||||
<?import java.lang.*?>
|
|
||||||
<?import javafx.scene.control.*?>
|
|
||||||
<?import javafx.scene.layout.*?>
|
|
||||||
<?import javafx.geometry.*?>
|
|
||||||
<?import javafx.scene.control.*?>
|
<?import javafx.scene.control.*?>
|
||||||
|
<?import javafx.scene.control.cell.*?>
|
||||||
<?import javafx.scene.layout.*?>
|
<?import javafx.scene.layout.*?>
|
||||||
<?import javafx.scene.text.*?>
|
|
||||||
<?import javafx.scene.control.cell.PropertyValueFactory?>
|
|
||||||
|
|
||||||
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.olexyn.ensync.TableAppController">
|
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.olexyn.ensync.TableAppController">
|
||||||
<children>
|
<children>
|
||||||
<ScrollPane fitToHeight="true" fitToWidth="true" prefHeight="400.0" prefWidth="600.0">
|
<ScrollPane fitToHeight="true" fitToWidth="true" prefHeight="400.0" prefWidth="600.0">
|
||||||
<content>
|
<content>
|
||||||
<TabPane prefHeight="200.0" prefWidth="200.0" tabClosingPolicy="UNAVAILABLE">
|
<TabPane prefHeight="200.0" prefWidth="200.0" tabClosingPolicy="UNAVAILABLE">
|
||||||
<tabs>
|
<tabs>
|
||||||
<Tab text="SyncMap 1">
|
<Tab text="SyncMap 1">
|
||||||
<content>
|
<content>
|
||||||
<GridPane>
|
<GridPane>
|
||||||
<columnConstraints>
|
<columnConstraints>
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0"/>
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
<ColumnConstraints hgrow="SOMETIMES" 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"/>
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/>
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/>
|
||||||
</rowConstraints>
|
</rowConstraints>
|
||||||
<children>
|
<children>
|
||||||
<TableView fx:id="table" prefHeight="200.0" prefWidth="200.0" GridPane.columnSpan="2147483647">
|
<TableView fx:id="table" prefHeight="200.0" prefWidth="200.0" GridPane.columnSpan="2147483647">
|
||||||
<columns>
|
<columns>
|
||||||
<TableColumn prefWidth="98.0" text="First Name">
|
<TableColumn prefWidth="98.0" text="First Name">
|
||||||
|
<cellValueFactory>
|
||||||
<cellValueFactory>
|
<PropertyValueFactory property="firstName"/>
|
||||||
|
</cellValueFactory>
|
||||||
<PropertyValueFactory property="firstName" />
|
</TableColumn>
|
||||||
|
<TableColumn prefWidth="111.0" text="Surname">
|
||||||
</cellValueFactory>
|
<cellValueFactory>
|
||||||
|
<PropertyValueFactory property="surname"/>
|
||||||
</TableColumn>
|
</cellValueFactory>
|
||||||
|
</TableColumn>
|
||||||
<TableColumn prefWidth="111.0" text="Surname">
|
<TableColumn fx:id="dateOfBirthColumn" prefWidth="99.0" text="Date of Birth">
|
||||||
|
<cellValueFactory>
|
||||||
<cellValueFactory>
|
<PropertyValueFactory property="dateOfBirth"/>
|
||||||
|
</cellValueFactory>
|
||||||
<PropertyValueFactory property="surname" />
|
</TableColumn>
|
||||||
|
<TableColumn prefWidth="106.0" text="Occupation">
|
||||||
</cellValueFactory>
|
<cellValueFactory>
|
||||||
|
<PropertyValueFactory property="occupation"/>
|
||||||
</TableColumn>
|
</cellValueFactory>
|
||||||
|
</TableColumn>
|
||||||
<TableColumn fx:id="dateOfBirthColumn" prefWidth="99.0" text="Date of Birth">
|
<TableColumn fx:id="salaryColumn" prefWidth="84.0" text="Salary">
|
||||||
|
<cellValueFactory>
|
||||||
<cellValueFactory>
|
<PropertyValueFactory property="salary"/>
|
||||||
|
</cellValueFactory>
|
||||||
<PropertyValueFactory property="dateOfBirth" />
|
</TableColumn>
|
||||||
|
</columns>
|
||||||
</cellValueFactory>
|
</TableView>
|
||||||
|
<AnchorPane GridPane.rowIndex="2" VBox.vgrow="ALWAYS">
|
||||||
</TableColumn>
|
<children>
|
||||||
|
<GridPane layoutX="14.0" prefHeight="146.0" prefWidth="333.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="14.0">
|
||||||
<TableColumn prefWidth="106.0" text="Occupation">
|
<columnConstraints>
|
||||||
|
<ColumnConstraints hgrow="SOMETIMES" maxWidth="295.0" minWidth="10.0" prefWidth="85.0"/>
|
||||||
<cellValueFactory>
|
<ColumnConstraints hgrow="SOMETIMES" maxWidth="507.0" minWidth="10.0" prefWidth="248.0"/>
|
||||||
|
</columnConstraints>
|
||||||
<PropertyValueFactory property="occupation" />
|
<rowConstraints>
|
||||||
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/>
|
||||||
</cellValueFactory>
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/>
|
||||||
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/>
|
||||||
</TableColumn>
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/>
|
||||||
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/>
|
||||||
<TableColumn fx:id="salaryColumn" prefWidth="84.0" text="Salary">
|
</rowConstraints>
|
||||||
|
<children>
|
||||||
<cellValueFactory>
|
<Label text="First Name"/>
|
||||||
|
<Label text="Surname" GridPane.rowIndex="1"/>
|
||||||
<PropertyValueFactory property="salary" />
|
<Label text="Date of Birth" GridPane.rowIndex="2"/>
|
||||||
|
<Label text="Occupation" GridPane.rowIndex="3"/>
|
||||||
</cellValueFactory>
|
<Label text="Salary" GridPane.rowIndex="4"/>
|
||||||
|
<TextField fx:id="firstNameTextField" GridPane.columnIndex="1"/>
|
||||||
</TableColumn>
|
<TextField fx:id="surnameTextField" GridPane.columnIndex="1" GridPane.rowIndex="1"/>
|
||||||
</columns>
|
<TextField fx:id="dateOfBirthTextField" GridPane.columnIndex="1" GridPane.rowIndex="2"/>
|
||||||
</TableView>
|
<TextField fx:id="occupationTextField" GridPane.columnIndex="1" GridPane.rowIndex="3"/>
|
||||||
<AnchorPane GridPane.rowIndex="2" VBox.vgrow="ALWAYS">
|
<TextField fx:id="salaryTextField" GridPane.columnIndex="1" GridPane.rowIndex="4"/>
|
||||||
<children>
|
</children>
|
||||||
<GridPane layoutX="14.0" prefHeight="146.0" prefWidth="333.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="14.0">
|
</GridPane>
|
||||||
<columnConstraints>
|
<Button fx:id="submitButton" layoutX="371.0" layoutY="2.0" mnemonicParsing="false" onAction="#submit" text="Submit" AnchorPane.bottomAnchor="115.0" AnchorPane.leftAnchor="371.0"/>
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="295.0" minWidth="10.0" prefWidth="85.0" />
|
</children>
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="507.0" minWidth="10.0" prefWidth="248.0" />
|
</AnchorPane>
|
||||||
</columnConstraints>
|
</children>
|
||||||
<rowConstraints>
|
</GridPane>
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
</content>
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
</Tab>
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
</tabs>
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
</TabPane>
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
</content>
|
||||||
</rowConstraints>
|
</ScrollPane>
|
||||||
<children>
|
</children>
|
||||||
<Label text="First Name" />
|
|
||||||
<Label text="Surname" GridPane.rowIndex="1" />
|
|
||||||
<Label text="Date of Birth" GridPane.rowIndex="2" />
|
|
||||||
<Label text="Occupation" GridPane.rowIndex="3" />
|
|
||||||
<Label text="Salary" GridPane.rowIndex="4" />
|
|
||||||
<TextField fx:id="firstNameTextField" GridPane.columnIndex="1" />
|
|
||||||
<TextField fx:id="surnameTextField" GridPane.columnIndex="1" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="dateOfBirthTextField" GridPane.columnIndex="1" GridPane.rowIndex="2" />
|
|
||||||
<TextField fx:id="occupationTextField" GridPane.columnIndex="1" GridPane.rowIndex="3" />
|
|
||||||
<TextField fx:id="salaryTextField" GridPane.columnIndex="1" GridPane.rowIndex="4" />
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
<Button fx:id="submitButton" layoutX="371.0" layoutY="2.0" mnemonicParsing="false" onAction="#submit" text="Submit" AnchorPane.bottomAnchor="115.0" AnchorPane.leftAnchor="371.0" />
|
|
||||||
</children>
|
|
||||||
</AnchorPane>
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</content>
|
|
||||||
</Tab>
|
|
||||||
</tabs>
|
|
||||||
</TabPane>
|
|
||||||
</content>
|
|
||||||
</ScrollPane>
|
|
||||||
</children>
|
|
||||||
</AnchorPane>
|
</AnchorPane>
|
||||||
|
Loading…
Reference in new issue