Class MenuListDialog

  • All Implemented Interfaces:
    com.googlecode.lanterna.gui2.BasePane, com.googlecode.lanterna.gui2.Composite, com.googlecode.lanterna.gui2.Window

    public class MenuListDialog
    extends com.googlecode.lanterna.gui2.dialogs.DialogWindow
    Dialog containing a multiple item action list box
    Author:
    Martin, FracPete (fracpete at waikato dot ac dot nz)
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.googlecode.lanterna.gui2.AbstractBasePane

        com.googlecode.lanterna.gui2.AbstractBasePane.ContentHolder
      • Nested classes/interfaces inherited from interface com.googlecode.lanterna.gui2.Window

        com.googlecode.lanterna.gui2.Window.Hint
    • Field Summary

      • Fields inherited from class com.googlecode.lanterna.gui2.AbstractBasePane

        contentHolder, interactableLookupMap
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void showDialog​(com.googlecode.lanterna.gui2.WindowBasedTextGUI textGUI, String title, String description, Runnable... items)
      Helper method for immediately displaying a MenuListDialog, the method will return when the dialog is closed
      • Methods inherited from class com.googlecode.lanterna.gui2.dialogs.DialogWindow

        showDialog
      • Methods inherited from class com.googlecode.lanterna.gui2.AbstractWindow

        addWindowListener, close, draw, fromGlobal, getDecoratedSize, getHints, getPosition, getPostRenderer, getPreferredSize, getSize, getTextGUI, getTitle, handleInput, isVisible, removeWindowListener, setCloseWindowWithEscape, setContentOffset, setDecoratedSize, setHints, setPosition, setSize, setTextGUI, setTitle, setVisible, setWindowPostRenderer, toGlobal, waitUntilClosed
      • Methods inherited from class com.googlecode.lanterna.gui2.AbstractBasePane

        addBasePaneListener, getBasePaneListeners, getComponent, getCursorPosition, getFocusedInteractable, getTheme, invalidate, isInvalid, removeBasePaneListener, setComponent, setEnableDirectionBasedMovements, setFocusedInteractable, setFocusedInteractable, setStrictFocusChange, setTheme
      • Methods inherited from interface com.googlecode.lanterna.gui2.BasePane

        getTheme, setEnableDirectionBasedMovements, setStrictFocusChange, setTheme
      • Methods inherited from interface com.googlecode.lanterna.gui2.Window

        getComponent, getCursorPosition, getFocusedInteractable, invalidate, isInvalid, setComponent, setFocusedInteractable
    • Method Detail

      • showDialog

        public static void showDialog​(com.googlecode.lanterna.gui2.WindowBasedTextGUI textGUI,
                                      String title,
                                      String description,
                                      Runnable... items)
        Helper method for immediately displaying a MenuListDialog, 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