Added button which takes you back
parent
94adef22f3
commit
5a78f723e5
|
@ -89,6 +89,7 @@ class ChainBuilder {
|
|||
VoteHaveBeenCastLoader voteHaveBeenCastLoader = new VoteHaveBeenCastLoader(primaryStage, configuration);
|
||||
TwoWayNode voteHaveBeenCastController = voteHaveBeenCastLoader.GetVoteHaveBeenCast();
|
||||
voteHaveBeenCastController.SetVotersBallot(votersBallot);
|
||||
voteHaveBeenCastController.SetPrevious(welcomeSplashController);
|
||||
castOrAuditController.SetNext(voteHaveBeenCastController);
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package meerkat.voting.gui.panels.vote_have_been_cast;
|
||||
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.scene.input.MouseEvent;
|
||||
import meerkat.voting.gui.managment.TwoWayNode;
|
||||
|
||||
/**
|
||||
|
@ -8,6 +10,14 @@ import meerkat.voting.gui.managment.TwoWayNode;
|
|||
*/
|
||||
public class VoteHaveBeenCastController extends TwoWayNode {
|
||||
|
||||
@FXML
|
||||
private void backToWelcomeSplash(MouseEvent mousePress){
|
||||
this.currentStage.close();
|
||||
this.currentStage.setScene(this.previous.GetCurrentScene());
|
||||
this.previous.UpdateNode();
|
||||
this.currentStage.show();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void UpdateNode() {
|
||||
// This panel doesn't have any questions representations that why there is nothing ti show here
|
||||
|
|
|
@ -237,6 +237,11 @@
|
|||
</GridPane>
|
||||
</children>
|
||||
</GridPane>
|
||||
<BorderPane prefHeight="200.0" prefWidth="200.0" GridPane.rowIndex="2">
|
||||
<right>
|
||||
<Button mnemonicParsing="false" onMousePressed="#backToWelcomeSplash" text="Back To Start" BorderPane.alignment="CENTER" />
|
||||
</right>
|
||||
</BorderPane>
|
||||
</children>
|
||||
<columnConstraints>
|
||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
||||
|
|
Loading…
Reference in New Issue