aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/resources/fxml
diff options
context:
space:
mode:
authorViktoria Pundy <viktoria.pundy@aon.at>2018-05-31 09:24:48 +0200
committerTharre <tharre3@gmail.com>2018-06-02 00:14:15 +0200
commit2ce4e7f6a0194c8428882216ad30821eb9e8eb8b (patch)
tree156816b3ed54518507d5a5b321e3c9a80d1db2db /src/main/resources/fxml
parentf5476716fa6aa1c2ce82a4cd116b8e80f2d30896 (diff)
downloadsepm-groupproject-2ce4e7f6a0194c8428882216ad30821eb9e8eb8b.tar.gz
sepm-groupproject-2ce4e7f6a0194c8428882216ad30821eb9e8eb8b.tar.xz
sepm-groupproject-2ce4e7f6a0194c8428882216ad30821eb9e8eb8b.zip
Added fxml and controller for archived operations [#27299]
Created fxml-file for archived operations. Additionally, a controller was created to fill the pane with information about an archived Operation. Furthermore, the already existing controller archiveOperationController was adjusted to created these panes according to the existing archived operations.
Diffstat (limited to 'src/main/resources/fxml')
-rw-r--r--src/main/resources/fxml/ArchiveOperation.fxml8
-rw-r--r--src/main/resources/fxml/OperationInArchive.fxml60
2 files changed, 64 insertions, 4 deletions
diff --git a/src/main/resources/fxml/ArchiveOperation.fxml b/src/main/resources/fxml/ArchiveOperation.fxml
index 8598350..21662fd 100644
--- a/src/main/resources/fxml/ArchiveOperation.fxml
+++ b/src/main/resources/fxml/ArchiveOperation.fxml
@@ -9,14 +9,14 @@
<AnchorPane fx:id="archiveOperationAP" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="650.0" prefWidth="800.0" style="-fx-background-color: BLACK;" visible="false" xmlns="http://javafx.com/javafx/9.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="at.ac.tuwien.sepm.assignment.groupphase.einsatzverwaltung.controller.ArchiveOperationController">
<children>
- <ScrollPane layoutY="100.0" prefHeight="550.0" prefWidth="800.0" AnchorPane.leftAnchor="0.0">
+ <ScrollPane layoutY="169.0" prefHeight="481.0" prefWidth="800.0" AnchorPane.leftAnchor="0.0">
<content>
<FlowPane fx:id="archiveOperationFlowPane" prefHeight="650.0" prefWidth="800.0" />
</content>
</ScrollPane>
<AnchorPane fx:id="apDetails" layoutX="201.0" prefHeight="650.0" prefWidth="800.0" style="-fx-background-color: rgba(239,235,232,1);" visible="false" AnchorPane.leftAnchor="0.0" AnchorPane.topAnchor="0.0">
<children>
- <AnchorPane prefHeight="170.0" prefWidth="800.0" style="-fx-background-color: rgba(191,144,0,1);">
+ <AnchorPane fx:id="backApDetails" prefHeight="170.0" prefWidth="800.0" style="-fx-background-color: rgba(191,144,0,1);">
<children>
<Label layoutX="81.0" layoutY="20.0" prefHeight="34.0" prefWidth="116.0" text="Archiv-Eintrag:" textFill="WHITE">
<font>
@@ -65,9 +65,9 @@
</ScrollPane>
</children>
</AnchorPane>
- <AnchorPane fx:id="apHeader" prefHeight="100.0" prefWidth="800.0" style="-fx-background-color: BROWN;">
+ <AnchorPane fx:id="backApMain" prefHeight="170.0" prefWidth="800.0" style="-fx-background-color: rgba(191,144,0,1);" visible="false" AnchorPane.leftAnchor="0.0" AnchorPane.topAnchor="0.0">
<children>
- <Hyperlink layoutX="713.0" layoutY="16.0" onAction="#backToMain" text="Zurück" textFill="WHITE">
+ <Hyperlink layoutX="29.0" layoutY="23.0" onAction="#backToMain" text="Zurück" textFill="WHITE">
<font>
<Font name="System Bold" size="16.0" />
</font>
diff --git a/src/main/resources/fxml/OperationInArchive.fxml b/src/main/resources/fxml/OperationInArchive.fxml
new file mode 100644
index 0000000..43ac14b
--- /dev/null
+++ b/src/main/resources/fxml/OperationInArchive.fxml
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<?import javafx.geometry.Insets?>
+<?import javafx.scene.image.Image?>
+<?import javafx.scene.image.ImageView?>
+<?import javafx.scene.layout.ColumnConstraints?>
+<?import javafx.scene.layout.GridPane?>
+<?import javafx.scene.layout.HBox?>
+<?import javafx.scene.layout.RowConstraints?>
+<?import javafx.scene.text.Font?>
+<?import javafx.scene.text.Text?>
+
+<GridPane hgap="6.0" maxHeight="100.0" maxWidth="400.0" prefHeight="100.0" prefWidth="400.0" styleClass="bg-white, shadowed" stylesheets="@/styles/main.css" xmlns="http://javafx.com/javafx/9.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="at.ac.tuwien.sepm.assignment.groupphase.einsatzverwaltung.controller.OperationInArchiveController">
+ <columnConstraints>
+ <ColumnConstraints />
+ <ColumnConstraints />
+ <ColumnConstraints />
+ <ColumnConstraints />
+ <ColumnConstraints />
+ </columnConstraints>
+ <rowConstraints>
+ <RowConstraints />
+ <RowConstraints />
+ <RowConstraints />
+ </rowConstraints>
+ <padding>
+ <Insets bottom="6.0" left="12.0" right="12.0" top="6.0" />
+ </padding>
+ <children>
+ <Text fx:id="txtAddress" text="Text" GridPane.rowIndex="1">
+ <font>
+ <Font size="20.0" />
+ </font>
+ </Text>
+ <HBox prefHeight="102.0" prefWidth="200.0" GridPane.rowIndex="2">
+ <children>
+ <ImageView fitHeight="23.0" fitWidth="32.0" pickOnBounds="true" preserveRatio="true">
+ <image>
+ <Image url="@../images/Vehicle.png" />
+ </image>
+ </ImageView>
+ <Text fx:id="txtVehicles" strokeType="OUTSIDE" strokeWidth="0.0" text="Text">
+ <font>
+ <Font size="20.0" />
+ </font>
+ </Text>
+ </children>
+ </HBox>
+ <Text fx:id="txtDate" nodeOrientation="RIGHT_TO_LEFT" strokeType="OUTSIDE" strokeWidth="0.0" text="Text" wrappingWidth="187.73674726486206" GridPane.columnIndex="1">
+ <font>
+ <Font name="System Bold" size="20.0" />
+ </font>
+ </Text>
+ <Text fx:id="txtOpCode" strokeType="OUTSIDE" strokeWidth="0.0" text="Text">
+ <font>
+ <Font name="System Bold" size="20.0" />
+ </font>
+ </Text>
+ </children>
+</GridPane>