public class FileDialog extends DialogWindow
AbstractBasePane.ContentHolder
Window.Hint
contentHolder, interactableLookupMap
Constructor and Description |
---|
FileDialog(String title,
String description,
String actionLabel,
TerminalSize dialogSize,
boolean showHiddenFilesAndDirs,
File selectedObject)
Default constructor for
FileDialog |
Modifier and Type | Method and Description |
---|---|
File |
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
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 © 2016. All rights reserved.