Class OverlayNotification


public class OverlayNotification extends WindowOverlayClass
The OverlayNotification class represents an overlay window for displaying notifications with an OK button. It extends the WindowOverlayClass and implements the ICallBack interface.
  • Field Details

    • exitButton

      protected WidgetButton 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 of OverlayNotification.
      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:
      messageLoop in class WindowOverlayClass
    • onExit

      public void onExit()
      Performs actions upon exiting the overlay window.
      Overrides:
      onExit in class Window