All Implemented Interfaces:
BasePane, Composite, Window
Direct Known Subclasses:
ActionListDialog, DirectoryDialog, FileDialog, ListSelectDialog, MessageDialog, TextInputDialog, WaitingDialog

public abstract class DialogWindow extends AbstractWindow
Thin layer on top of the AbstractWindow class that automatically sets properties and hints to the window to make it act more like a modal dialog window
  • Field Details

    • GLOBAL_DIALOG_HINTS

      private static final Set<Window.Hint> GLOBAL_DIALOG_HINTS
  • Constructor Details

    • DialogWindow

      protected DialogWindow(String title)
      Default constructor, takes a title for the dialog and runs code shared for dialogs
      Parameters:
      title - Title of the window
  • Method Details

    • showDialog

      public Object showDialog(WindowBasedTextGUI textGUI)
      Opens the dialog by showing it on the GUI and doesn't return until the dialog has been closed
      Parameters:
      textGUI - Text GUI to add the dialog to
      Returns:
      Depending on the DialogWindow implementation, by default null