public final class DefaultStartDownloadCallback extends AbstractDialogCallback implements StartDownloadCallback
StartDownloadCallbackimplementation 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.
|Constructor and Description|
Creates a new callback instance.
|Modifier and Type||Method and Description|
Invoked when the callback needs a response for the given callback parameters.
public DefaultStartDownloadCallback(javax.swing.JComponent parent)
parent- the parent component that is used to determine the Frame in which the dialog is displayed.
public void on(StartDownloadCallback.Params params, StartDownloadCallback.Action tell)
params- the object that represents the callback parameters
tell- 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