Resolved the issue with the encoding
parent
c410fc6693
commit
272e40647e
|
@ -78,7 +78,7 @@ class ChainBuilder {
|
|||
* all other two way nodes initialized
|
||||
*/
|
||||
|
||||
primaryStage.setScene(welcomeSplashController.GetNode());
|
||||
primaryStage.setScene(welcomeSplashController.GetCurrentScene());
|
||||
|
||||
Map<String, TwoWayNode> nameToTwoWayNodeMap = new HashMap<>();
|
||||
nameToTwoWayNodeMap.put("welcomeSplashController", welcomeSplashController);
|
||||
|
|
|
@ -12,16 +12,16 @@ public class BallotSummaryController extends TwoWayNode {
|
|||
@FXML
|
||||
private void GetToSelectByPicture(MouseEvent mousePressed){
|
||||
this.currentStage.close();
|
||||
this.next.UpdateNode();
|
||||
this.currentStage.setScene(this.next.GetCurrentScene());
|
||||
this.previous.UpdateNode();
|
||||
this.currentStage.setScene(this.previous.GetCurrentScene());
|
||||
this.currentStage.show();
|
||||
}
|
||||
|
||||
@FXML
|
||||
private void GetToCastOrAudit(MouseEvent mousePressed){
|
||||
this.currentStage.close();
|
||||
this.previous.UpdateNode();
|
||||
this.currentStage.setScene(this.previous.GetCurrentScene());
|
||||
this.next.UpdateNode();
|
||||
this.currentStage.setScene(this.next.GetCurrentScene());
|
||||
this.currentStage.show();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,41 +1,28 @@
|
|||
package meerkat.voting.gui.select_candidate_by_picture;
|
||||
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.geometry.Insets;
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.input.MouseEvent;
|
||||
import javafx.scene.layout.Background;
|
||||
import javafx.scene.layout.BackgroundFill;
|
||||
import javafx.scene.layout.BorderPane;
|
||||
import javafx.scene.layout.CornerRadii;
|
||||
import javafx.scene.paint.Color;
|
||||
import meerkat.protobuf.Voting;
|
||||
import meerkat.voting.gui.TwoWayNode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by Vladimir Eliezer Tokarev on 8/27/2016.
|
||||
* SelectCandidateNameController handle the behavior of select by picture screen
|
||||
*/
|
||||
public class SelectCandidateByPictureController extends TwoWayNode {
|
||||
private List<Voting.BallotQuestion> questions;
|
||||
private List<Voting.BallotAnswer> answers;
|
||||
|
||||
|
||||
@FXML
|
||||
private void GetToSelectByName(MouseEvent mousePressed){
|
||||
this.currentStage.close();
|
||||
this.next.UpdateNode();
|
||||
this.currentStage.setScene(this.next.GetCurrentScene());
|
||||
this.previous.UpdateNode();
|
||||
this.currentStage.setScene(this.previous.GetCurrentScene());
|
||||
this.currentStage.show();
|
||||
}
|
||||
|
||||
@FXML
|
||||
private void GetToBallotSummary(MouseEvent mousePressed){
|
||||
this.currentStage.close();
|
||||
this.previous.UpdateNode();
|
||||
this.currentStage.setScene(this.previous.GetCurrentScene());
|
||||
this.next.UpdateNode();
|
||||
this.currentStage.setScene(this.next.GetCurrentScene());
|
||||
this.currentStage.show();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
package meerkat.voting.gui.select_candidate_name;
|
||||
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.input.MouseEvent;
|
||||
import meerkat.voting.gui.TwoWayNode;
|
||||
|
||||
|
@ -13,16 +12,16 @@ public class SelectCandidateNameController extends TwoWayNode {
|
|||
@FXML
|
||||
private void GetToSelectChannel(MouseEvent mousePressed){
|
||||
this.currentStage.close();
|
||||
this.next.UpdateNode();
|
||||
this.currentStage.setScene(this.next.GetCurrentScene());
|
||||
this.previous.UpdateNode();
|
||||
this.currentStage.setScene(this.previous.GetCurrentScene());
|
||||
this.currentStage.show();
|
||||
}
|
||||
|
||||
@FXML
|
||||
private void SelectCandidateByName(MouseEvent mousePressed) {
|
||||
this.currentStage.close();
|
||||
this.previous.UpdateNode();
|
||||
this.currentStage.setScene(this.previous.GetCurrentScene());
|
||||
this.next.UpdateNode();
|
||||
this.currentStage.setScene(this.next.GetCurrentScene());
|
||||
this.currentStage.show();
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ public class SelectCandidateNameLoader {
|
|||
SelectCandidateNameController controller = fxmlLoader.getController();
|
||||
|
||||
// set the controller to be functional TwoWayNode
|
||||
controller.SetParent(selectCandidateName);
|
||||
controller.SetCurrentScene(selectCandidateName);
|
||||
controller.SetStage(currentStage);
|
||||
|
||||
// set the controller to have the configuration file
|
||||
|
|
|
@ -146,7 +146,7 @@
|
|||
<RowConstraints maxHeight="76.0" minHeight="10.0" prefHeight="32.0" vgrow="SOMETIMES" />
|
||||
</rowConstraints>
|
||||
<children>
|
||||
<BorderPane fx:id="picture_0" prefHeight="200.0" prefWidth="200.0" onMousePressed="#submitTheSelection">
|
||||
<BorderPane fx:id="picture_0" prefHeight="200.0" prefWidth="200.0" >
|
||||
<center>
|
||||
<ImageView BorderPane.alignment="CENTER">
|
||||
<image>
|
||||
|
@ -155,7 +155,7 @@
|
|||
</ImageView>
|
||||
</center>
|
||||
</BorderPane>
|
||||
<BorderPane fx:id="picture_1" prefHeight="200.0" prefWidth="200.0" GridPane.columnIndex="1" onMousePressed="#submitTheSelection">
|
||||
<BorderPane fx:id="picture_1" prefHeight="200.0" prefWidth="200.0" GridPane.columnIndex="1" >
|
||||
<center>
|
||||
<ImageView BorderPane.alignment="CENTER">
|
||||
<image>
|
||||
|
@ -164,7 +164,7 @@
|
|||
</ImageView>
|
||||
</center>
|
||||
</BorderPane>
|
||||
<BorderPane fx:id="picture_2" prefHeight="200.0" prefWidth="200.0" GridPane.columnIndex="2" onMousePressed="#submitTheSelection">
|
||||
<BorderPane fx:id="picture_2" prefHeight="200.0" prefWidth="200.0" GridPane.columnIndex="2" >
|
||||
<center>
|
||||
<ImageView BorderPane.alignment="CENTER">
|
||||
<image>
|
||||
|
|
Loading…
Reference in New Issue