Logging and docs added in several classes #27 #28 #53

Merged
brandleo merged 13 commits from logging_and_docs into main 2022-05-13 22:54:04 +02:00
1 changed files with 23 additions and 5 deletions
Showing only changes of commit 023cb5a99f - Show all commits

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() {
}
}