Class AppRouter

java.lang.Object
org.example.tui.AppRouter
All Implemented Interfaces:
com.williamcallahan.tui4j.compat.bubbletea.Model

public final class AppRouter extends Object implements com.williamcallahan.tui4j.compat.bubbletea.Model
Screen-Router der Arztpraxis-TUI nach dem Bubble-Tea-Muster.

Verwaltet den aktuell aktiven Screen und leitet Messages entweder an den aktiven Screen weiter oder behandelt sie selbst, wenn es sich um Routing-Messages (SwitchScreenMessage, PatientTreatedMessage) oder Fenstergrößen-Events handelt.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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

  • 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