Interface JWFileChooserType


public interface JWFileChooserType
A created file chooser.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    If the file chooser is open, then hide it and behave as if the user cancelled the selection.
     
    void
    Add a receiver of events.
    void
    Display the file chooser and return immediately.
    Display the file chooser and wait until the user either selects files, or cancels the dialog.
    javafx.stage.Stage
     
  • Method Details

    • setEventListener

      void setEventListener(Consumer<JWFileChooserEventType> receiver)
      Add a receiver of events. The given receiver is called whenever the file chooser publishes an event that may need the caller to perform some action (such as display an error dialog box). The receiver is guaranteed to be called on the FX application thread.
      Parameters:
      receiver - The receiver
    • showAndWait

      List<Path> showAndWait()
      Display the file chooser and wait until the user either selects files, or cancels the dialog.
      Returns:
      The selected files, if any
    • show

      void show()
      Display the file chooser and return immediately.
    • result

      List<Path> result()
      Returns:
      The selected files, if any
    • cancel

      void cancel()
      If the file chooser is open, then hide it and behave as if the user cancelled the selection.
    • stage

      javafx.stage.Stage stage()
      Returns:
      The stage to which this file chooser is attached