Package app.ui.camp.infomationview
Class OverlayCampInfoDisplayView
java.lang.Object
app.ui.windows.Window
app.ui.windows.WindowOverlayClass
app.ui.camp.infomationview.OverlayCampInfoDisplayView
- Direct Known Subclasses:
OverlayCampInfoDisplayEnquiries,OverlayCampInfoDisplayEnquiriesCommittee,OverlayCampInfoDisplayEnquiriesStaff,OverlayCampInfoDisplayWithParticipantsView
OverlayCampInfoDisplayView extends WindowOverlayClass and manages the display of camp information
within an overlay, providing details such as camp name, description, dates, location, slots, and visibility.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Campprotected WidgetButtonprotected WidgetTextBoxprotected WidgetTextBoxprotected WidgetTextBoxprotected WidgetTextBoxprotected WidgetTextBoxprotected WidgetTextBoxprotected WidgetTextBoxprotected WidgetTextBoxprotected WidgetTextBoxprotected WidgetToggleFields inherited from class app.ui.windows.WindowOverlayClass
offsetX, offsetYFields inherited from class app.ui.windows.Window
backColor, buffer, overlays, printColor, switchToWindow, widgets -
Constructor Summary
ConstructorsConstructorDescriptionOverlayCampInfoDisplayView(int x, int y, int offsetY, int offsetX, String windowName, Camp camp) Constructs an OverlayCampInfoDisplayView object. -
Method Summary
Modifier and TypeMethodDescriptionvoidThe main message loop that manages interactions within the overlay.voidonExit()Performs necessary clean-up tasks upon exiting the overlay.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
-
exitButton
-
textBoxCName
-
textBoxDescription
-
textBoxDStart
-
textBoxDEnd
-
textBoxDClose
-
textBoxSchool
-
textBoxLocation
-
textBoxSlotsC
-
textBoxVis
-
textBoxSlots
-
-
Constructor Details
-
OverlayCampInfoDisplayView
public OverlayCampInfoDisplayView(int x, int y, int offsetY, int offsetX, String windowName, Camp camp) Constructs an OverlayCampInfoDisplayView object.- Parameters:
x- The x-coordinate position.y- The y-coordinate position.offsetY- The y-coordinate offset.offsetX- The x-coordinate offset.windowName- The name of the overlay window.camp- The camp app.entity containing information to be displayed.
-
-
Method Details
-
messageLoop
public void messageLoop()The main message loop that manages interactions within the overlay. Handles button presses and actions accordingly.- Overrides:
messageLoopin classWindowOverlayClass
-
onExit
public void onExit()Performs necessary clean-up tasks upon exiting the overlay.
-