public class MessageDialog extends DialogWindow
AbstractBasePane.ContentHolder
Window.Hint
contentHolder, interactableLookupMap
Modifier and Type | Method | Description |
---|---|---|
MessageDialogButton |
showDialog(WindowBasedTextGUI textGUI) |
Opens the dialog by showing it on the GUI and doesn't return until the dialog has been closed
|
static MessageDialogButton |
showMessageDialog(WindowBasedTextGUI textGUI,
String title,
String text,
MessageDialogButton... buttons) |
Shortcut for quickly displaying a message box
|
addBasePaneListener, getBasePaneListeners, getComponent, getCursorPosition, getFocusedInteractable, getMenuBar, getTheme, invalidate, isInvalid, removeBasePaneListener, setComponent, setEnableDirectionBasedMovements, setFocusedInteractable, setFocusedInteractable, setMenuBar, setStrictFocusChange, setTheme
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, setWindowPostRenderer, setVisible, toGlobal, toGlobalFromContentRelative, toGlobalFromDecoratedRelative, waitUntilClosed
getTheme, setEnableDirectionBasedMovements, setStrictFocusChange, setTheme
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBounds, getComponent, getCursorPosition, getFocusedInteractable, getMenuBar, invalidate, isInvalid, setComponent, setFocusedInteractable, setMenuBar
public MessageDialogButton showDialog(WindowBasedTextGUI textGUI)
showDialog
in class DialogWindow
textGUI
- Text GUI to add the dialog topublic static MessageDialogButton showMessageDialog(WindowBasedTextGUI textGUI, String title, String text, MessageDialogButton... buttons)
textGUI
- The GUI to display the message box ontitle
- Title of the message boxtext
- Main message of the message boxbuttons
- Buttons that the user can confirm the message box withCopyright © 2020. All rights reserved.