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):

  1. Name – Freitext
  2. Alter – Zahl (1–120)
  3. Schweregrad – Cycle-Selektor (MINOR … FATAL)
  4. Geschlecht – Freitext (m / w / d)
  5. Krankheit – Freitext
  6. Termin – Ja / Nein Toggle
  7. Versicherung – Privat / Gesetzlich Toggle

Abschließend erscheint der Speichern-Button (Fokus 7).

Tastenkürzel: Esc → zurück zum Hauptscreen, Tab/Shift+Tab// → Feldnavigation, 15 → Schweregrad direkt setzen.

  • Constructor Summary

    Constructors
    Constructor
    Description
    AddPatientScreen(AppController controller, int width, int height)
    Erstellt einen neuen AddPatientScreen.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.williamcallahan.tui4j.compat.bubbletea.Command
     
    com.williamcallahan.tui4j.compat.bubbletea.UpdateResult<? extends com.williamcallahan.tui4j.compat.bubbletea.Model>
    update(com.williamcallahan.tui4j.compat.bubbletea.Message msg)
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AddPatientScreen

      public AddPatientScreen(AppController controller, int width, int height)
      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:
      init in interface com.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:
      update in interface com.williamcallahan.tui4j.compat.bubbletea.Model
    • view

      public String view()
      Specified by:
      view in interface com.williamcallahan.tui4j.compat.bubbletea.Model