- java.lang.Object
-
- com.googlecode.lanterna.gui2.AbstractBasePane<Window>
-
- com.googlecode.lanterna.gui2.AbstractWindow
-
- com.googlecode.lanterna.gui2.dialogs.DialogWindow
-
- Direct Known Subclasses:
ActionListDialog
,DirectoryDialog
,FileDialog
,ListSelectDialog
,MessageDialog
,TextInputDialog
,WaitingDialog
public abstract class DialogWindow extends AbstractWindow
Thin layer on top of theAbstractWindow
class that automatically sets properties and hints to the window to make it act more like a modal dialog window
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.googlecode.lanterna.gui2.AbstractBasePane
AbstractBasePane.ContentHolder
-
Nested classes/interfaces inherited from interface com.googlecode.lanterna.gui2.Window
Window.Hint
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Set<Window.Hint>
GLOBAL_DIALOG_HINTS
-
Fields inherited from class com.googlecode.lanterna.gui2.AbstractBasePane
contentHolder, interactableLookupMap
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DialogWindow(java.lang.String title)
Default constructor, takes a title for the dialog and runs code shared for dialogs
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
showDialog(WindowBasedTextGUI textGUI)
Opens the dialog by showing it on the GUI and doesn't return until the dialog has been closed-
Methods inherited from class com.googlecode.lanterna.gui2.AbstractWindow
addWindowListener, close, draw, fromGlobal, fromGlobalToContentRelative, fromGlobalToDecoratedRelative, getDecoratedSize, getHints, getPosition, getPostRenderer, getPreferredSize, getSize, getTextGUI, getTitle, handleInput, isVisible, removeWindowListener, setCloseWindowWithEscape, setContentOffset, setDecoratedSize, setFixedSize, setHints, setPosition, setSize, setTextGUI, setTitle, setVisible, setWindowPostRenderer, toGlobal, toGlobalFromContentRelative, toGlobalFromDecoratedRelative, waitUntilClosed
-
Methods inherited from class com.googlecode.lanterna.gui2.AbstractBasePane
addBasePaneListener, getBasePaneListeners, getComponent, getCursorPosition, getFocusedInteractable, getMenuBar, getTheme, invalidate, isInvalid, removeBasePaneListener, setComponent, setEnableDirectionBasedMovements, setFocusedInteractable, setFocusedInteractable, setMenuBar, setStrictFocusChange, setTheme
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.googlecode.lanterna.gui2.BasePane
getTheme, setEnableDirectionBasedMovements, setStrictFocusChange, setTheme
-
Methods inherited from interface com.googlecode.lanterna.gui2.Window
getBounds, getComponent, getCursorPosition, getFocusedInteractable, getMenuBar, invalidate, isInvalid, setComponent, setFocusedInteractable, setMenuBar
-
-
-
-
Field Detail
-
GLOBAL_DIALOG_HINTS
private static final java.util.Set<Window.Hint> GLOBAL_DIALOG_HINTS
-
-
Method Detail
-
showDialog
public java.lang.Object showDialog(WindowBasedTextGUI textGUI)
Opens the dialog by showing it on the GUI and doesn't return until the dialog has been closed- Parameters:
textGUI
- Text GUI to add the dialog to- Returns:
- Depending on the
DialogWindow
implementation, by defaultnull
-
-