public class FileDialog extends DialogWindow
AbstractBasePane.ContentHolder
Window.Hint
contentHolder, interactableLookupMap
Constructor | Description |
---|---|
FileDialog(String title,
String description,
String actionLabel,
TerminalSize dialogSize,
boolean showHiddenFilesAndDirs,
File selectedObject) |
Default constructor for
FileDialog |
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, 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 FileDialog(String title, String description, String actionLabel, TerminalSize dialogSize, boolean showHiddenFilesAndDirs, File selectedObject)
FileDialog
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 beshowHiddenFilesAndDirs
- If true
, hidden files and directories will be visibleselectedObject
- Initially selected file 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.