Package limn.backend

Interface FileDialogs


public interface FileDialogs
The platform's own file and folder choosers, owned by a window: NativeWindow.fileDialogs(). Each call opens the chooser tied to that window (a sheet on macOS, a dialog owned by it on Windows, the desktop portal's chooser parented to it on Linux) and returns at once; the answer completes the returned stage on the UI thread when the user picks or cancels. The application keeps running meanwhile: its windows draw, animations advance, timers fire. UI thread only.

An empty answer means cancelled, and is also what a headless or embedded backend answers (NONE), so a caller needs no headless branch.

One at a time per window. A window shows one chooser, as the platforms do; a request made while one is open on the same window completes empty at once.

These are the platform's own panels, so how they look, where they appear, and which shortcuts and sidebar places they offer are the platform's to decide, not the toolkit theme's, and not this API's.

  • Field Details

    • NONE

      static final FileDialogs NONE
      Headless/embedded implementation: every dialog resolves empty at once, as if cancelled.
  • Method Details