T
- Type of elements in the listpublic class ListSelectDialog<T> extends DialogWindow
AbstractBasePane.ContentHolder
Window.Hint
contentHolder, interactableLookupMap
Modifier and Type | Method | Description |
---|---|---|
T |
showDialog(WindowBasedTextGUI textGUI) |
Opens the dialog by showing it on the GUI and doesn't return until the dialog has been closed
|
static <T> T |
showDialog(WindowBasedTextGUI textGUI,
String title,
String description,
int listBoxHeight,
T... items) |
Shortcut for quickly creating a new dialog
|
static <T> T |
showDialog(WindowBasedTextGUI textGUI,
String title,
String description,
TerminalSize listBoxSize,
T... items) |
Shortcut for quickly creating a new dialog
|
static <T> T |
showDialog(WindowBasedTextGUI textGUI,
String title,
String description,
T... items) |
Shortcut for quickly creating a new dialog
|
addBasePaneListener, getBasePaneListeners, getComponent, getCursorPosition, getFocusedInteractable, getTheme, invalidate, isInvalid, removeBasePaneListener, setComponent, setEnableDirectionBasedMovements, setFocusedInteractable, setFocusedInteractable, setStrictFocusChange, setTheme
addWindowListener, close, draw, fromGlobal, getDecoratedSize, getHints, getPosition, getPostRenderer, getPreferredSize, getSize, getTextGUI, getTitle, handleInput, isVisible, removeWindowListener, setCloseWindowWithEscape, setContentOffset, setDecoratedSize, setFixedSize, setHints, setPosition, setSize, setTextGUI, setTitle, setWindowPostRenderer, setVisible, toGlobal, waitUntilClosed
getTheme, setEnableDirectionBasedMovements, setStrictFocusChange, setTheme
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponent, getCursorPosition, getFocusedInteractable, invalidate, isInvalid, setComponent, setFocusedInteractable
public T showDialog(WindowBasedTextGUI textGUI)
showDialog
in class DialogWindow
textGUI
- Text GUI to add the dialog tonull
if the dialog was cancelledpublic static <T> T showDialog(WindowBasedTextGUI textGUI, String title, String description, T... items)
T
- Type of items in the dialogtextGUI
- Text GUI to add the dialog totitle
- Title of the dialogdescription
- Description of the dialogitems
- Items in the dialognull
if cancelledpublic static <T> T showDialog(WindowBasedTextGUI textGUI, String title, String description, int listBoxHeight, T... items)
T
- Type of items in the dialogtextGUI
- Text GUI to add the dialog totitle
- Title of the dialogdescription
- Description of the dialoglistBoxHeight
- Maximum height of the list box, scrollbars will be used if there are more itemsitems
- Items in the dialognull
if cancelledpublic static <T> T showDialog(WindowBasedTextGUI textGUI, String title, String description, TerminalSize listBoxSize, T... items)
T
- Type of items in the dialogtextGUI
- Text GUI to add the dialog totitle
- Title of the dialogdescription
- Description of the dialoglistBoxSize
- Maximum size of the list box, scrollbars will be used if the items cannot fititems
- Items in the dialognull
if cancelledCopyright © 2020. All rights reserved.