public class DirectoryDialog extends DialogWindow
AbstractBasePane.ContentHolder
Window.Hint
contentHolder, interactableLookupMap
Constructor | Description |
---|---|
DirectoryDialog(String title,
String description,
String actionLabel,
TerminalSize dialogSize,
boolean showHiddenDirs,
File selectedObject) |
Default constructor for
DirectoryDialog |
Modifier and Type | Method | Description |
---|---|---|
File |
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, 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 DirectoryDialog(String title, String description, String actionLabel, TerminalSize dialogSize, boolean showHiddenDirs, File selectedObject)
DirectoryDialog
title
- Title of the dialogdescription
- Description of the dialog, is displayed at the top of the content areaactionLabel
- Label to use on the "confirm" button, for example "open" or "save"dialogSize
- Rough estimation of how big you want the dialog to beshowHiddenDirs
- If true
, hidden directories will be visibleselectedObject
- Initially selected directory nodepublic File showDialog(WindowBasedTextGUI textGUI)
showDialog
in class DialogWindow
textGUI
- Text GUI to add the dialog tonull
if the dialog was cancelledCopyright © 2020. All rights reserved.