Compare commits
7 Commits
79a1af6ac2
...
KindImplem
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b552284f21 | ||
| 2cc99c5cca | |||
|
|
0a15189a66 | ||
|
|
3fbca319ba | ||
| 4bc951b162 | |||
|
|
9b15191da6 | ||
|
|
3614743795 |
124
.idea/uiDesigner.xml
generated
Normal file
124
.idea/uiDesigner.xml
generated
Normal file
@@ -0,0 +1,124 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Palette2">
|
||||
<group name="Swing">
|
||||
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
|
||||
</item>
|
||||
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.svg" removable="false" auto-create-binding="false" can-attach-label="true">
|
||||
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
|
||||
<initial-values>
|
||||
<property name="text" value="Button" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="RadioButton" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="CheckBox" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="Label" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||
<preferred-size width="200" height="200" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||
<preferred-size width="200" height="200" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
|
||||
<preferred-size width="-1" height="20" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
|
||||
</item>
|
||||
</group>
|
||||
</component>
|
||||
</project>
|
||||
@@ -0,0 +1,128 @@
|
||||
package de.subway_surfers.vpr_app;
|
||||
|
||||
import javafx.collections.ListChangeListener;
|
||||
import javafx.event.ActionEvent;
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.scene.control.*;
|
||||
import javafx.scene.layout.Background;
|
||||
import javafx.scene.layout.GridPane;
|
||||
import javafx.scene.layout.HBox;
|
||||
import javafx.scene.layout.VBox;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class AccounterstellungMitarbeiter {
|
||||
|
||||
private @FXML Label status;
|
||||
private @FXML Label einmalpw;
|
||||
private @FXML HBox kindanzeige;
|
||||
private @FXML GridPane kindDaten;
|
||||
private @FXML RadioButton typMitarbeiter;
|
||||
private @FXML RadioButton typEltern;
|
||||
private ToggleGroup accountTyp;
|
||||
|
||||
public void initialize() {
|
||||
accountTyp = new ToggleGroup();
|
||||
accountTyp.getToggles().add(typEltern);
|
||||
accountTyp.getToggles().add(typMitarbeiter);
|
||||
einmalpw.setText(einmalPwGenerieren());
|
||||
}
|
||||
|
||||
public void onZurueck(ActionEvent actionEvent) {
|
||||
VerwaltungApplication.sceneWechseln("hauptmenue_mitarbeiter-view.fxml");
|
||||
}
|
||||
|
||||
public void onAbmelden(ActionEvent actionEvent) {
|
||||
VerwaltungApplication.abmelden();
|
||||
}
|
||||
|
||||
public void onTypMitarbeiter(ActionEvent actionEvent) {
|
||||
kindDaten.getChildren().clear();
|
||||
}
|
||||
|
||||
public void onTypEltern(ActionEvent actionEvent) {
|
||||
Label ueberschrift = new Label();
|
||||
ueberschrift.setText("Daten des Kindes:");
|
||||
kindDaten.addRow(0);
|
||||
kindDaten.addColumn(0);
|
||||
kindDaten.addRow(1);
|
||||
kindDaten.add(ueberschrift,0,0);
|
||||
|
||||
kindDaten.addRow(1);
|
||||
Label vname = new Label("Vorname:");
|
||||
kindDaten.add(vname, 0, 1);
|
||||
TextField vnameEingabe = new TextField();
|
||||
kindDaten.add(vnameEingabe, 1, 1);
|
||||
|
||||
kindDaten.addRow(2);
|
||||
Label nname = new Label("Nachname:");
|
||||
kindDaten.add(nname, 0, 2);
|
||||
TextField nnameEingabe = new TextField();
|
||||
kindDaten.add(nnameEingabe, 1, 2);
|
||||
|
||||
kindDaten.addRow(3);
|
||||
Label geburtstag = new Label("Geburtstag: ");
|
||||
kindDaten.add(geburtstag, 0, 3);
|
||||
DatePicker geburtstagEingabe = new DatePicker();
|
||||
geburtstagEingabe.setEditable(false);
|
||||
kindDaten.add(geburtstagEingabe, 1, 3);
|
||||
|
||||
kindDaten.addRow(4);
|
||||
Button hinzufuegen = new Button("hinzufügen");
|
||||
kindDaten.add(hinzufuegen, 1, 4);
|
||||
|
||||
kindDaten.addRow(5);
|
||||
hinzufuegen.setOnAction(e -> {
|
||||
Button neues = new Button(vnameEingabe.getText());
|
||||
|
||||
boolean vnameGueltig = false;
|
||||
boolean gebGueltig = false;
|
||||
boolean nnameGueltig = false;
|
||||
|
||||
if (!vnameEingabe.getText().equals("")) {
|
||||
vnameGueltig = true;
|
||||
}
|
||||
|
||||
if (!nnameEingabe.getText().equals("")) {
|
||||
nnameGueltig = true;
|
||||
}
|
||||
|
||||
if (!geburtstagEingabe.getEditor().getText().equals("")) {
|
||||
gebGueltig = true;
|
||||
}
|
||||
|
||||
if (vnameGueltig && gebGueltig && nnameGueltig) {
|
||||
kindanzeige.getChildren().add(neues);
|
||||
neues.setOnAction(a -> {
|
||||
((HBox) neues.getParent()).getChildren().remove(neues);
|
||||
});
|
||||
vnameEingabe.setText("");
|
||||
nnameEingabe.setText("");
|
||||
geburtstagEingabe.getEditor().setText("");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private String einmalPwGenerieren() {
|
||||
final int pwLaenge = 8;
|
||||
String pw = "";
|
||||
Random zufall = new Random();
|
||||
for (int i = 0; i < pwLaenge; i++) {
|
||||
pw += (char)zufall.nextInt('A', 'Z' + 1);
|
||||
}
|
||||
return pw;
|
||||
}
|
||||
|
||||
private boolean eingabenGueltig() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public void onSpeichern(ActionEvent actionEvent) {
|
||||
if (eingabenGueltig()) {
|
||||
status.setText("Daten Erfolgreich gespeichert");
|
||||
einmalpw.setText(einmalPwGenerieren());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package de.subway_surfers.vpr_app;
|
||||
|
||||
import javafx.event.ActionEvent;
|
||||
|
||||
public class HauptmenueMitarbeiterView {
|
||||
|
||||
public void onAbmelden(ActionEvent actionEvent) {
|
||||
VerwaltungApplication.abmelden();
|
||||
}
|
||||
|
||||
public void onAccountAnlegen(ActionEvent actionEvent) {
|
||||
VerwaltungApplication.sceneWechseln("accounterstellung_mitarbeiter.fxml");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
package de.subway_surfers.vpr_app;
|
||||
|
||||
import javafx.application.Application;
|
||||
import javafx.fxml.FXMLLoader;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.stage.Stage;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class HelloApplication extends Application {
|
||||
|
||||
@Override
|
||||
public void start(Stage stage) throws IOException {
|
||||
FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("hello-view.fxml"));
|
||||
Scene scene = new Scene(fxmlLoader.load(), 320, 240);
|
||||
stage.setTitle("Hello!");
|
||||
stage.setScene(scene);
|
||||
stage.show();
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
launch();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
package de.subway_surfers.vpr_app;
|
||||
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.scene.control.Label;
|
||||
|
||||
public class HelloController {
|
||||
|
||||
@FXML
|
||||
private Label welcomeText;
|
||||
|
||||
@FXML
|
||||
protected void onHelloButtonClick() {
|
||||
welcomeText.setText("Welcome to JavaFX Application!");
|
||||
}
|
||||
|
||||
}
|
||||
6
src/main/java/de/subway_surfers/vpr_app/LoginView.java
Normal file
6
src/main/java/de/subway_surfers/vpr_app/LoginView.java
Normal file
@@ -0,0 +1,6 @@
|
||||
package de.subway_surfers.vpr_app;
|
||||
|
||||
import javafx.scene.control.Button;
|
||||
|
||||
public class LoginView {
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
package de.subway_surfers.vpr_app;
|
||||
|
||||
import javafx.application.Application;
|
||||
import javafx.fxml.FXMLLoader;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.control.Alert;
|
||||
import javafx.stage.Stage;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class VerwaltungApplication extends Application {
|
||||
|
||||
private static Stage stage;
|
||||
|
||||
@Override
|
||||
public void start(Stage stage) throws IOException {
|
||||
FXMLLoader fxmlLoader = new FXMLLoader(VerwaltungApplication.class.getResource("login-view.fxml"));
|
||||
Scene scene = new Scene(fxmlLoader.load());
|
||||
|
||||
stage.setWidth(960);
|
||||
stage.setHeight(540);
|
||||
|
||||
stage.setMinWidth(960);
|
||||
stage.setMinHeight(540);
|
||||
|
||||
stage.setTitle("Hello!");
|
||||
stage.setScene(scene);
|
||||
stage.show();
|
||||
|
||||
VerwaltungApplication.stage = stage;
|
||||
}
|
||||
|
||||
public static Stage getStage() {
|
||||
return stage;
|
||||
}
|
||||
public static void setStage(Stage stage) {
|
||||
VerwaltungApplication.stage = stage;
|
||||
}
|
||||
|
||||
/**
|
||||
* Die Scene auf der aktuellen Stage wird durch die in der fxml-Datei definierte Scene ausgetauscht.
|
||||
*
|
||||
* Geschrieben: Sven Alteköster
|
||||
* Getestet:
|
||||
*
|
||||
* @param fxml name der zu ladenden fxml Datei.
|
||||
*/
|
||||
public static void sceneWechseln(String fxml) {
|
||||
FXMLLoader fxmlLoader = new FXMLLoader(VerwaltungApplication.class.getResource(fxml));
|
||||
|
||||
Stage akt = VerwaltungApplication.getStage();
|
||||
|
||||
double breite = akt.getWidth();
|
||||
double hoehe = akt.getHeight();
|
||||
|
||||
//neue Scene wird auf die Stage gesetzt
|
||||
try {
|
||||
Scene scene = new Scene(fxmlLoader.load());
|
||||
akt.setScene(scene);
|
||||
|
||||
akt.show();
|
||||
|
||||
akt.setWidth(breite);
|
||||
akt.setHeight(hoehe);
|
||||
}
|
||||
//wird die angegebene fxml Datei nicht gefunden, wird ein Alertfenster geöffnet
|
||||
catch (IOException e) {
|
||||
Alert alert = new Alert(Alert.AlertType.ERROR);
|
||||
alert.setContentText("Beim Laden der Maske ist ein Fehler aufgetreten");
|
||||
alert.showAndWait();
|
||||
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* in einem neuen Fenster wird die in der fxml-Datei definierte Scene gesetzt.
|
||||
* Die geladene Scene wird <b><u>nicht</u></b> zu der neuen Hauptstage.
|
||||
*
|
||||
* Geschrieben: Sven Alteköster
|
||||
* Getestet:
|
||||
*
|
||||
* @param neue Stage auf der die Scene gesetzt werden soll
|
||||
* @param width breite des neuen Fensters
|
||||
* @param height höhe des neuen Fensters
|
||||
* @param fxml name der fxml Datei
|
||||
*/
|
||||
public static void sceneWechseln(Stage neue, int width, int height, String fxml) {
|
||||
FXMLLoader fxmlLoader = new FXMLLoader(VerwaltungApplication.class.getResource(fxml));
|
||||
|
||||
Stage akt = VerwaltungApplication.getStage();
|
||||
//neue Scene wird auf eine neue Stage gesetzt
|
||||
try {
|
||||
Scene scene = new Scene(fxmlLoader.load(), width, height);
|
||||
neue.setScene(scene);
|
||||
|
||||
neue.show();
|
||||
}
|
||||
//wird die angegebene fxml Datei nicht gefunden, wird ein Alertfenster geöffnet
|
||||
catch (IOException | RuntimeException e) {
|
||||
Alert alert = new Alert(Alert.AlertType.ERROR);
|
||||
alert.setContentText("Beim Laden der Maske ist ein Fehler aufgetreten");
|
||||
alert.showAndWait();
|
||||
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
public static void abmelden() {
|
||||
sceneWechseln("login-view.fxml");
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
launch();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package de.subway_surfers.vpr_app;
|
||||
|
||||
import javafx.event.ActionEvent;
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.fxml.FXMLLoader;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.control.Alert;
|
||||
import javafx.scene.control.Button;
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.stage.Stage;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class VerwaltungController {
|
||||
|
||||
public void initialize(){
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Wird der Abmeldenbutton geklickt, wird der Nutzer angemeldet.
|
||||
*/
|
||||
public void onAnmeldenClick(ActionEvent actionEvent) {
|
||||
VerwaltungApplication.sceneWechseln("hauptmenue_mitarbeiter-view.fxml");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
<?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.AccounterstellungMitarbeiter"
|
||||
prefHeight="400.0" prefWidth="600.0"
|
||||
stylesheets="@layout.css">
|
||||
|
||||
<top>
|
||||
<BorderPane styleClass="kopfzeile">
|
||||
<left>
|
||||
<Button text="Zurück" onAction="#onZurueck"/>
|
||||
</left>
|
||||
<right>
|
||||
<Button text="Abmelden" onAction="#onAbmelden"/>
|
||||
</right>
|
||||
</BorderPane>
|
||||
</top>
|
||||
<center>
|
||||
<BorderPane styleClass="main">
|
||||
<left>
|
||||
<VBox styleClass="accounterstellung_links">
|
||||
<GridPane styleClass="accounterstellung_daten">
|
||||
<Label text="Accountname:" GridPane.rowIndex="0" GridPane.columnIndex="0"/>
|
||||
<TextField GridPane.rowIndex="0" GridPane.columnIndex="1"/>
|
||||
<Label text="E-Mail:" GridPane.rowIndex="1" GridPane.columnIndex="0"/>
|
||||
<TextField GridPane.rowIndex="1" GridPane.columnIndex="1"/>
|
||||
<RadioButton fx:id="typMitarbeiter" onAction="#onTypMitarbeiter" text="Mitarbeiter" GridPane.rowIndex="2" GridPane.columnIndex="0"/>
|
||||
<RadioButton fx:id="typEltern" onAction="#onTypEltern" text="Eltern" GridPane.rowIndex="2" GridPane.columnIndex="1"/>
|
||||
</GridPane>
|
||||
<GridPane fx:id="kindDaten" styleClass="accounterstellung_daten"/>
|
||||
<HBox fx:id="kindanzeige"/>
|
||||
</VBox>
|
||||
</left>
|
||||
<right>
|
||||
<HBox>
|
||||
<Label text="Einmalpasswort: "/>
|
||||
<Label fx:id="einmalpw"/>
|
||||
</HBox>
|
||||
</right>
|
||||
</BorderPane>
|
||||
</center>
|
||||
<bottom>
|
||||
<BorderPane>
|
||||
<right>
|
||||
<HBox styleClass="button-untenrechts">
|
||||
<Label fx:id="status"/>
|
||||
<Button text="Speichern" onAction="#onSpeichern"/>
|
||||
</HBox>
|
||||
</right>
|
||||
</BorderPane>
|
||||
</bottom>
|
||||
</BorderPane>
|
||||
@@ -0,0 +1,46 @@
|
||||
<?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" onAction="#onAbmelden"/>
|
||||
</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" onAction="#onAccountAnlegen"/>
|
||||
</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>
|
||||
</BorderPane>
|
||||
@@ -1,16 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.geometry.Insets?>
|
||||
<?import javafx.scene.control.Label?>
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
|
||||
<?import javafx.scene.control.Button?>
|
||||
<VBox alignment="CENTER" spacing="20.0" xmlns:fx="http://javafx.com/fxml"
|
||||
fx:controller="de.subway_surfers.vpr_app.HelloController">
|
||||
<padding>
|
||||
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0"/>
|
||||
</padding>
|
||||
|
||||
<Label fx:id="welcomeText"/>
|
||||
<Button text="Hello!" onAction="#onHelloButtonClick"/>
|
||||
</VBox>
|
||||
84
src/main/resources/de/subway_surfers/vpr_app/layout.css
Normal file
84
src/main/resources/de/subway_surfers/vpr_app/layout.css
Normal file
@@ -0,0 +1,84 @@
|
||||
.button {
|
||||
-fx-pref-width: 100;
|
||||
-fx-font-size: 15;
|
||||
}
|
||||
|
||||
* {
|
||||
-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;
|
||||
}
|
||||
|
||||
.button-untenrechts {
|
||||
-fx-padding: 20;
|
||||
}
|
||||
|
||||
.ueberschrift {
|
||||
-fx-alignment: center;
|
||||
}
|
||||
|
||||
.ueberschrift > .label{
|
||||
-fx-font-size: 30;
|
||||
}
|
||||
|
||||
.text-field {
|
||||
-fx-pref-width: 225;
|
||||
-fx-pref-height: 32;
|
||||
}
|
||||
|
||||
.accounterstellung_daten {
|
||||
-fx-vgap: 10;
|
||||
-fx-hgap: 10;
|
||||
}
|
||||
|
||||
.accounterstellung_links {
|
||||
-fx-spacing: 20;
|
||||
}
|
||||
|
||||
.falscheEingabe {
|
||||
-fx-background-color: #FFDCDC;
|
||||
-fx-text-fill: #FFDCDC;
|
||||
}
|
||||
40
src/main/resources/de/subway_surfers/vpr_app/login-view.fxml
Normal file
40
src/main/resources/de/subway_surfers/vpr_app/login-view.fxml
Normal 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.VerwaltungController"
|
||||
prefHeight="400.0" prefWidth="600.0"
|
||||
stylesheets="@layout.css" styleClass="login aussen">
|
||||
|
||||
<center>
|
||||
<GridPane styleClass="login_eingabe">
|
||||
<HBox GridPane.columnSpan="2" styleClass="ueberschrift">
|
||||
<Label text="Anmelden" styleClass="label"/>
|
||||
</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"/>
|
||||
<PasswordField GridPane.rowIndex="2" GridPane.columnIndex="1"/>
|
||||
|
||||
<CheckBox text="Kennwort merken" GridPane.rowIndex="3" GridPane.columnIndex="0"/>
|
||||
</GridPane>
|
||||
</center>
|
||||
|
||||
<bottom>
|
||||
<BorderPane>
|
||||
<right>
|
||||
<VBox styleClass="button-untenrechts">
|
||||
<Button text="Anmelden" onAction="#onAnmeldenClick"/>
|
||||
</VBox>
|
||||
|
||||
</right>
|
||||
</BorderPane>
|
||||
</bottom>
|
||||
</BorderPane>
|
||||
Reference in New Issue
Block a user