public abstract class FileDialogLightBox extends LightBox:
Shared modal-overlay base for file and folder chooser lightboxes.
Unlike FileDialog, this class is embedded in an existing window. Add one instance to an overlay-capable root container and subscribe to accepted or cancelled before calling the concrete lightbox's open() method. LightBox already provides modal hit testing, so no modal property is exposed.
chooser = OpenFileLightBox("Open source")
chooser.accepted += lambda(event: ActionEvent): print(chooser.selectedFiles)
window.centralWidget.add(chooser)
chooser.open()| Modifier and Type | Member | Description |
|---|---|---|
| public property | initialFolderinitialFolder as FolderPath |
Folder displayed whenever the chooser is opened. |
| public property | titletitle as String |
Heading displayed inside the lightbox panel. |
| Modifier and Type | Member | Description |
|---|---|---|
| public event | acceptedaccepted as ActionEvent |
Emitted after a valid file-system selection has been accepted. |
| public event | cancelledcancelled as ActionEvent |
Emitted when the user cancels with the button, Escape key, or close icon. |
| Modifier and Type | Member | Description |
|---|---|---|
| public override | closeclose() as Void: |
Cancels and closes the active chooser. |