public class SaveFileLightBox extends FileDialogLightBox:
Modal lightbox that selects a destination filename without writing it.
The lightbox provides the same filters, extension inference, and overwrite confirmation as SaveFileDialog.
chooser = SaveFileLightBox("Save report")
chooser.suggestedName = "report"
chooser.filters = [FileDialogFilter("JSON document", "*.json")]
chooser.accepted += lambda(event: ActionEvent): print(chooser.selectedFile)
window.centralWidget.add(chooser)
chooser.open()| Modifier and Type | Member | Description |
|---|---|---|
| public property | confirmOverwriteconfirmOverwrite as Boolean = true |
Whether an existing destination requires explicit confirmation. |
| public property | defaultExtensiondefaultExtension as String = "" |
Explicit extension appended when the filename has none. |
| public property | filterIndexfilterIndex as Int = 0 |
Zero-based filter selected when the lightbox opens and after acceptance. |
| public property | filtersfilters as IList<FileDialogFilter> = [] |
Available filename filters. |
| public readonly property | selectedFileselectedFile as FilePath: |
Destination selected by the last accepted interaction, or null. |
| public property | suggestedNamesuggestedName as String = "" |
Filename proposed when the lightbox opens. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | SaveFileLightBoxSaveFileLightBox(title as String = "Save file"): |
Creates an inactive save-file lightbox. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | openopen() as Void: |
Opens the lightbox over its containing window. |