Views & Controller erstellt
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
package com.bib.essensbestellungsverwaltung;
|
||||
|
||||
public class AdminController {
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
package com.bib.essensbestellungsverwaltung;
|
||||
|
||||
public class LaunchController {
|
||||
}
|
@@ -0,0 +1,38 @@
|
||||
/*Richard Reiswich*/
|
||||
package com.bib.essensbestellungsverwaltung;
|
||||
|
||||
import javafx.beans.NamedArg;
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.scene.control.Button;
|
||||
import javafx.scene.control.PasswordField;
|
||||
import javafx.scene.control.TextField;
|
||||
public class LoginController {
|
||||
@FXML
|
||||
private TextField tfEmail;
|
||||
|
||||
@FXML
|
||||
private PasswordField pfPassword;
|
||||
|
||||
@FXML
|
||||
private Button btLogin;
|
||||
|
||||
@FXML
|
||||
private Button btSignUp;
|
||||
|
||||
|
||||
|
||||
@FXML
|
||||
protected void onBtLoginClick(){
|
||||
String email = tfEmail.getText();
|
||||
String password = pfPassword.getText();
|
||||
|
||||
|
||||
|
||||
tfEmail.setText("");
|
||||
pfPassword.setText("");
|
||||
}
|
||||
@FXML
|
||||
protected void changeToSignUp(){
|
||||
|
||||
}
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
package com.bib.essensbestellungsverwaltung;
|
||||
|
||||
public class ParentController{
|
||||
}
|
@@ -0,0 +1,24 @@
|
||||
package com.bib.essensbestellungsverwaltung;
|
||||
|
||||
import javafx.event.ActionEvent;
|
||||
import javafx.fxml.FXMLLoader;
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.Parent;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.stage.Stage;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class SceneController {
|
||||
private Stage stage;
|
||||
private Scene scene;
|
||||
private Parent root;
|
||||
|
||||
public void switchToLoginScene(ActionEvent event) throws IOException{
|
||||
Parent root = FXMLLoader.load(getClass().getResource("login-view.fxml"));
|
||||
stage = (Stage) ((Node)event.getSource()).getScene().getWindow();
|
||||
scene = new Scene(root);
|
||||
stage.setScene(scene);
|
||||
stage.show();
|
||||
}
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
package com.bib.essensbestellungsverwaltung;
|
||||
|
||||
public class StartPageController {
|
||||
}
|
Reference in New Issue
Block a user