From 329b6b61adde47c06c9d0eb7151637747fadff7f Mon Sep 17 00:00:00 2001 From: top19 Date: Wed, 29 Apr 2020 17:28:40 +0100 Subject: [PATCH] Integrated practice screen with menu. --- .../javafx/PracticeListController.java | 15 +- .../ac/aber/cs22120/group20/practicelist.fxml | 270 +++++++++++++----- 2 files changed, 216 insertions(+), 69 deletions(-) diff --git a/src/Welsh Vocabulary Tutor/src/main/java/uk/ac/aber/cs22120/group20/javafx/PracticeListController.java b/src/Welsh Vocabulary Tutor/src/main/java/uk/ac/aber/cs22120/group20/javafx/PracticeListController.java index f14cc6d..0f4f65c 100644 --- a/src/Welsh Vocabulary Tutor/src/main/java/uk/ac/aber/cs22120/group20/javafx/PracticeListController.java +++ b/src/Welsh Vocabulary Tutor/src/main/java/uk/ac/aber/cs22120/group20/javafx/PracticeListController.java @@ -16,6 +16,7 @@ import javafx.fxml.Initializable; import javafx.scene.control.*; import javafx.scene.image.Image; import javafx.scene.image.ImageView; +import javafx.scene.paint.Color; import javafx.stage.Stage; import uk.ac.aber.cs22120.group20.javafx.Application; import uk.ac.aber.cs22120.group20.json.DictionaryEntry; @@ -41,12 +42,14 @@ import java.util.ResourceBundle; * @see DictionaryEntry * @see Application */ -public class PracticeListController { +public class PracticeListController extends SharedCodeController{ public static Stage primaryStage = null; @FXML private ImageView alphaSort; @FXML + private ImageView langSort; + @FXML private TextField searchBox; @FXML private TableView table; @@ -69,6 +72,16 @@ public class PracticeListController { * @see DictionaryEntry */ public void initialize() { + setup(); + currentPageIcon.setImage(new Image("file:src/main/resources/assets/icons/white_icons/50px/rating-50.png")); + currentPageText.setText("Practice List"); + + practiceListIcon.setImage(new Image("file:src/main/resources/assets/icons/black_icons/50px/rating-50.png")); + practiceListTest.setFill(Color.BLACK); + + alphaSort.setImage(new Image("file:src/main/resources/assets/icons/black_icons/50px/sort-alpha-up-50.png")); + langSort.setImage(new Image("file:src/main/resources/assets/icons/black_icons/50px/sort-lang-50.png")); + // list.addAll(Application.dictionary); list.addAll(Application.practiseList); // for (DictionaryEntry entry : Application.dictionary) { diff --git a/src/Welsh Vocabulary Tutor/src/main/resources/uk/ac/aber/cs22120/group20/practicelist.fxml b/src/Welsh Vocabulary Tutor/src/main/resources/uk/ac/aber/cs22120/group20/practicelist.fxml index c7d7cdf..58d98a1 100644 --- a/src/Welsh Vocabulary Tutor/src/main/resources/uk/ac/aber/cs22120/group20/practicelist.fxml +++ b/src/Welsh Vocabulary Tutor/src/main/resources/uk/ac/aber/cs22120/group20/practicelist.fxml @@ -6,75 +6,209 @@ - - - + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -