diff options
Diffstat (limited to 'src/com.example.portfolio2/com/example/portfolio2/GUI.java')
-rw-r--r-- | src/com.example.portfolio2/com/example/portfolio2/GUI.java | 37 |
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); + } +*/ } |