Package app.ui.camp.modificationview
Class OverlayCampStaffEditView
java.lang.Object
app.ui.windows.Window
app.ui.windows.WindowOverlayClass
app.ui.camp.infomationview.OverlayCampInfoDisplayView
app.ui.camp.infomationview.OverlayCampInfoDisplayWithParticipantsView
app.ui.camp.modificationview.OverlayCampStaffEditView
Represents an overlay view for staff to edit camp details.
Extends the OverlayCampInfoDisplayWithParticipantsView class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Campprotected Windowprotected Staffprotected 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
ConstructorsConstructorDescriptionOverlayCampStaffEditView(int x, int y, int offsetY, int offsetX, String windowName, Camp camp, Staff staff, Window mainWindow) Constructs an OverlayCampStaffEditView object. -
Method Summary
Modifier and TypeMethodDescriptionvoidHandles the message loop for editing camp details.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
-
staff
-
mainWindow
-
submitButton
-
-
Constructor Details
-
OverlayCampStaffEditView
public OverlayCampStaffEditView(int x, int y, int offsetY, int offsetX, String windowName, Camp camp, Staff staff, Window mainWindow) Constructs an OverlayCampStaffEditView 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 to be edited.staff- The staff user editing the camp.mainWindow- The main window where this overlay view is displayed.
-
-
Method Details
-
messageLoop
public void messageLoop()Handles the message loop for editing camp details.- 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
-