Class OverlayTextInputActionToggles


public class OverlayTextInputActionToggles extends OverlayTextInputAction
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 Details

    • toggleGenAttendee

      protected WidgetToggle toggleGenAttendee
      Toggle for generating attendee.
    • toggleGenCommittee

      protected WidgetToggle 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:
      onExit in class OverlayTextInputAction