public interface CefDialogHandler
| Modifier and Type | Interface and Description |
|---|---|
static class |
CefDialogHandler.FileDialogMode
Supported file dialog modes.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
onFileDialog(CefBrowser browser,
CefDialogHandler.FileDialogMode mode,
java.lang.String title,
java.lang.String defaultFilePath,
java.util.Vector<java.lang.String> acceptFilters,
java.util.Vector<java.lang.String> acceptExtensions,
java.util.Vector<java.lang.String> acceptDescriptions,
CefFileDialogCallback callback)
Called to run a file chooser dialog.
|
boolean onFileDialog(CefBrowser browser, CefDialogHandler.FileDialogMode mode, java.lang.String title, java.lang.String defaultFilePath, java.util.Vector<java.lang.String> acceptFilters, java.util.Vector<java.lang.String> acceptExtensions, java.util.Vector<java.lang.String> acceptDescriptions, CefFileDialogCallback callback)
browser - mode - represents the type of dialog to display.title - to be used for the dialog and may be empty to show the default
title ("Open" or "Save" depending on the mode).defaultFilePath - is the path with optional directory and/or file name
component that should be initially selected in the dialog.acceptFilters - are used to restrict the selectable file types and may
any combination of (a) valid lower-cased MIME types (e.g. "text/*" or
"image/*"), (b) individual file extensions (e.g. ".txt" or ".png"), or (c)
combined description and file extension delimited using "|" and ";" (e.g.
"Image Types|.png;.gif;.jpg").acceptExtensions - provides the semicolon-delimited expansion of MIME
types to file extensions (if known, or empty string otherwise).acceptDescriptions - provides the descriptions for MIME types (if known,
or empty string otherwise). For example, the "image/*" mime type might
have extensions ".png;.jpg;.bmp;..." and description "Image Files".callback - is a callback handler for handling own file dialogs.