diff options
Diffstat (limited to 'src/main/resources/fxml/employeeListItem.fxml')
-rw-r--r-- | src/main/resources/fxml/employeeListItem.fxml | 55 |
1 files changed, 29 insertions, 26 deletions
diff --git a/src/main/resources/fxml/employeeListItem.fxml b/src/main/resources/fxml/employeeListItem.fxml index eb5c95c..3c020eb 100644 --- a/src/main/resources/fxml/employeeListItem.fxml +++ b/src/main/resources/fxml/employeeListItem.fxml @@ -4,50 +4,53 @@ <?import javafx.scene.image.ImageView?> <?import javafx.scene.layout.AnchorPane?> <?import javafx.scene.layout.HBox?> -<?import javafx.scene.text.Font?> + <AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" - prefHeight="96.0" prefWidth="360.0" styleClass="bg-white, shadowed" + onMouseClicked="#onEmployeeClicked" prefHeight="80.0" prefWidth="320.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.EmployeeListItemController" - onMouseClicked="#onEmployeeClicked"> + fx:controller="at.ac.tuwien.sepm.assignment.groupphase.einsatzverwaltung.controller.EmployeeListItemController"> <children> - <Label fx:id="lblName" layoutX="8.0" layoutY="22.0" text="Peter Mustermann" - AnchorPane.leftAnchor="10.0" AnchorPane.topAnchor="5.0"> - <font> - <Font name="System Bold" size="18.0"/> - </font> + <Label fx:id="lblName" layoutX="8.0" layoutY="22.0" styleClass="text-big, text-bold" + text="Peter Mustermann" AnchorPane.leftAnchor="10.0" AnchorPane.topAnchor="5.0"> </Label> - <HBox layoutX="10.0" layoutY="40.0" prefHeight="42.0" prefWidth="339.0" + <HBox layoutX="10.0" layoutY="40.0" prefHeight="42.0" prefWidth="300.0" AnchorPane.leftAnchor="10.0" AnchorPane.topAnchor="40.0"> <children> - <AnchorPane prefHeight="42.0" prefWidth="112.0"> + <AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" + minWidth="-Infinity" prefHeight="42.0" prefWidth="100.0"> <children> <!-- TODO: update images to have transparent background! --> - <ImageView fx:id="imgQualification" fitHeight="25.0" fitWidth="25.0" layoutX="10.0" - layoutY="11.0" pickOnBounds="true" preserveRatio="true" AnchorPane.leftAnchor="10.0" - AnchorPane.topAnchor="10.0"/> - <Label fx:id="lblQualification" layoutX="45.0" layoutY="14.0" text="Notarzt" - AnchorPane.leftAnchor="45.0" AnchorPane.topAnchor="14.0"/> + <ImageView fx:id="imgQualification" fitHeight="25.0" fitWidth="25.0" layoutX="2.0" + pickOnBounds="true" preserveRatio="true" AnchorPane.leftAnchor="0.0" + AnchorPane.topAnchor="0.0"/> + <Label fx:id="lblQualification" layoutX="45.0" layoutY="14.0" styleClass="text-small" + text="Notarzt" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="0.0"> + </Label> </children> </AnchorPane> - <AnchorPane prefHeight="42.0" prefWidth="112.0"> + <AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" + minWidth="-Infinity" prefHeight="42.0" prefWidth="100.0"> <children> <!-- TODO: update images to have transparent background! --> <ImageView fx:id="imgPilot" fitHeight="25.0" fitWidth="25.0" layoutX="10.0" - layoutY="11.0" pickOnBounds="true" preserveRatio="true" AnchorPane.leftAnchor="10.0" - AnchorPane.topAnchor="10.0"/> - <Label fx:id="lblPilot" layoutX="53.0" layoutY="14.0" text="nicht Pilot" - AnchorPane.leftAnchor="45.0" AnchorPane.topAnchor="14.0"/> + layoutY="11.0" pickOnBounds="true" preserveRatio="true" AnchorPane.leftAnchor="0.0" + AnchorPane.topAnchor="0.0"/> + <Label fx:id="lblPilot" layoutX="53.0" layoutY="14.0" styleClass="text-small" + text="nicht Pilot" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="0.0"> + </Label> </children> </AnchorPane> - <AnchorPane prefHeight="42.0" prefWidth="112.0"> + <AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" + minWidth="-Infinity" prefHeight="42.0" prefWidth="100.0"> <children> <!-- TODO: update images to have transparent background! --> <ImageView fx:id="imgDriver" fitHeight="25.0" fitWidth="25.0" layoutX="10.0" - layoutY="11.0" pickOnBounds="true" preserveRatio="true" AnchorPane.leftAnchor="10.0" - AnchorPane.topAnchor="10.0"/> - <Label fx:id="lblDriver" layoutX="54.0" layoutY="14.0" text="ist Fahrer" - AnchorPane.leftAnchor="45.0" AnchorPane.topAnchor="14.0"/> + layoutY="11.0" pickOnBounds="true" preserveRatio="true" AnchorPane.leftAnchor="0.0" + AnchorPane.topAnchor="0.0"/> + <Label fx:id="lblDriver" layoutX="54.0" layoutY="14.0" styleClass="text-small" + text="ist Fahrer" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="0.0"> + </Label> </children> </AnchorPane> </children> |