Package org.example.tui.screens
Class MainScreen
java.lang.Object
org.example.tui.screens.MainScreen
- All Implemented Interfaces:
com.williamcallahan.tui4j.compat.bubbletea.Model
public final class MainScreen
extends Object
implements com.williamcallahan.tui4j.compat.bubbletea.Model
Hauptscreen der Arztpraxis-TUI.
Zeigt links die priorisierte Patientenliste und rechts Detailinfos zum aktuell ausgewählten Patienten (oben) sowie statische Aktionshinweise (unten).
Tastenkürzel:
↑/k– Cursor hoch↓/j– Cursor runtera– Patient anlegeng– Zufälligen Patienten hinzufügenx– Nächsten Patienten behandelnr– Ausgewählten Patienten entfernenq– Anwendung beenden
-
Constructor Summary
ConstructorsConstructorDescriptionMainScreen(AppController controller, int width, int height) MainScreen(AppController controller, int width, int height, int cursorIndex) MainScreen(AppController controller, int width, int height, int cursorIndex, Patient lastTreated) -
Method Summary
-
Constructor Details
-
MainScreen
-
MainScreen
-
MainScreen
public MainScreen(AppController controller, int width, int height, int cursorIndex, Patient lastTreated)
-
-
Method Details
-
init
public com.williamcallahan.tui4j.compat.bubbletea.Command init()- Specified by:
initin interfacecom.williamcallahan.tui4j.compat.bubbletea.Model
-
update
public com.williamcallahan.tui4j.compat.bubbletea.UpdateResult<? extends com.williamcallahan.tui4j.compat.bubbletea.Model> update(com.williamcallahan.tui4j.compat.bubbletea.Message msg) - Specified by:
updatein interfacecom.williamcallahan.tui4j.compat.bubbletea.Model
-
view
- Specified by:
viewin interfacecom.williamcallahan.tui4j.compat.bubbletea.Model
-