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 and Description |
---|---|
protected |
DialogWindow(String title)
Default constructor, takes a title for the dialog and runs code shared for dialogs
|
Modifier and Type | Method and Description |
---|---|
Object |
showDialog(WindowBasedTextGUI textGUI)
Opens the dialog by showing it on the GUI and doesn't return until the dialog has been closed
|
close, draw, fromGlobal, getDecoratedSize, getHints, getPosition, getPreferredSize, getSize, getTextGUI, getTitle, handleInput, isVisible, setCloseWindowWithEscape, setContentOffset, setDecoratedSize, setHints, setPosition, setSize, setTextGUI, setTitle, setVisible, toGlobal, waitUntilClosed
getComponent, getCursorPosition, getFocusedInteractable, invalidate, isInvalid, setComponent, setEnableDirectionBasedMovements, setFocusedInteractable, setFocusedInteractable, setStrictFocusChange
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponent, getCursorPosition, getFocusedInteractable, invalidate, isInvalid, setComponent, setFocusedInteractable
setEnableDirectionBasedMovements, setStrictFocusChange
protected DialogWindow(String title)
title
- public Object showDialog(WindowBasedTextGUI textGUI)
textGUI
- Text GUI to add the dialog toDialogWindow
implementation, by default null
Copyright © 2016. All rights reserved.