Interface OpenFileCallback
- All Superinterfaces:
AsyncCallback<OpenFileCallback.Params,
,OpenFileCallback.Action> BrowserAsyncCallback<OpenFileCallback.Params,
,OpenFileCallback.Action> BrowserCallback
,Callback
- All Known Implementing Classes:
DefaultOpenFileCallback
,DefaultOpenFileCallback
,DefaultOpenFileCallback
public interface OpenFileCallback
extends BrowserAsyncCallback<OpenFileCallback.Params,OpenFileCallback.Action>
This callback is invoked when the browser requests to display a file chooser dialog to open a
file. You can use this callback to display the file chooser, or provide the file without
displaying any dialogs.
Use the OpenFileCallback.Action.open(Path)
method to provide the selected file to the browser.
Use the OpenFileCallback.Action.cancel()
method to cancel the dialog.
If the callback throws an exception, the OpenFileCallback.Action.cancel()
method will be invoked.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
An action providing a response to theOpenFileCallback
.static interface
The parameters of theOpenFileCallback
. -
Method Summary
Methods inherited from interface com.teamdev.jxbrowser.callback.AsyncCallback
on