Created the flow that goes till the PSD
all the 4 scenes are now conneted with the flow, but not all the features of Polling Station Dashboard exists.voting-station-gui
parent
4720d66115
commit
c24c6bbbd5
|
@ -7,7 +7,7 @@
|
|||
<?import javafx.scene.control.*?>
|
||||
<?import javafx.scene.layout.*?>
|
||||
|
||||
<GridPane alignment="center" hgap="10" vgap="10" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="splash_screen_on_boot.java.SplashScreenOnBootLoader">
|
||||
<GridPane alignment="center" hgap="10" vgap="10" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="polling_station_dashboard.java.PollingStationDashboardController">
|
||||
<columnConstraints>
|
||||
<ColumnConstraints />
|
||||
<ColumnConstraints />
|
||||
|
|
|
@ -1,7 +1,16 @@
|
|||
package polling_station_dashboard.java;
|
||||
|
||||
import javafx.stage.Stage;
|
||||
|
||||
/**
|
||||
* Created by Vladimir Eliezer Tokarev on 28/05/2016.
|
||||
*/
|
||||
public class PollingStationDashboardController {
|
||||
|
||||
private Stage currentStage;
|
||||
|
||||
public void SetStage(Stage primaryStage)
|
||||
{
|
||||
this.currentStage = primaryStage;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,35 @@
|
|||
package polling_station_dashboard.java;
|
||||
|
||||
import javafx.fxml.FXMLLoader;
|
||||
import javafx.scene.Parent;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.stage.Stage;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* Created by Vladimir Eliezer Tokarev on 28/05/2016.
|
||||
* Created by Vladimir Eliezer Tokarev on 28/05/2016
|
||||
* This class loads the polling station fxml
|
||||
*/
|
||||
public class PollingStationDashboardLoader {
|
||||
|
||||
private static final String POLLING_STATION_DASHBOARD_FXML_PATH = "../fxml/polling_station_dashboard.fxml";
|
||||
|
||||
private Stage currentStage;
|
||||
|
||||
public PollingStationDashboardLoader (Stage primaryStage) throws IOException
|
||||
{
|
||||
currentStage = primaryStage;
|
||||
FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(POLLING_STATION_DASHBOARD_FXML_PATH));
|
||||
Parent root = fxmlLoader.load();
|
||||
PollingStationDashboardController controller = fxmlLoader.getController();
|
||||
|
||||
currentStage.setTitle("Polling Station Dashboard");
|
||||
currentStage.setScene(new Scene(root, 850, 615));
|
||||
currentStage.show();
|
||||
|
||||
|
||||
System.out.println("heyeyeye");
|
||||
controller.SetStage(currentStage);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -101,7 +101,7 @@
|
|||
</BorderPane>
|
||||
<BorderPane prefHeight="200.0" prefWidth="200.0" GridPane.rowIndex="2">
|
||||
<center>
|
||||
<Button mnemonicParsing="false" text="Ok" BorderPane.alignment="CENTER" />
|
||||
<Button mnemonicParsing="false" onMouseClicked="#GoToPollingStationDashboard" onMousePressed="#GoToPollingStationDashboard" text="Ok" BorderPane.alignment="CENTER" />
|
||||
</center>
|
||||
</BorderPane>
|
||||
</children>
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
package set_up_complete.java;
|
||||
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.stage.Stage;
|
||||
import polling_station_dashboard.java.PollingStationDashboardLoader;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* Created by Vladimir Eliezer Tokarev on 28/05/2016.
|
||||
|
@ -15,4 +19,8 @@ public class SetUpCompleteController {
|
|||
this.currentStage = primaryStage;
|
||||
}
|
||||
|
||||
@FXML
|
||||
private void GoToPollingStationDashboard() throws IOException {
|
||||
new PollingStationDashboardLoader(this.currentStage);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,7 +4,6 @@ import javafx.fxml.FXMLLoader;
|
|||
import javafx.scene.Parent;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.stage.Stage;
|
||||
import uploading_to_bulletin_board.java.UploadingToBulletinBoardController;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
|
@ -13,20 +12,21 @@ import java.io.IOException;
|
|||
* SetUpCompleteLoader represent the end state of subscription to bulletin board
|
||||
*/
|
||||
public class SetUpCompleteLoader {
|
||||
private static final String SET_UP_COMPLETE_PATH = "../fxml/set_up_complete.fxml";
|
||||
private static final String SET_UP_COMPLETE_FXML_PATH = "../fxml/set_up_complete.fxml";
|
||||
|
||||
private Stage currentStage;
|
||||
|
||||
public SetUpCompleteLoader (Stage primaryStage) throws IOException
|
||||
{
|
||||
currentStage = primaryStage;
|
||||
FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(SET_UP_COMPLETE_PATH));
|
||||
FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(SET_UP_COMPLETE_FXML_PATH));
|
||||
Parent root = fxmlLoader.load();
|
||||
SetUpCompleteController controller = fxmlLoader.getController();
|
||||
controller.SetStage(currentStage);
|
||||
|
||||
currentStage.setTitle("Set Up Complete");
|
||||
currentStage.setScene(new Scene(root, 560, 310));
|
||||
currentStage.show();
|
||||
|
||||
controller.SetStage(currentStage);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue