class fwt::FileDialog
sys::Obj fwt::FileDialog
FileDialog is used to prompt for file and directory selections. This class isn't actually a dialog, it merely defines the various options used to open the operating system's native file dialog.
- dir
-
const File? dir
The initial directory to display
- filterExts
-
const Str[]? filterExts := null
File extensions to display, for example:
filterExts = ["*.gif", "*.png", "*.jpg"]
- make
-
new make(|This|? f := null)
Default constructor.
- mode
-
const FileDialogMode mode := FileDialogMode.openFile
Mode is used to define whether we are opening or saving a single file, multiple files, or a directory.
- name
-
const Str? name
The initial filename to display
- open
-
Return the user selection or null if canceled. Result is based on mode:
- openFile: File
- openFiles: File[]
- saveFile: File
- openDir: File