Package com.io7m.jwheatsheaf.api
Interface JWFileChooserType
public interface JWFileChooserType
A created file chooser.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()If the file chooser is open, then hide it and behave as if the user cancelled the selection.result()voidsetEventListener(Consumer<JWFileChooserEventType> receiver) Add a receiver of events.voidshow()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.Stagestage()
-
Method Details
-
setEventListener
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
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
- 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
-