Added MainWindow and MainWindowController javadoc and logger

This commit is contained in:
Leonardo Brandenberger 2022-05-13 22:11:03 +02:00
parent 784cbfdd76
commit 023cb5a99f
1 changed files with 23 additions and 5 deletions

View File

@ -2,23 +2,41 @@ package ch.zhaw.projekt2.turnierverwaltung.main;
import ch.zhaw.projekt2.turnierverwaltung.FXController;
import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import java.util.logging.Logger;
/**
* Main WindowController Class in charge of the Controller Functions of it
* Since not much is directly in the main window only the top bar functionality is represented (language setting and
* close option).
*/
public class MainWindowController extends FXController {
@FXML
void changeLangToGerman(ActionEvent event) {
private static final Logger logger = Logger.getLogger(MainWindowController.class.getCanonicalName());
/**
* Method changes the language Setting to german
*/
@FXML
void changeLangToGerman() {
logger.fine("language setting changed to german");
}
/**
* This Method initializes the
*/
@FXML
void closeApplication(ActionEvent event) {
void closeApplication() {
logger.fine("");
Platform.exit();
}
/**
* There is no content to load
*/
@Override
public void loadContent() {
}
}