Package app.ui.overlayactions
Class OverlayCampListViewStaffCampActions
java.lang.Object
app.ui.windows.Window
app.ui.windows.WindowOverlayClass
app.ui.overlayactions.OverlayCampListViewStaffCampActions
The
OverlayCampListViewStaffCampActions class represents an overlay window for displaying camp-related actions
available to a staff member. It extends the WindowOverlayClass and implements the ICallBack interface.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CampThe camp associated with the actions.static final intThe total number of options/actions available.protected StaffThe staff member for whom the actions are presented.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
ConstructorsConstructorDescriptionOverlayCampListViewStaffCampActions(int x, int offsetY, int offsetX, String windowName, Window callbackWindow, Staff staff, Camp camp) Constructs an instance ofOverlayCampListViewStaffCampActions. -
Method Summary
Modifier and TypeMethodDescriptionvoidHandles the message loop for the overlay window.voidonExit()Performs actions upon exiting the overlay window.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
-
staff
The staff member for whom the actions are presented. -
camp
The camp associated with the actions. -
optionCount
public static final int optionCountThe total number of options/actions available.- See Also:
-
-
Constructor Details
-
OverlayCampListViewStaffCampActions
public OverlayCampListViewStaffCampActions(int x, int offsetY, int offsetX, String windowName, Window callbackWindow, Staff staff, Camp camp) Constructs an instance ofOverlayCampListViewStaffCampActions.- Parameters:
x- The x-coordinate of the window.offsetY- The y-coordinate offset of the window.offsetX- The x-coordinate offset of the window.windowName- The name of the window.callbackWindow- The callback window to notify upon completion.staff- The staff member for whom the actions are presented.camp- The camp associated with the actions.
-
-
Method Details
-
messageLoop
public void messageLoop()Handles the message loop for the overlay window.- Overrides:
messageLoopin classWindowOverlayClass
-
onExit
public void onExit()Performs actions upon exiting the overlay window.
-