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 ch.zhaw.projekt2.turnierverwaltung.FXController;
import javafx.application.Platform; import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.fxml.FXML; 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 { public class MainWindowController extends FXController {
@FXML private static final Logger logger = Logger.getLogger(MainWindowController.class.getCanonicalName());
void changeLangToGerman(ActionEvent event) {
/**
* Method changes the language Setting to german
*/
@FXML
void changeLangToGerman() {
logger.fine("language setting changed to german");
} }
/**
* This Method initializes the
*/
@FXML @FXML
void closeApplication(ActionEvent event) { void closeApplication() {
logger.fine("");
Platform.exit(); Platform.exit();
} }
/**
* There is no content to load
*/
@Override @Override
public void loadContent() { public void loadContent() {
} }
} }