Class ActionListDialog

    • Constructor Detail

      • ActionListDialog

        ActionListDialog​(java.lang.String title,
                         java.lang.String description,
                         TerminalSize actionListPreferredSize,
                         boolean canCancel,
                         boolean closeAutomatically,
                         java.util.List<java.lang.Runnable> actions)
    • Method Detail

      • onCancel

        private void onCancel()
      • showDialog

        public static void showDialog​(WindowBasedTextGUI textGUI,
                                      java.lang.String title,
                                      java.lang.String description,
                                      java.lang.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