Package app.ui.camp.suggestionview
Class OverlayCampInfoDisplayWithParticipantsViewSuggestion
java.lang.Object
app.ui.windows.Window
app.ui.windows.WindowOverlayClass
app.ui.camp.infomationview.OverlayCampInfoDisplayView
app.ui.camp.infomationview.OverlayCampInfoDisplayWithParticipantsView
app.ui.camp.suggestionview.OverlayCampInfoDisplayWithParticipantsViewSuggestion
public class OverlayCampInfoDisplayWithParticipantsViewSuggestion
extends OverlayCampInfoDisplayWithParticipantsView
Represents an overlay view displaying camp details with the ability to suggest modifications.
Extends the OverlayCampInfoDisplayWithParticipantsView class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Campprotected Suggestionprotected Windowprotected Studentprotected WidgetButtonFields inherited from class app.ui.camp.infomationview.OverlayCampInfoDisplayView
exitButton, textBoxCName, textBoxDClose, textBoxDEnd, textBoxDescription, textBoxDStart, textBoxLocation, textBoxSchool, textBoxSlots, textBoxSlotsC, textBoxVisFields inherited from class app.ui.windows.WindowOverlayClass
offsetX, offsetYFields inherited from class app.ui.windows.Window
backColor, buffer, overlays, printColor, switchToWindow, widgets -
Constructor Summary
ConstructorsConstructorDescriptionOverlayCampInfoDisplayWithParticipantsViewSuggestion(int x, int y, int offsetY, int offsetX, String windowName, Camp camp, Student student, Window mainWindow, Suggestion suggestion) Constructs an OverlayCampInfoDisplayWithParticipantsViewSuggestion object. -
Method Summary
Modifier and TypeMethodDescriptionvoidHandles the message loop for suggesting camp details modifications.voidonExit()Overrides the onExit method from the parent class.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
-
camp
-
student
-
mainWindow
-
submitButton
-
editSuggestion
-
-
Constructor Details
-
OverlayCampInfoDisplayWithParticipantsViewSuggestion
public OverlayCampInfoDisplayWithParticipantsViewSuggestion(int x, int y, int offsetY, int offsetX, String windowName, Camp camp, Student student, Window mainWindow, Suggestion suggestion) Constructs an OverlayCampInfoDisplayWithParticipantsViewSuggestion 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 for which suggestions are displayed.student- The student user making the suggestion.mainWindow- The main window where this overlay view is displayed.suggestion- The suggestion object containing modification details.
-
-
Method Details
-
messageLoop
public void messageLoop()Handles the message loop for suggesting camp details modifications.- Overrides:
messageLoopin classOverlayCampInfoDisplayWithParticipantsView
-
onExit
public void onExit()Overrides the onExit method from the parent class. Performs additional actions when the overlay is exited.- Overrides:
onExitin classOverlayCampInfoDisplayWithParticipantsView
-