ActionListDialog
, FileDialog
, ListSelectDialog
, MessageDialog
, TextInputDialog
, WaitingDialog
public abstract class DialogWindow extends AbstractWindow
AbstractWindow
class that automatically sets properties and hints to the window to
make it act more like a modal dialog windowAbstractBasePane.ContentHolder
Window.Hint
contentHolder, interactableLookupMap
Modifier | Constructor | Description |
---|---|---|
protected |
DialogWindow(String title) |
Default constructor, takes a title for the dialog and runs code shared for dialogs
|
Modifier and Type | Method | Description |
---|---|---|
Object |
showDialog(WindowBasedTextGUI textGUI) |
Opens the dialog by showing it on the GUI and doesn't return until the dialog has been closed
|
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
protected DialogWindow(String title)
title
- Title of the windowpublic Object showDialog(WindowBasedTextGUI textGUI)
textGUI
- Text GUI to add the dialog toDialogWindow
implementation, by default null
Copyright © 2020. All rights reserved.