Package adams.terminal.core
Class MenuListDialog
- java.lang.Object
-
- com.googlecode.lanterna.gui2.AbstractBasePane<com.googlecode.lanterna.gui2.Window>
-
- com.googlecode.lanterna.gui2.AbstractWindow
-
- com.googlecode.lanterna.gui2.dialogs.DialogWindow
-
- adams.terminal.core.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)
-
-
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 aMenuListDialog
, the method will return when the dialog is closed-
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
showDialog
public static void showDialog(com.googlecode.lanterna.gui2.WindowBasedTextGUI textGUI, String title, String description, Runnable... items)
Helper method for immediately displaying aMenuListDialog
, the method will return when the dialog is closed- Parameters:
textGUI
- Text GUI the dialog should be added totitle
- Title of the dialogdescription
- Description of the dialogitems
- Items in theActionListBox
, the label will be taken from eachRunnable
by callingtoString()
on each one
-
-