Package org.example.tui.screens
Class AddPatientScreen
java.lang.Object
org.example.tui.screens.AddPatientScreen
- All Implemented Interfaces:
com.williamcallahan.tui4j.compat.bubbletea.Model
public final class AddPatientScreen
extends Object
implements com.williamcallahan.tui4j.compat.bubbletea.Model
Formular-Screen zum Anlegen eines neuen Patienten.
Felder (Tab-Reihenfolge):
- Name – Freitext
- Alter – Zahl (1–120)
- Schweregrad – Cycle-Selektor (MINOR … FATAL)
- Geschlecht – Freitext (m / w / d)
- Krankheit – Freitext
- Termin – Ja / Nein Toggle
- Versicherung – Privat / Gesetzlich Toggle
Abschließend erscheint der Speichern-Button (Fokus 7).
Tastenkürzel: Esc → zurück zum Hauptscreen,
Tab/Shift+Tab/↑/↓ → Feldnavigation,
1–5 → Schweregrad direkt setzen.
-
Constructor Summary
ConstructorsConstructorDescriptionAddPatientScreen(AppController controller, int width, int height) Erstellt einen neuen AddPatientScreen. -
Method Summary
-
Constructor Details
-
AddPatientScreen
Erstellt einen neuen AddPatientScreen.- Parameters:
controller- Zugriff auf die Geschäftslogik.width- Aktuelle Terminalbreite (für Zentrierung).height- Aktuelle Terminalhöhe (für vertikale Zentrierung).
-
-
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
-