Added MainWindow and MainWindowController javadoc and logger
This commit is contained in:
parent
784cbfdd76
commit
023cb5a99f
|
@ -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() {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue