Package com.io7m.jwheatsheaf.ui.internal
Class JWFileChooserViewController
java.lang.Object
com.io7m.jwheatsheaf.ui.internal.JWFileChooserViewController
The file chooser view controller.
The
setConfiguration
method must be called after creation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
Cancel and hide the file selection.result()
void
setConfiguration
(JWFileChoosers inChoosers, ExecutorService inIoExecutor, JWFileChoosersTesting inTesting, JWStrings inStrings, JWFileImageSetType inDefaultImageSet, JWFileChooserConfiguration inConfiguration) Set the file chooser provider and configuration.void
setEventReceiver
(Consumer<JWFileChooserEventType> newEventReceiver) Set a function that will receive events from the chooser.
-
Constructor Details
-
JWFileChooserViewController
public JWFileChooserViewController()Construct a view controller.
-
-
Method Details
-
setEventReceiver
Set a function that will receive events from the chooser.- Parameters:
newEventReceiver
- The event receiver
-
setConfiguration
public void setConfiguration(JWFileChoosers inChoosers, ExecutorService inIoExecutor, JWFileChoosersTesting inTesting, JWStrings inStrings, JWFileImageSetType inDefaultImageSet, JWFileChooserConfiguration inConfiguration) Set the file chooser provider and configuration.- Parameters:
inChoosers
- The providerinIoExecutor
- An executor for background I/O operationsinTesting
- An internal testing interfaceinStrings
- UI stringsinDefaultImageSet
- The default image setinConfiguration
- The configuration
-
result
- Returns:
- The list of selected files, if any
-
cancel
public void cancel()Cancel and hide the file selection.
-