Oberflächen Login und Hauptmenü für Mitarbeiter

This commit is contained in:
SvenAlte 2023-12-07 20:37:01 +01:00
parent c909f52b62
commit 3614743795
6 changed files with 164 additions and 2 deletions

View File

@ -0,0 +1,4 @@
package de.subway_surfers.vpr_app;
public class HauptmenueMitarbeiterView {
}

View File

@ -11,8 +11,8 @@ public class HelloApplication extends Application {
@Override @Override
public void start(Stage stage) throws IOException { public void start(Stage stage) throws IOException {
FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("hello-view.fxml")); FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("login-view.fxml"));
Scene scene = new Scene(fxmlLoader.load(), 320, 240); Scene scene = new Scene(fxmlLoader.load(), 960, 540);
stage.setTitle("Hello!"); stage.setTitle("Hello!");
stage.setScene(scene); stage.setScene(scene);
stage.show(); stage.show();

View File

@ -0,0 +1,4 @@
package de.subway_surfers.vpr_app;
public class LoginView {
}

View File

@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--Erstellt von Sven Alteköster-->
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<BorderPane xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="de.subway_surfers.vpr_app.HauptmenueMitarbeiterView"
prefHeight="400.0" prefWidth="600.0"
stylesheets="@layout.css">
<top>
<BorderPane styleClass="kopfzeile">
<right>
<Button text="Abmelden"/>
</right>
</BorderPane>
</top>
<center>
<BorderPane styleClass="main">
<left>
<VBox styleClass="hauptmenue_buttons_links">
<Button text="Speiseplan"/>
<Button text="Alle Bestellungen anzeigen"/>
<Button text="Rechnungen herunterladen"/>
<Button text="Daten importieren/Exportieren"/>
<Button text="Account anlegen"/>
</VBox>
</left>
<right>
<GridPane styleClass="hauptmenue_wochenuebersicht">
<Label text="Montag" GridPane.columnIndex="0" GridPane.rowIndex="0"/>
<Label text="Dienstag" GridPane.columnIndex="1" GridPane.rowIndex="0"/>
<Label text="Mittwoch" GridPane.columnIndex="2" GridPane.rowIndex="0"/>
<Label text="Donnerstag" GridPane.columnIndex="3" GridPane.rowIndex="0"/>
<Label text="Freitag" GridPane.columnIndex="4" GridPane.rowIndex="0"/>
<Label text="Gericht1" styleClass="hauptmenue_gericht" GridPane.columnIndex="0" GridPane.rowIndex="1"/>
</GridPane>
</right>
</BorderPane>
</center>
<right>
<TilePane>
</TilePane>
</right>
</BorderPane>

View File

@ -0,0 +1,63 @@
.button {
-fx-pref-width: 100;
-fx-font-size: 15;
}
.kopfzeile{
-fx-border-width: 1;
-fx-border-color: transparent transparent black transparent;
-fx-padding: 10 20;
}
.main {
-fx-padding: 20;
}
.hauptmenue_buttons_links{
-fx-spacing: 20;
}
.hauptmenue_buttons_links .button{
-fx-pref-height: 32;
-fx-pref-width: 250;
}
.hauptmenue_wochenuebersicht{
-fx-grid-lines-visible: true;
-fx-grid-lines-visible: true;
}
.hauptmenue_wochenuebersicht > *{
-fx-pref-width: 100;
-fx-alignment: CENTER;
}
.hauptmenue_gericht {
-fx-pref-height: 50;
}
.login_eingabe {
-fx-vgap: 20;
-fx-alignment: CENTER;
}
.login_eingabe > *{
-fx-alignment: CENTER_LEFT;
-fx-font-size: 15;
-fx-pref-width: 200;
}
.login_btn_anmelden {
-fx-padding: 20;
}
.login_ueberschrift{
-fx-margin: 100 0 0 0;
-fx-alignment: center;
}
.login_ueberschrift .label {
-fx-font-size: 30;
}

View File

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<BorderPane xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="de.subway_surfers.vpr_app.LoginView"
prefHeight="400.0" prefWidth="600.0"
stylesheets="@layout.css" styleClass="login">
<center>
<GridPane styleClass="login_eingabe">
<HBox GridPane.columnSpan="2" styleClass="login_ueberschrift">
<Label text="Anmelden"/>
</HBox>
<Label text="Benutzername" GridPane.rowIndex="1" GridPane.columnIndex="0"/>
<TextField GridPane.rowIndex="1" GridPane.columnIndex="1"/>
<Label text="Passwort" GridPane.rowIndex="2" GridPane.columnIndex="0"/>
<TextField GridPane.rowIndex="2" GridPane.columnIndex="1"/>
<CheckBox text="Kennwort merken" GridPane.rowIndex="3" GridPane.columnIndex="0"/>
</GridPane>
</center>
<bottom>
<BorderPane>
<right>
<VBox styleClass="login_btn_anmelden">
<Button text="Anmelden" />
</VBox>
</right>
</BorderPane>
</bottom>
</BorderPane>