diff options
author | Dominic Rogetzer <e1627756@student.tuwien.ac.at> | 2018-06-15 12:47:10 +0200 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2018-06-16 15:15:32 +0200 |
commit | 2b2363f8f89058a1532f885a6cdd45c00434990b (patch) | |
tree | bd6bcbbdca4f64a738870c1943a07896e01f9852 | |
parent | 1ec6ae678c834592b5d731171a936161147c0707 (diff) | |
download | sepm-groupproject-2b2363f8f89058a1532f885a6cdd45c00434990b.tar.gz sepm-groupproject-2b2363f8f89058a1532f885a6cdd45c00434990b.tar.xz sepm-groupproject-2b2363f8f89058a1532f885a6cdd45c00434990b.zip |
Set width to parent-width, format code [#28618]
-rw-r--r-- | src/main/resources/fxml/createNewEmployee.fxml | 35 |
1 files changed, 23 insertions, 12 deletions
diff --git a/src/main/resources/fxml/createNewEmployee.fxml b/src/main/resources/fxml/createNewEmployee.fxml index 4848c09..3043952 100644 --- a/src/main/resources/fxml/createNewEmployee.fxml +++ b/src/main/resources/fxml/createNewEmployee.fxml @@ -8,16 +8,27 @@ <?import javafx.scene.control.TextField?> <?import javafx.scene.layout.AnchorPane?> -<AnchorPane prefHeight="96.0" prefWidth="740.0" 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.CreateNewEmployeeController"> - <children> - <Label fx:id="lblHeader" layoutX="14.0" layoutY="14.0" text="Neue Person erstellen" /> - <Label layoutX="14.0" layoutY="38.0" text="Name" /> - <Label layoutX="206.0" layoutY="38.0" text="Qualifikation" /> - <CheckBox fx:id="inputIsDriver" layoutX="343.0" layoutY="37.0" mnemonicParsing="false" text="Fahrer" /> - <CheckBox fx:id="inputIsPilot" layoutX="343.0" layoutY="62.0" mnemonicParsing="false" text="Pilot" /> - <Hyperlink fx:id="btnCancel" layoutX="441.0" layoutY="31.0" onAction="#onCancelClicked" text="abbrechen" /> - <Button fx:id="btnCreate" layoutX="441.0" layoutY="55.0" mnemonicParsing="false" onAction="#onCreateClicked" text="Erstellen" /> - <TextField fx:id="inputName" layoutX="14.0" layoutY="57.0" prefHeight="25.0" prefWidth="179.0" /> - <ChoiceBox fx:id="inputQualification" layoutX="199.0" layoutY="57.0" prefHeight="25.0" prefWidth="128.0" /> - </children> +<AnchorPane xmlns="http://javafx.com/javafx/9.0.1" + xmlns:fx="http://javafx.com/fxml/1" + styleClass="bg-white" + fx:id="apCreateNewEmployee" + prefWidth="${apCreateNewEmployee.parent.width}" + prefHeight="120" + fx:controller="at.ac.tuwien.sepm.assignment.groupphase.einsatzverwaltung.controller.CreateNewEmployeeController"> + <children> + <Label fx:id="lblHeader" layoutX="14.0" layoutY="14.0" text="Neue Person erstellen"/> + <Label layoutX="14.0" layoutY="38.0" text="Name"/> + <Label layoutX="206.0" layoutY="38.0" text="Qualifikation"/> + <CheckBox fx:id="inputIsDriver" layoutX="343.0" layoutY="37.0" mnemonicParsing="false" + text="Fahrer"/> + <CheckBox fx:id="inputIsPilot" layoutX="343.0" layoutY="62.0" mnemonicParsing="false" + text="Pilot"/> + <Hyperlink fx:id="btnCancel" layoutX="441.0" layoutY="31.0" onAction="#onCancelClicked" + text="abbrechen"/> + <Button fx:id="btnCreate" layoutX="441.0" layoutY="55.0" mnemonicParsing="false" + onAction="#onCreateClicked" text="Erstellen"/> + <TextField fx:id="inputName" layoutX="14.0" layoutY="57.0" prefHeight="25.0" prefWidth="179.0"/> + <ChoiceBox fx:id="inputQualification" layoutX="199.0" layoutY="57.0" prefHeight="25.0" + prefWidth="128.0"/> + </children> </AnchorPane> |