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 runter
  • a – Patient anlegen
  • g – Zufälligen Patienten hinzufügen
  • x – Nächsten Patienten behandeln
  • r – Ausgewählten Patienten entfernen
  • q – Anwendung beenden
  • Constructor Details

    • MainScreen

      public MainScreen(AppController controller, int width, int height)
    • MainScreen

      public MainScreen(AppController controller, int width, int height, int cursorIndex)
    • 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:
      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