public class WaitingDialog extends DialogWindow
AbstractBasePane.ContentHolder
Window.Hint
contentHolder, interactableLookupMap
Modifier and Type | Method | Description |
---|---|---|
static WaitingDialog |
createDialog(String title,
String text) |
Creates a new waiting dialog
|
Object |
showDialog(WindowBasedTextGUI textGUI) |
Opens the dialog by showing it on the GUI and doesn't return until the dialog has been closed
|
void |
showDialog(WindowBasedTextGUI textGUI,
boolean blockUntilClosed) |
Displays the waiting dialog and optionally blocks until another thread closes it
|
static WaitingDialog |
showDialog(WindowBasedTextGUI textGUI,
String title,
String text) |
Creates and displays a waiting dialog without blocking for it to finish
|
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 Object showDialog(WindowBasedTextGUI textGUI)
DialogWindow
showDialog
in class DialogWindow
textGUI
- Text GUI to add the dialog toDialogWindow
implementation, by default null
public void showDialog(WindowBasedTextGUI textGUI, boolean blockUntilClosed)
textGUI
- GUI to add the dialog toblockUntilClosed
- If true
, the method call will block until another thread calls close()
on
the dialog, otherwise the method call returns immediatelypublic static WaitingDialog createDialog(String title, String text)
title
- Title of the waiting dialogtext
- Text to display on the waiting dialogpublic static WaitingDialog showDialog(WindowBasedTextGUI textGUI, String title, String text)
textGUI
- GUI to add the dialog totitle
- Title of the waiting dialogtext
- Text to display on the waiting dialogCopyright © 2020. All rights reserved.