public class DefaultOpenFolderCallback extends AbstractDialogCallback implements OpenFolderCallback
OpenFolderCallback
implementation that shows a file chooser dialog when the
engine requests to open a folder.OpenFolderCallback.Action, OpenFolderCallback.Params
Constructor and Description |
---|
DefaultOpenFolderCallback(javax.swing.JComponent parent)
Creates a new callback instance.
|
Modifier and Type | Method and Description |
---|---|
void |
on(OpenFolderCallback.Params params,
OpenFolderCallback.Action tell)
Invoked when the callback needs a response for the given callback parameters.
|
getParent
public DefaultOpenFolderCallback(javax.swing.JComponent parent)
parent
- the parent component that is used to determine the Frame in which the dialog is
displayed. If null, or if the parent has no Frame, a default Frame is used.public void on(OpenFolderCallback.Params params, OpenFolderCallback.Action tell)
AsyncCallback
on
in interface AsyncCallback<OpenFolderCallback.Params,OpenFolderCallback.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