diff options
author | Jonas Smedegaard <dr@jones.dk> | 2025-04-29 23:14:36 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2025-04-29 23:17:24 +0200 |
commit | 97d75aa78e658f9fe398827fb7cba7aa5bc31a6f (patch) | |
tree | 749b703269d4b8b589afdf5e181e96b04c6d3660 /src/com.example.portfolio2/com/example/portfolio2/UI.java | |
parent | 6b6b45aca8f1a7770f2547a46bc1855bfb4ca9a7 (diff) |
add track UI sections in new model class UI via subclass GUI (not as strings in class Window)
Diffstat (limited to 'src/com.example.portfolio2/com/example/portfolio2/UI.java')
-rw-r--r-- | src/com.example.portfolio2/com/example/portfolio2/UI.java | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/com.example.portfolio2/com/example/portfolio2/UI.java b/src/com.example.portfolio2/com/example/portfolio2/UI.java new file mode 100644 index 0000000..6f2c1ec --- /dev/null +++ b/src/com.example.portfolio2/com/example/portfolio2/UI.java @@ -0,0 +1,38 @@ +// SPDX-FileCopyrightText: 2025 Jonas Smedegaard <dr@jones.dk> +// SPDX-License-Identifier: GPL-3.0-or-later + +package com.example.portfolio2; + +/// Bachelorizer - reference user interface model +public abstract class UI { + + /// Default constructor + // (declared explicitly only to silence javadoc) + public UI() { } + + /// structural sections of user interface + public enum Section { + + /// main programme + PROGRAM("Program"), + + /// first subject module + SUBJECT1("Subject 1"), + + /// second subject module + SUBJECT2("Subject 2"), + + /// elective courses + ELECTIVE("Elective"); + + /// text label + public final String label; + + /// instantiation + /// + /// @param label text label + private Section(String label) { + this.label = label; + } + } +} |