Class OverlayChooseBox


public class OverlayChooseBox extends WindowOverlayClass
The OverlayChooseBox class represents an overlay window for presenting a list of choices to the user. It extends the WindowOverlayClass and implements the ICallBack interface.
  • Constructor Details

    • OverlayChooseBox

      public OverlayChooseBox(int x, int offsetY, int offsetX, String windowName, List<String> options, Window callbackWindow)
      Constructs an instance of OverlayChooseBox.
      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.
      options - The list of choices to be presented.
      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