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? dirThe initial directory to display
- filterExts
-
const Str[]? filterExts := nullFile extensions to display, for example:
filterExts = ["*.gif", "*.png", "*.jpg"]
- make
-
new make(|This|? f := null)Default constructor.
- mode
-
const FileDialogMode mode := FileDialogMode.openFileMode is used to define whether we are opening or saving a single file, multiple files, or a directory.
- name
-
const Str? nameThe 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