Package org.example.tui.screens
Class TreatConfirmScreen
java.lang.Object
org.example.tui.screens.TreatConfirmScreen
- All Implemented Interfaces:
com.williamcallahan.tui4j.compat.bubbletea.Model
public final class TreatConfirmScreen
extends Object
implements com.williamcallahan.tui4j.compat.bubbletea.Model
Bestätigungsscreen nach der Behandlung eines Patienten.
Links: verbleibende Warteschlange, rechts: Infos zum behandelten Patienten.
Jede Tasteneingabe kehrt zum MainScreen zurück.
-
Constructor Summary
ConstructorsConstructorDescriptionTreatConfirmScreen(Patient patient, AppController controller, int width, int height) -
Method Summary
Modifier and TypeMethodDescriptionGibt den behandelten Patienten zurück.com.williamcallahan.tui4j.compat.bubbletea.Commandinit()com.williamcallahan.tui4j.compat.bubbletea.UpdateResult<? extends com.williamcallahan.tui4j.compat.bubbletea.Model> update(com.williamcallahan.tui4j.compat.bubbletea.Message msg) view()
-
Constructor Details
-
TreatConfirmScreen
-
-
Method Details
-
getPatient
Gibt den behandelten Patienten zurück. Wird vomAppRouterbenötigt, um diesen Screen bei Fenstergrößenänderungen neu zu erstellen.- Returns:
- Der behandelte Patient (kann
nullsein).
-
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
-