Style: fix checkstyle errors

This commit is contained in:
Jona Walpert
2026-04-01 14:24:34 +02:00
parent 56ba5b81ae
commit 983f2cca5e
5 changed files with 21 additions and 33 deletions
@@ -8,11 +8,9 @@ import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
/** /**
* Entry point for the Casono client application. Handles client startup and * Entry point for the Casono client application. Handles client startup and connection parameters.
* connection parameters.
* *
* <p> * <p>Default constructor for the application.
* Default constructor for the application.
*/ */
public class ClientApp { public class ClientApp {
@@ -6,8 +6,7 @@ import javafx.application.Application;
/** /**
* Launcher for the Casono main UI. * Launcher for the Casono main UI.
* *
* <p> * <p>Default constructor for the application.
* Default constructor for the application.
*/ */
public class Launcher { public class Launcher {
@@ -10,8 +10,7 @@ import javafx.stage.Stage;
/** /**
* JavaFX Application class for the Casono main UI. * JavaFX Application class for the Casono main UI.
* *
* <p> * <p>Default constructor for the application.
* Default constructor for the application.
*/ */
public class Casinomainui extends Application { public class Casinomainui extends Application {
@@ -31,10 +30,12 @@ public class Casinomainui extends Application {
* @throws IOException If loading the FXML fails. * @throws IOException If loading the FXML fails.
*/ */
public void start(Stage stage) throws IOException { public void start(Stage stage) throws IOException {
FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/ui-structure/Casinomainui.fxml")); FXMLLoader fxmlLoader =
new FXMLLoader(getClass().getResource("/ui-structure/Casinomainui.fxml"));
Scene scene = new Scene(fxmlLoader.load(), SCENE_WIDTH, SCENE_HEIGHT); Scene scene = new Scene(fxmlLoader.load(), SCENE_WIDTH, SCENE_HEIGHT);
stage.setTitle("Casono"); stage.setTitle("Casono");
javafx.scene.image.Image icon = new javafx.scene.image.Image( javafx.scene.image.Image icon =
new javafx.scene.image.Image(
getClass().getResource("/images/logoinverted.png").toExternalForm()); getClass().getResource("/images/logoinverted.png").toExternalForm());
stage.getIcons().add(icon); stage.getIcons().add(icon);
stage.setScene(scene); stage.setScene(scene);
@@ -12,27 +12,17 @@ import javafx.scene.shape.Rectangle;
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
/** /** Controller for the Casono main UI lobby. Handles UI initialization and user actions. */
* Controller for the Casono main UI lobby. Handles UI initialization and user
* actions.
*/
public class CasinomainuiController { public class CasinomainuiController {
private static final Logger LOGGER = LogManager.getLogger(CasinomainuiController.class); private static final Logger LOGGER = LogManager.getLogger(CasinomainuiController.class);
@FXML @FXML private AnchorPane rootPane;
private AnchorPane rootPane; @FXML private Label titleLabel;
@FXML @FXML private Label subtitleLabel;
private Label titleLabel; @FXML private ImageView logoView;
@FXML @FXML private Rectangle greenBox;
private Label subtitleLabel; @FXML private Button exitbutton;
@FXML @FXML private VBox casinoTable;
private ImageView logoView;
@FXML
private Rectangle greenBox;
@FXML
private Button exitbutton;
@FXML
private VBox casinoTable;
private LobbyButtonTranslationManager translationManager; private LobbyButtonTranslationManager translationManager;
private LobbyButtonGridManager gridManager; private LobbyButtonGridManager gridManager;
@@ -51,7 +41,8 @@ public class CasinomainuiController {
logoView.setImage(new Image(getClass().getResource("/images/logo.png").toExternalForm())); logoView.setImage(new Image(getClass().getResource("/images/logo.png").toExternalForm()));
translationManager = LobbyButtonTranslationManager.getInstance(); translationManager = LobbyButtonTranslationManager.getInstance();
gridManager = new LobbyButtonGridManager(new javafx.scene.layout.GridPane(), translationManager); gridManager =
new LobbyButtonGridManager(new javafx.scene.layout.GridPane(), translationManager);
casinoTable.getChildren().clear(); casinoTable.getChildren().clear();
casinoTable.getChildren().add(gridManager.getGridPane()); casinoTable.getChildren().add(gridManager.getGridPane());
gridManager.renderLobbyButtons(); gridManager.renderLobbyButtons();
@@ -4,8 +4,7 @@ import java.util.HashMap;
import java.util.Map; import java.util.Map;
/** /**
* Manages the mapping between Button IDs and Lobby IDs in memory only. No file * Manages the mapping between Button IDs and Lobby IDs in memory only. No file operations,
* operations,
* runtime-only data structure. * runtime-only data structure.
*/ */
public class LobbyButtonTranslationManager { public class LobbyButtonTranslationManager {