diff options
author | Yuuta Liang <yuutaw@student.cs.ubc.ca> | 2023-11-28 18:19:39 -0800 |
---|---|---|
committer | Yuuta Liang <yuutaw@student.cs.ubc.ca> | 2023-11-28 18:19:39 -0800 |
commit | 1073af21305360bd33903c533cdac57e9f936294 (patch) | |
tree | 2c2d9c343ffe2577286fb53e016f06f6cdc53cbf /src/main/ui/UIHandler.java | |
parent | e13adbb9a9146dd5ece890449e3cad958a502f86 (diff) | |
download | jca-1073af21305360bd33903c533cdac57e9f936294.tar jca-1073af21305360bd33903c533cdac57e9f936294.tar.gz jca-1073af21305360bd33903c533cdac57e9f936294.tar.bz2 jca-1073af21305360bd33903c533cdac57e9f936294.zip |
Move TUI and GUI into separate packages
Signed-off-by: Yuuta Liang <yuutaw@student.cs.ubc.ca>
Diffstat (limited to 'src/main/ui/UIHandler.java')
-rw-r--r-- | src/main/ui/UIHandler.java | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/main/ui/UIHandler.java b/src/main/ui/UIHandler.java deleted file mode 100644 index f451542..0000000 --- a/src/main/ui/UIHandler.java +++ /dev/null @@ -1,45 +0,0 @@ -package ui; - -/** - * Represents a screen - */ -public interface UIHandler { - /** - * EFFECTS: Called when the screen is switched to. - */ - default void enter(Object... args) { - - } - - /** - * EFFECTS: Show objects. command() will not be called. - */ - void show(); - - /** - * EFFECTS: Commit changes and exit. command() will not be called. - */ - default void commit() { - } - - /** - * EFFECTS: Discard changes and exit. command() will not be called. Returns the next screen. - */ - Screen exit(); - - /** - * EFFECTS: Run help. command() will not be called. - */ - void help(); - - /** - * EFFECTS: Any commands rather than commit / exit / help. - * REQUIRES: args != null && args.length >= 1 - */ - void command(String... args); - - /** - * EFFECTS: Return the current PS1 prompt. - */ - String getPS1(); -} |