aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorAndreas Weninger <e01526989@student.tuwien.ac.at>2018-05-03 20:25:01 +0200
committerTharre <tharre3@gmail.com>2018-05-08 12:35:21 +0200
commitd1be1e7dc30f11084f4d7054612d02a230271514 (patch)
treed8393da966004305154a4dcf4240d4671902a56f /src/main/java
parente8aff26f9855c9106defd23c78d37c0907a0d97e (diff)
downloadsepm-groupproject-d1be1e7dc30f11084f4d7054612d02a230271514.tar.gz
sepm-groupproject-d1be1e7dc30f11084f4d7054612d02a230271514.tar.xz
sepm-groupproject-d1be1e7dc30f11084f4d7054612d02a230271514.zip
Empty skeleton for VehiclePane.
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/ui/vehiclePane/VehiclePaneController.java33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/ui/vehiclePane/VehiclePaneController.java b/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/ui/vehiclePane/VehiclePaneController.java
new file mode 100644
index 0000000..ee9e29f
--- /dev/null
+++ b/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/ui/vehiclePane/VehiclePaneController.java
@@ -0,0 +1,33 @@
+package at.ac.tuwien.sepm.assignment.groupphase.einsatzverwaltung.ui.vehiclePane;
+
+import at.ac.tuwien.sepm.assignment.groupphase.einsatzverwaltung.dto.Vehicle;
+import java.io.IOException;
+import javafx.fxml.FXMLLoader;
+import javafx.scene.Node;
+
+public class VehiclePaneController {
+ public static VehiclePaneController createVehiclePane() throws IOException {
+ FXMLLoader fxmlLoader = new FXMLLoader(VehiclePaneController.class.getResource("/fxml/vehiclePane.fxml"));
+ Node root = fxmlLoader.load();
+ VehiclePaneController result = fxmlLoader.getController();
+ result.rootElement = root;
+
+ return result;
+ }
+
+ private Node rootElement;
+
+ public Node getRootElement() {
+ return rootElement;
+ }
+
+ /***
+ * Set the displayed data of this VehiclePane.
+ * @param vehicle The data to display.
+ * @param showQualification If true, the most recent registration of vehicle will be searched for the highest qualification.
+ */
+ public void setData(Vehicle vehicle, boolean showQualification)
+ {
+
+ }
+}