Class ActionListDialog

All Implemented Interfaces:
BasePane, Composite, Window

public class ActionListDialog extends DialogWindow
Dialog containing a multiple item action list box
  • Constructor Details

    • ActionListDialog

      ActionListDialog(String title, String description, TerminalSize actionListPreferredSize, boolean canCancel, boolean closeAutomatically, List<Runnable> actions)
  • Method Details

    • onCancel

      private void onCancel()
    • showDialog

      public static void showDialog(WindowBasedTextGUI textGUI, String title, String description, Runnable... items)
      Helper method for immediately displaying a ActionListDialog, the method will return when the dialog is closed
      Parameters:
      textGUI - Text GUI the dialog should be added to
      title - Title of the dialog
      description - Description of the dialog
      items - Items in the ActionListBox, the label will be taken from each Runnable by calling toString() on each one