Package app.ui.overlayactions
Class OverlayTextInputActionToggles
java.lang.Object
app.ui.windows.Window
app.ui.windows.WindowOverlayClass
app.ui.overlayactions.OverlayTextInputAction
app.ui.overlayactions.OverlayTextInputActionToggles
Class OverlayTextInputActionToggles provides an overlay text input with two toggle options.
This class extends OverlayTextInputAction and adds the functionality of two toggle switches,
specifically for 'Attendee' and 'Committee'. It is designed to be used within a GUI environment
where such toggles are necessary.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected WidgetToggleToggle for generating attendee.protected WidgetToggleToggle for generating committee.Fields inherited from class app.ui.overlayactions.OverlayTextInputAction
abord, abordButton, exitButton, textInputFields inherited from class app.ui.windows.WindowOverlayClass
offsetX, offsetYFields inherited from class app.ui.windows.Window
backColor, buffer, overlays, printColor, switchToWindow, widgets -
Constructor Summary
ConstructorsConstructorDescriptionOverlayTextInputActionToggles(int x, int offsetY, int offsetX, String windowName, String prompt, Window callbackWindow, int returnCode) Constructs a new OverlayTextInputActionToggles instance with specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoidonExit()Performs actions upon exiting the overlay window.Methods inherited from class app.ui.overlayactions.OverlayTextInputAction
messageLoopMethods 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
-
toggleGenAttendee
Toggle for generating attendee. -
toggleGenCommittee
Toggle for generating committee.
-
-
Constructor Details
-
OverlayTextInputActionToggles
public OverlayTextInputActionToggles(int x, int offsetY, int offsetX, String windowName, String prompt, Window callbackWindow, int returnCode) Constructs a new OverlayTextInputActionToggles instance with specified parameters.- Parameters:
x- The x-coordinate of the overlay.offsetY- The y-offset of the overlay.offsetX- The x-offset of the overlay.windowName- The name of the window.prompt- The prompt text to display.callbackWindow- The window that will be called back on action completion.returnCode- The initial return code.
-
-
Method Details
-
onExit
public void onExit()Performs actions upon exiting the overlay window. This method updates the return code based on the state of the toggle buttons and invokes the callback method on the callbackWindow if it implements ICallBack.- Overrides:
onExitin classOverlayTextInputAction
-