aboutsummaryrefslogtreecommitdiff
path: root/src/com.example.portfolio2/com/example/portfolio2/GUI.java
blob: 8135ecbde556b4f85f09dad52c7ee86193c47b31 (plain)
  1. // SPDX-FileCopyrightText: 2025 Jonas Smedegaard <dr@jones.dk>
  2. // SPDX-License-Identifier: GPL-3.0-or-later
  3. package com.example.portfolio2;
  4. import java.util.ArrayList;
  5. /// Bachelorizer - graphical user interface model
  6. public class GUI extends UI {
  7. /// Default constructor
  8. // (declared explicitly only to silence javadoc)
  9. public GUI() { }
  10. /// structural sections of user interface
  11. public enum Section {
  12. /// main programme
  13. PROGRAM("Program", 0),
  14. /// first subject module
  15. SUBJECT1("Subject 1", 1),
  16. /// second subject module
  17. SUBJECT2("Subject 2", 2),
  18. /// elective courses
  19. ELECTIVE("Elective", 3);
  20. /// text label
  21. public final String label;
  22. /// column position
  23. public final int column;
  24. /// instantiation
  25. ///
  26. /// @param label text label
  27. /// @param column column position
  28. private Section(String label, int column) {
  29. this.label = label;
  30. this.column = column;
  31. }
  32. }
  33. /* public static UI.Section asUISection () {
  34. return UI.Section.valueOf(this);
  35. }
  36. */
  37. }