Documented six meanings.
This commit is contained in:
parent
d904fadcad
commit
cf7351e9d3
1 changed files with 12 additions and 8 deletions
|
@ -1,10 +1,11 @@
|
||||||
package uk.ac.aber.cs221.group20.javafx;
|
|
||||||
/**
|
/**
|
||||||
* @(#) SixMeaningsController.java 0,1 2020/04/27
|
* @(#) SixMeaningsController.java 0,1 2020/04/27
|
||||||
* <p>
|
*
|
||||||
* Copyright (c) 2020 Aberystwyth University.
|
* Copyright (c) 2020 Aberystwyth University.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
package uk.ac.aber.cs221.group20.javafx;
|
||||||
|
|
||||||
|
|
||||||
import javafx.fxml.FXML;
|
import javafx.fxml.FXML;
|
||||||
import javafx.scene.control.Label;
|
import javafx.scene.control.Label;
|
||||||
|
@ -83,38 +84,41 @@ public class SixMeaningsController extends SharedCodeController {
|
||||||
// Methods. //
|
// Methods. //
|
||||||
// //////// //
|
// //////// //
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Event that runs when the user clicks the first answer from the six options.
|
||||||
|
*/
|
||||||
@FXML
|
@FXML
|
||||||
void answer1(MouseEvent event) {
|
void answer1() {
|
||||||
wordCounterpart = possibleAnswer1.getText();
|
wordCounterpart = possibleAnswer1.getText();
|
||||||
checkAnswers();
|
checkAnswers();
|
||||||
}
|
}
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
void answer2(MouseEvent event) {
|
void answer2() {
|
||||||
wordCounterpart = possibleAnswer2.getText();
|
wordCounterpart = possibleAnswer2.getText();
|
||||||
checkAnswers();
|
checkAnswers();
|
||||||
}
|
}
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
void answer3(MouseEvent event) {
|
void answer3() {
|
||||||
wordCounterpart = possibleAnswer3.getText();
|
wordCounterpart = possibleAnswer3.getText();
|
||||||
checkAnswers();
|
checkAnswers();
|
||||||
}
|
}
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
void answer4(MouseEvent event) {
|
void answer4() {
|
||||||
wordCounterpart = possibleAnswer4.getText();
|
wordCounterpart = possibleAnswer4.getText();
|
||||||
checkAnswers();
|
checkAnswers();
|
||||||
}
|
}
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
void answer5(MouseEvent event) {
|
void answer5() {
|
||||||
wordCounterpart = possibleAnswer5.getText();
|
wordCounterpart = possibleAnswer5.getText();
|
||||||
checkAnswers();
|
checkAnswers();
|
||||||
}
|
}
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
void answer6(MouseEvent event) {
|
void answer6() {
|
||||||
wordCounterpart = possibleAnswer6.getText();
|
wordCounterpart = possibleAnswer6.getText();
|
||||||
checkAnswers();
|
checkAnswers();
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue