diff options
author | Jonas Smedegaard <dr@jones.dk> | 2025-04-29 16:31:32 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2025-04-29 16:31:45 +0200 |
commit | 5c5a039691d2a18d198e0ea5b13ed53103cc66ff (patch) | |
tree | 9f886c048a41c97996744f4c4094b6e04b7d81c5 /src/com.example.portfolio2/com/example/portfolio2/Controller.java | |
parent | d34ce20410e65e43e466e55172d161aad777cd76 (diff) |
move hardcoded subject module list to class Database
Diffstat (limited to 'src/com.example.portfolio2/com/example/portfolio2/Controller.java')
-rw-r--r-- | src/com.example.portfolio2/com/example/portfolio2/Controller.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com.example.portfolio2/com/example/portfolio2/Controller.java b/src/com.example.portfolio2/com/example/portfolio2/Controller.java index 11ce9b9..91236ea 100644 --- a/src/com.example.portfolio2/com/example/portfolio2/Controller.java +++ b/src/com.example.portfolio2/com/example/portfolio2/Controller.java @@ -82,15 +82,13 @@ class Controller { /// /// @param subject1 involved 1st column subject module box /// @param subject2 involved 2nd column subject module box - /// @param subjectModules list of selected subject modules void onSubjectModuleSelected( final ComboBox<String> subject1, - final ComboBox<String> subject2, - final List<String> subjectModules + final ComboBox<String> subject2 ) { // remove chosen option from opposite subject module box - for (String sub: subjectModules) { + for (String sub: store.getAllModules()) { if (sub.equals(subject1.getValue())) { subject2.getItems().remove( subject1.getValue()); |