public final class DefaultStartDownloadCallback extends AbstractDialogCallback implements StartDownloadCallback
StartDownloadCallback
implementation that shows a file chooser dialog when
the engine's download service requests to download a file.
If file to download already exists in the selected destination directory a warning message will be shown.
If there is no permission to the selected destination directory a warning message will be shown as well.
StartDownloadCallback.Action, StartDownloadCallback.Params
Constructor and Description |
---|
DefaultStartDownloadCallback(javafx.scene.Node parent)
Creates a new callback instance.
|
Modifier and Type | Method and Description |
---|---|
void |
on(StartDownloadCallback.Params params,
StartDownloadCallback.Action tell)
Invoked when the callback needs a response for the given callback parameters.
|
getParent
public DefaultStartDownloadCallback(javafx.scene.Node parent)
parent
- the parent Node
that is used to determine the Window
in which
the dialog is displayed.public void on(StartDownloadCallback.Params params, StartDownloadCallback.Action tell)
AsyncCallback
on
in interface AsyncCallback<StartDownloadCallback.Params,StartDownloadCallback.Action>
params
- the object that represents the callback parameterstell
- the object that can be used to provide the callback response. One of its
methods must be invoked to provide the response. Once the response has been
provided, any call to the object methods will result in the IllegalStateException