Class OverlayCampSuggestionStaffView

java.lang.Object
app.ui.windows.Window
app.ui.windows.WindowOverlayClass
app.ui.camp.suggestionview.OverlayCampSuggestionStaffView
All Implemented Interfaces:
ICallBack

public class OverlayCampSuggestionStaffView extends WindowOverlayClass implements ICallBack
Represents an overlay view displaying camp suggestions for staff members. Extends the WindowOverlayClass and implements the ICallBack interface.
  • Field Details

  • Constructor Details

    • OverlayCampSuggestionStaffView

      public OverlayCampSuggestionStaffView(int x, int y, int offsetY, int offsetX, String windowName, Camp camp, Staff staff, Window mainWindow)
      Constructs an OverlayCampSuggestionStaffView object.
      Parameters:
      x - The x-coordinate position of the view.
      y - The y-coordinate position of the view.
      offsetY - The offset value for the y-coordinate.
      offsetX - The offset value for the x-coordinate.
      windowName - The name of the window.
      camp - The camp associated with the suggestions.
      staff - The staff member interacting with the suggestions.
      mainWindow - The main window where this overlay view is displayed.
  • Method Details

    • updateSuggestionList

      public void updateSuggestionList()
      Updates the list of suggestions displayed in the view.
    • messageLoop

      public void messageLoop()
      Handles the message loop for interactions with suggestions and buttons in the view.
      Overrides:
      messageLoop in class WindowOverlayClass
    • onExit

      public void onExit()
      Overrides the onExit method from the parent class. Performs additional actions when the overlay is exited.
      Overrides:
      onExit in class Window
    • onWindowFinished

      public void onWindowFinished(int chose, String choseString)
      Handles actions triggered upon completion of certain operations in the overlay view.
      Specified by:
      onWindowFinished in interface ICallBack
      Parameters:
      chose - The chosen action identifier.
      choseString - The string representation of the chosen action.