Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Olav Dagestad Eikrem
Mappe2.01
Commits
ce679794
Commit
ce679794
authored
May 04, 2021
by
Olav Dagestad Eikrem
Browse files
Pom updated, icons and FXML files added
parent
9ce1b718
Changes
15
Hide whitespace changes
Inline
Side-by-side
.idea/encodings.xml
0 → 100644
View file @
ce679794
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"Encoding"
>
<file
url=
"file://$PROJECT_DIR$/src/main/java"
charset=
"UTF-8"
/>
<file
url=
"file://$PROJECT_DIR$/src/main/resources"
charset=
"UTF-8"
/>
</component>
</project>
\ No newline at end of file
pom.xml
View file @
ce679794
...
...
@@ -4,13 +4,68 @@
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
olavdei.edu.ntnu.idat
t
x2001
</groupId>
<groupId>
olavdei.edu.ntnu.idatx2001
</groupId>
<artifactId>
MappeDel2
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<properties>
<maven.compiler.source>
15
</maven.compiler.source>
<maven.compiler.target>
15
</maven.compiler.target>
<maven.compiler.source>
14
</maven.compiler.source>
<maven.compiler.target>
14
</maven.compiler.target>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<javafx.version>
16
</javafx.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<version>
3.8.1
</version>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-surefire-plugin
</artifactId>
<version>
3.0.0-M5
</version>
</plugin>
<plugin>
<groupId>
org.openjfx
</groupId>
<artifactId>
javafx-maven-plugin
</artifactId>
<version>
0.0.3
</version>
<configuration>
<mainClass>
Main
</mainClass>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>
org.openjfx
</groupId>
<artifactId>
javafx-controls
</artifactId>
<version>
${javafx.version}
</version>
</dependency>
<dependency>
<groupId>
org.openjfx
</groupId>
<artifactId>
javafx-fxml
</artifactId>
<version>
${javafx.version}
</version>
</dependency>
<dependency>
<groupId>
org.junit.jupiter
</groupId>
<artifactId>
junit-jupiter-api
</artifactId>
<version>
5.7.0
</version>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.junit.jupiter
</groupId>
<artifactId>
junit-jupiter-engine
</artifactId>
<version>
5.7.0
</version>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
com.opencsv
</groupId>
<artifactId>
opencsv
</artifactId>
<version>
5.4
</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
src/main/resources/DeleteConfirmation.fxml
0 → 100644
View file @
ce679794
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.*?>
<?import javafx.scene.image.*?>
<?import javafx.scene.layout.*?>
<AnchorPane
prefHeight=
"200.0"
prefWidth=
"350.0"
xmlns=
"http://javafx.com/javafx/11.0.1"
xmlns:fx=
"http://javafx.com/fxml/1"
fx:controller=
"mappe.del2.GUI.controllers.DeleteConfirmationController"
>
<children>
<Button
layoutX=
"142.0"
layoutY=
"88.0"
mnemonicParsing=
"false"
onAction=
"#deletePatient"
prefWidth=
"70.0"
text=
"Ok"
AnchorPane.bottomAnchor=
"15.0"
AnchorPane.rightAnchor=
"100.0"
/>
<Button
layoutX=
"229.0"
layoutY=
"88.0"
mnemonicParsing=
"false"
onAction=
"#closeWindow"
prefWidth=
"70.0"
text=
"Cancel"
AnchorPane.bottomAnchor=
"15.0"
AnchorPane.rightAnchor=
"20.0"
/>
<ImageView
fitHeight=
"80.0"
fitWidth=
"80.0"
layoutX=
"180.0"
layoutY=
"36.0"
pickOnBounds=
"true"
preserveRatio=
"true"
AnchorPane.rightAnchor=
"20.0"
AnchorPane.topAnchor=
"20.0"
>
<image>
<Image
url=
"@icons/garbage.png"
/>
</image></ImageView>
<Separator
layoutX=
"14.0"
layoutY=
"107.0"
prefWidth=
"200.0"
AnchorPane.leftAnchor=
"0.0"
AnchorPane.rightAnchor=
"0.0"
AnchorPane.topAnchor=
"120.0"
/>
<Label
layoutX=
"21.0"
layoutY=
"133.0"
text=
"Are you sure you would like to delete this item?"
AnchorPane.bottomAnchor=
"50.0"
AnchorPane.leftAnchor=
"20.0"
/>
<Label
layoutX=
"20.0"
layoutY=
"34.0"
text=
"Delete confirmation"
AnchorPane.leftAnchor=
"20.0"
AnchorPane.topAnchor=
"30.0"
/>
<Label
fx:id=
"information"
layoutX=
"30.0"
layoutY=
"44.0"
text=
"Customer information"
AnchorPane.leftAnchor=
"20.0"
AnchorPane.topAnchor=
"60.0"
/>
</children>
</AnchorPane>
src/main/resources/InformationDialog.fxml
0 → 100644
View file @
ce679794
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.*?>
<?import javafx.scene.image.*?>
<?import javafx.scene.layout.*?>
<AnchorPane
prefHeight=
"200.0"
prefWidth=
"350.0"
xmlns=
"http://javafx.com/javafx/11.0.1"
xmlns:fx=
"http://javafx.com/fxml/1"
fx:controller=
"mappe.del2.GUI.controllers.InformationDialog"
>
<children>
<Button
layoutX=
"168.0"
layoutY=
"86.0"
mnemonicParsing=
"false"
onAction=
"#closeWindow"
prefWidth=
"70.0"
text=
"OK"
AnchorPane.bottomAnchor=
"15.0"
AnchorPane.rightAnchor=
"20.0"
/>
<ImageView
fitHeight=
"50.0"
fitWidth=
"50.0"
layoutX=
"190.0"
layoutY=
"46.0"
pickOnBounds=
"true"
preserveRatio=
"true"
AnchorPane.rightAnchor=
"20.0"
AnchorPane.topAnchor=
"20.0"
>
<image>
<Image
url=
"@icons/book.png"
/>
</image>
</ImageView>
<Separator
layoutY=
"85.0"
prefWidth=
"200.0"
AnchorPane.leftAnchor=
"0.0"
AnchorPane.rightAnchor=
"0.0"
AnchorPane.topAnchor=
"85.0"
/>
<Label
layoutX=
"14.0"
layoutY=
"100.0"
text=
"Application created by"
AnchorPane.bottomAnchor=
"85.0"
AnchorPane.leftAnchor=
"14.0"
/>
<Label
layoutX=
"19.0"
layoutY=
"52.0"
text=
"v0.1-SNAPSHOT"
AnchorPane.leftAnchor=
"19.0"
AnchorPane.topAnchor=
"52.0"
/>
<Label
layoutX=
"31.0"
layoutY=
"78.0"
text=
"Patient Register"
AnchorPane.leftAnchor=
"20.0"
AnchorPane.topAnchor=
"30.0"
/>
<Label
layoutX=
"14.0"
layoutY=
"124.0"
text=
"olavdei.edu.ntnu.idatx2001"
AnchorPane.bottomAnchor=
"65.0"
AnchorPane.leftAnchor=
"15.0"
/>
<Label
layoutX=
"25.0"
layoutY=
"128.0"
text=
"04.2021"
AnchorPane.bottomAnchor=
"45.0"
AnchorPane.leftAnchor=
"15.0"
/>
</children>
</AnchorPane>
src/main/resources/NewPatientDetails.fxml
0 → 100644
View file @
ce679794
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<AnchorPane
prefHeight=
"200.0"
prefWidth=
"350.0"
xmlns=
"http://javafx.com/javafx/11.0.1"
xmlns:fx=
"http://javafx.com/fxml/1"
fx:controller=
"mappe.del2.GUI.controllers.NewPatientDetails"
>
<children>
<Button
layoutX=
"189.0"
layoutY=
"161.0"
mnemonicParsing=
"false"
onAction=
"#addPatient"
prefWidth=
"70.0"
text=
"Ok"
AnchorPane.bottomAnchor=
"15.0"
AnchorPane.rightAnchor=
"100.0"
/>
<Button
layoutX=
"234.0"
layoutY=
"161.0"
mnemonicParsing=
"false"
onAction=
"#closeWindow"
prefWidth=
"70.0"
text=
"Cancel"
AnchorPane.bottomAnchor=
"15.0"
AnchorPane.rightAnchor=
"20.0"
/>
<Label
layoutX=
"14.0"
layoutY=
"115.0"
text=
"Social security number:"
AnchorPane.leftAnchor=
"20.0"
/>
<Label
layoutX=
"65.0"
layoutY=
"79.0"
text=
"Last name:"
AnchorPane.leftAnchor=
"20.0"
/>
<Label
layoutX=
"65.0"
layoutY=
"41.0"
text=
"First name:"
AnchorPane.leftAnchor=
"20.0"
/>
<TextField
fx:id=
"firstNameField"
layoutX=
"175.0"
layoutY=
"38.0"
prefWidth=
"150.0"
AnchorPane.rightAnchor=
"20.0"
/>
<TextField
fx:id=
"lastNameField"
layoutX=
"175.0"
layoutY=
"76.0"
prefWidth=
"150.0"
AnchorPane.rightAnchor=
"20.0"
/>
<TextField
fx:id=
"ssnTextField"
layoutX=
"175.0"
layoutY=
"112.0"
prefWidth=
"150.0"
AnchorPane.rightAnchor=
"20.0"
/>
</children>
</AnchorPane>
src/main/resources/PatientRegister.fxml
0 → 100644
View file @
ce679794
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<AnchorPane
prefHeight=
"400.0"
prefWidth=
"600.0"
xmlns=
"http://javafx.com/javafx/11.0.1"
xmlns:fx=
"http://javafx.com/fxml/1"
fx:controller=
"mappe.del2.GUI.controllers.PatientRegister"
>
<children>
<MenuBar
AnchorPane.leftAnchor=
"0.0"
AnchorPane.rightAnchor=
"0.0"
>
<menus>
<Menu
mnemonicParsing=
"false"
text=
"File"
>
<items>
<MenuItem
mnemonicParsing=
"false"
onAction=
"#importFromCSV"
text=
"Import from .CSV"
/>
<MenuItem
mnemonicParsing=
"false"
onAction=
"#exportToCSV"
text=
"Export to .CSV"
/>
<SeparatorMenuItem
disable=
"true"
mnemonicParsing=
"false"
/>
<MenuItem
mnemonicParsing=
"false"
onAction=
"#quit"
text=
"Exit"
/>
</items>
</Menu>
<Menu
mnemonicParsing=
"false"
text=
"Edit"
>
<items>
<MenuItem
mnemonicParsing=
"false"
onAction=
"#addPatient"
text=
"Add new patient"
/>
<MenuItem
mnemonicParsing=
"false"
onAction=
"#editSelectedPatient"
text=
"Edit selected patient"
/>
<MenuItem
mnemonicParsing=
"false"
onAction=
"#removeSelectedPatient"
text=
"Remove selected patient"
/>
</items>
</Menu>
<Menu
mnemonicParsing=
"false"
text=
"Help"
>
<items>
<MenuItem
mnemonicParsing=
"false"
onAction=
"#aboutWindow"
text=
"About"
/>
</items>
</Menu>
</menus>
</MenuBar>
<Button
layoutX=
"14.0"
layoutY=
"57.0"
mnemonicParsing=
"false"
onAction=
"#addPatient"
prefHeight=
"60.0"
prefWidth=
"60.0"
text=
"Add"
AnchorPane.leftAnchor=
"10.0"
AnchorPane.topAnchor=
"40.0"
/>
<Button
layoutX=
"73.0"
layoutY=
"57.0"
mnemonicParsing=
"false"
onAction=
"#removeSelectedPatient"
prefHeight=
"60.0"
prefWidth=
"60.0"
text=
"Remove"
AnchorPane.leftAnchor=
"80.0"
AnchorPane.topAnchor=
"40.0"
/>
<Button
layoutX=
"136.0"
layoutY=
"57.0"
mnemonicParsing=
"false"
onAction=
"#editSelectedPatient"
prefHeight=
"60.0"
prefWidth=
"60.0"
text=
"Edit"
AnchorPane.leftAnchor=
"150.0"
AnchorPane.topAnchor=
"40.0"
/>
<TableView
fx:id=
"tableView"
prefHeight=
"255.0"
prefWidth=
"600.0"
AnchorPane.bottomAnchor=
"25.0"
AnchorPane.leftAnchor=
"0.0"
AnchorPane.rightAnchor=
"0.0"
AnchorPane.topAnchor=
"110.0"
>
<columns>
<TableColumn
fx:id=
"firstNameColumn"
prefWidth=
"206.0"
text=
"First name"
/>
<TableColumn
fx:id=
"lastNameColumn"
minWidth=
"7.0"
prefWidth=
"193.0"
text=
"Last name"
/>
<TableColumn
fx:id=
"ssnColumn"
prefWidth=
"200.0"
text=
"Social security number"
/>
</columns>
</TableView>
<Label
layoutX=
"14.0"
layoutY=
"378.0"
text=
"Status"
/>
</children>
</AnchorPane>
src/main/resources/icons/avatar.png
0 → 100644
View file @
ce679794
8.66 KB
src/main/resources/icons/book.png
0 → 100644
View file @
ce679794
6.52 KB
src/main/resources/icons/cancel.png
0 → 100644
View file @
ce679794
10.3 KB
src/main/resources/icons/copy.png
0 → 100644
View file @
ce679794
4 KB
src/main/resources/icons/download-1.png
0 → 100644
View file @
ce679794
4.89 KB
src/main/resources/icons/download.png
0 → 100644
View file @
ce679794
7.85 KB
src/main/resources/icons/folder.png
0 → 100644
View file @
ce679794
4.82 KB
src/main/resources/icons/garbage.png
0 → 100644
View file @
ce679794
4.99 KB
src/main/resources/icons/upload-1.png
0 → 100644
View file @
ce679794
4.65 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment