summaryrefslogtreecommitdiff
path: root/src/com.example.portfolio2/com/example/portfolio2/GUI.java
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2025-04-30 12:27:00 +0200
committerJonas Smedegaard <dr@jones.dk>2025-04-30 12:43:05 +0200
commit0480c720e7e94ac0fb6111aaeea580bb9ea1b6de (patch)
tree8695bce24038a19f06ca943318dc2a759b81f62e /src/com.example.portfolio2/com/example/portfolio2/GUI.java
parent048646123f79b2bfa2eaf0fdef5ffa4822d37838 (diff)
tie structural section to visual column in model class GUI
Diffstat (limited to 'src/com.example.portfolio2/com/example/portfolio2/GUI.java')
-rw-r--r--src/com.example.portfolio2/com/example/portfolio2/GUI.java37
1 files changed, 35 insertions, 2 deletions
diff --git a/src/com.example.portfolio2/com/example/portfolio2/GUI.java b/src/com.example.portfolio2/com/example/portfolio2/GUI.java
index e1f8fb3..8135ecb 100644
--- a/src/com.example.portfolio2/com/example/portfolio2/GUI.java
+++ b/src/com.example.portfolio2/com/example/portfolio2/GUI.java
@@ -12,6 +12,39 @@ public class GUI extends UI {
// (declared explicitly only to silence javadoc)
public GUI() { }
- // TODO: extend with sections specific to graphical interface,
- // e.g. widgets like statusbar or menu.
+ /// structural sections of user interface
+ public enum Section {
+
+ /// main programme
+ PROGRAM("Program", 0),
+
+ /// first subject module
+ SUBJECT1("Subject 1", 1),
+
+ /// second subject module
+ SUBJECT2("Subject 2", 2),
+
+ /// elective courses
+ ELECTIVE("Elective", 3);
+
+ /// text label
+ public final String label;
+
+ /// column position
+ public final int column;
+
+ /// instantiation
+ ///
+ /// @param label text label
+ /// @param column column position
+ private Section(String label, int column) {
+ this.label = label;
+ this.column = column;
+ }
+ }
+
+/* public static UI.Section asUISection () {
+ return UI.Section.valueOf(this);
+ }
+*/
}