Package app.ui.camp.suggestionview
Class OverlayCampSuggestionStaffView
java.lang.Object
app.ui.windows.Window
app.ui.windows.WindowOverlayClass
app.ui.camp.suggestionview.OverlayCampSuggestionStaffView
- All Implemented Interfaces:
ICallBack
Represents an overlay view displaying camp suggestions for staff members.
Extends the WindowOverlayClass and implements the ICallBack interface.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected WidgetPageSelectionprotected WidgetButtonprotected Windowprotected OverlayCampSuggestionViewprotected Suggestionprotected ArrayList<Suggestion> Fields inherited from class app.ui.windows.WindowOverlayClass
offsetX, offsetYFields inherited from class app.ui.windows.Window
backColor, buffer, overlays, printColor, switchToWindow, widgets -
Constructor Summary
ConstructorsConstructorDescriptionOverlayCampSuggestionStaffView(int x, int y, int offsetY, int offsetX, String windowName, Camp camp, Staff staff, Window mainWindow) Constructs an OverlayCampSuggestionStaffView object. -
Method Summary
Modifier and TypeMethodDescriptionvoidHandles the message loop for interactions with suggestions and buttons in the view.voidonExit()Overrides the onExit method from the parent class.voidonWindowFinished(int chose, String choseString) Handles actions triggered upon completion of certain operations in the overlay view.voidUpdates the list of suggestions displayed in the view.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
-
allSuggestions
-
exitButton
-
mainWindow
-
suggestionArrayList
-
selectedSuggestion
-
overlayCampSuggestionViewToBeAdded
-
-
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:
messageLoopin classWindowOverlayClass
-
onExit
public void onExit()Overrides the onExit method from the parent class. Performs additional actions when the overlay is exited. -
onWindowFinished
Handles actions triggered upon completion of certain operations in the overlay view.- Specified by:
onWindowFinishedin interfaceICallBack- Parameters:
chose- The chosen action identifier.choseString- The string representation of the chosen action.
-