Skip to content

Commit

Permalink
Renaming controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Nourdin committed Dec 19, 2017
1 parent 6a48611 commit e49a8a6
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/countdownlock/config/ConfigWindow.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<?import javafx.scene.layout.*?>
<VBox xmlns:fx="http://javafx.com/fxml"
xmlns="http://javafx.com/javafx"
fx:controller="countdownlock.config.ConfigWindow"
fx:controller="countdownlock.config.ConfigWindowController"
fx:id="root"
styleClass="vbox">

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package countdownlock.config;

import countdownlock.game.GameWindow;
import countdownlock.game.GameWindowController;
import countdownlock.generic.URLLoader;
import countdownlock.generic.WindowController;
import javafx.fxml.FXML;
Expand All @@ -12,7 +12,7 @@
import java.net.URL;


public class ConfigWindow extends WindowController {
public class ConfigWindowController extends WindowController {
@FXML
private TextField words;
@FXML
Expand All @@ -29,7 +29,7 @@ private void handleSubmitButtonAction() throws IOException {
URL location = URLLoader.getURL("game/GameWindow.fxml");
FXMLLoader loader = new FXMLLoader(location);
Parent newRoot = loader.load();
loader.<GameWindow>getController()
loader.<GameWindowController>getController()
.initialize(words.getText().split(" "), timer.getValue(), help.isSelected(), stress.isSelected());

root.getScene().setRoot(newRoot);
Expand Down
2 changes: 1 addition & 1 deletion src/countdownlock/end/DefeatWindow.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<?import javafx.scene.layout.VBox?>
<VBox xmlns:fx="http://javafx.com/fxml"
xmlns="http://javafx.com/javafx"
fx:controller="countdownlock.end.DefeatWindow"
fx:controller="countdownlock.end.DefeatWindowController"
fx:id="root"
styleClass="vbox">
<Label styleClass="defeat-label"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

import countdownlock.generic.WindowController;

public class DefeatWindow extends WindowController {
public class DefeatWindowController extends WindowController {

}
2 changes: 1 addition & 1 deletion src/countdownlock/end/VictoryWindow.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<?import javafx.scene.layout.VBox?>
<VBox xmlns:fx="http://javafx.com/fxml"
xmlns="http://javafx.com/javafx"
fx:controller="countdownlock.end.VictoryWindow"
fx:controller="countdownlock.end.VictoryWindowController"
fx:id="root"
styleClass="vbox">
<Label styleClass="victory-label"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

import countdownlock.generic.WindowController;

public class VictoryWindow extends WindowController {
public class VictoryWindowController extends WindowController {

}
2 changes: 1 addition & 1 deletion src/countdownlock/game/Countdown.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<?import javafx.scene.layout.HBox?>
<HBox xmlns:fx="http://javafx.com/fxml"
xmlns="http://javafx.com/javafx"
fx:controller="countdownlock.game.Countdown"
fx:controller="countdownlock.game.CountdownController"
fx:id="root"
styleClass="hbox, title-hbox">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import java.io.IOException;

public class Countdown extends WindowController {
public class CountdownController extends WindowController {
@FXML
private Label minutesLabel, secondsLabel;
private MyIntegerProperties minutes, seconds;
Expand Down
2 changes: 1 addition & 1 deletion src/countdownlock/game/ErrorLabel.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<?import javafx.scene.control.Label?>
<Label xmlns:fx="http://javafx.com/fxml"
xmlns="http://javafx.com/javafx"
fx:controller="countdownlock.game.ErrorLabel"
fx:controller="countdownlock.game.ErrorLabelController"
fx:id="errorLabel"
styleClass="error-label"
text="Erreur, réesayez!"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import javafx.scene.control.Label;
import javafx.util.Duration;

public class ErrorLabel extends WindowController {
public class ErrorLabelController extends WindowController {
@FXML
private Label errorLabel;

Expand Down
2 changes: 1 addition & 1 deletion src/countdownlock/game/FieldsGrid.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<?import javafx.scene.layout.GridPane?>
<GridPane xmlns:fx="http://javafx.com/fxml"
xmlns="http://javafx.com/javafx"
fx:controller="countdownlock.game.FieldsGrid"
fx:controller="countdownlock.game.FieldsGridController"
fx:id="fieldsGrid"
styleClass="fields-grid"
visible="false"/>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import javafx.fxml.FXML;
import javafx.scene.layout.GridPane;

public class FieldsGrid extends WindowController {
public class FieldsGridController extends WindowController {
@FXML
private GridPane fieldsGrid;

Expand Down
2 changes: 1 addition & 1 deletion src/countdownlock/game/GameWindow.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<?import javafx.scene.layout.VBox?>
<VBox xmlns:fx="http://javafx.com/fxml"
xmlns="http://javafx.com/javafx"
fx:controller="countdownlock.game.GameWindow"
fx:controller="countdownlock.game.GameWindowController"
fx:id="root"
styleClass="vbox">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@

import java.io.IOException;

public class GameWindow extends WindowController {
public class GameWindowController extends WindowController {
@FXML
private Button startButton, confirmButton;
@FXML
private Label errorLabel;
@FXML
private ErrorLabel errorLabelController;
private ErrorLabelController errorLabelController;
@FXML
private GridPane fieldsGrid;
@FXML
private FieldsGrid fieldsGridController;
private FieldsGridController fieldsGridController;
@FXML
private HBox countdown;
@FXML
private Countdown countdownController;
private CountdownController countdownController;

public void initialize(String[] words, int duration, boolean help, boolean doStress) {
countdownController.initialize(duration, doStress);
Expand Down

0 comments on commit e49a8a6

Please sign in to comment.