public static final class OpenFilesCallback.Action extends AsyncCallbackAction<com.teamdev.jxbrowser.internal.rpc.OpenFiles.Response>
OpenFilesCallback
.Constructor and Description |
---|
Action(java.util.function.Consumer<com.teamdev.jxbrowser.internal.rpc.OpenFiles.Response> consumer) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Notifies the browser that the file chooser dialog should be canceled.
|
void |
open(java.nio.file.Path... filePaths)
Notifies the browser that the files were selected in the file chooser dialog.
|
isClosed
public Action(java.util.function.Consumer<com.teamdev.jxbrowser.internal.rpc.OpenFiles.Response> consumer)
public void open(java.nio.file.Path... filePaths)
filePaths
- the list of the selected file pathspublic void cancel()