Package app.ui.overlayactions
Class OverlayNotification
java.lang.Object
app.ui.windows.Window
app.ui.windows.WindowOverlayClass
app.ui.overlayactions.OverlayNotification
The
OverlayNotification class represents an overlay window for displaying notifications with an OK button.
It extends the WindowOverlayClass and implements the ICallBack interface.-
Field Summary
FieldsFields inherited from class app.ui.windows.WindowOverlayClass
offsetX, offsetYFields inherited from class app.ui.windows.Window
backColor, buffer, overlays, printColor, switchToWindow, widgets -
Constructor Summary
ConstructorsConstructorDescriptionOverlayNotification(int x, int offsetY, int offsetX, String windowName, String notification, Window callbackWindow) Constructs an instance ofOverlayNotification. -
Method Summary
Modifier and TypeMethodDescriptionvoidHandles the message loop for the overlay window.voidonExit()Performs actions upon exiting the overlay window.Methods inherited from class app.ui.windows.WindowOverlayClass
clearArea, clearOuterArea, draw, getDestroy, setDestroyMethods inherited from class app.ui.windows.Window
addOverlay, addWidget, addWidgetAfter, clearArea, getLenX, getLenY, getSwitchToWindow, getWidgetIndex, getX, getY, keyStroke, keyStrokeHelper, messageLoopHelper, removeWidget, selectNext, selectPrev, setClear, setPointer, setY, switchFrom
-
Field Details
-
exitButton
The button to exit the notification.
-
-
Constructor Details
-
OverlayNotification
public OverlayNotification(int x, int offsetY, int offsetX, String windowName, String notification, Window callbackWindow) Constructs an instance ofOverlayNotification.- Parameters:
x- The x-coordinate of the window.offsetY- The y-coordinate offset of the window.offsetX- The x-coordinate offset of the window.windowName- The name of the window.notification- The notification message to be displayed.callbackWindow- The callback window to notify upon completion.
-
-
Method Details
-
messageLoop
public void messageLoop()Handles the message loop for the overlay window.- Overrides:
messageLoopin classWindowOverlayClass
-
onExit
public void onExit()Performs actions upon exiting the overlay window.
-