本文整理汇总了Java中org.cef.handler.CefDialogHandler.FileDialogMode类的典型用法代码示例。如果您正苦于以下问题:Java FileDialogMode类的具体用法?Java FileDialogMode怎么用?Java FileDialogMode使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
FileDialogMode类属于org.cef.handler.CefDialogHandler包,在下文中一共展示了FileDialogMode类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: runFileDialog
import org.cef.handler.CefDialogHandler.FileDialogMode; //导入依赖的package包/类
@Override
public void runFileDialog(FileDialogMode mode, String title, String defaultFilePath, Vector<String> acceptFilters, int selectedAcceptFilter, CefRunFileDialogCallback callback) {
try {
N_RunFileDialog(mode, title, defaultFilePath, acceptFilters, selectedAcceptFilter, callback);
} catch (UnsatisfiedLinkError ule) {
ule.printStackTrace();
}
}
示例2: runFileDialog
import org.cef.handler.CefDialogHandler.FileDialogMode; //导入依赖的package包/类
@Override
public void runFileDialog(FileDialogMode mode,
String title,
String defaultFilePath,
Vector<String> acceptFilters,
int selectedAcceptFilter,
CefRunFileDialogCallback callback) {
try {
N_RunFileDialog(mode, title, defaultFilePath, acceptFilters, selectedAcceptFilter, callback);
} catch (UnsatisfiedLinkError ule) {
ule.printStackTrace();
}
}
示例3: runFileDialog
import org.cef.handler.CefDialogHandler.FileDialogMode; //导入依赖的package包/类
@Override
public void runFileDialog(FileDialogMode mode,
String title,
String defaultFileName,
Vector<String> acceptTypes,
CefRunFileDialogCallback callback) {
try {
N_RunFileDialog(mode, title, defaultFileName, acceptTypes, callback);
} catch (UnsatisfiedLinkError ule) {
ule.printStackTrace();
}
}
示例4: N_RunFileDialog
import org.cef.handler.CefDialogHandler.FileDialogMode; //导入依赖的package包/类
private final native void N_RunFileDialog(FileDialogMode mode,
String title,
String defaultFilePath,
Vector<String> acceptFilters,
int selectedAcceptFilter,
CefRunFileDialogCallback callback);
示例5: runFileDialog
import org.cef.handler.CefDialogHandler.FileDialogMode; //导入依赖的package包/类
/**
* Call to run a file chooser dialog. Only a single file chooser dialog may be
* pending at any given time.The dialog will be initiated asynchronously on
* the UI thread.
*
* @param mode represents the type of dialog to display.
* @param title to be used for the dialog and may be empty to show the
* default title ("Open" or "Save" depending on the mode).
* @param defaultFilePath is the path with optional directory and/or file name
* component that should be initially selected in the dialog.
* @param 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").
* @param selectedAcceptFilter is the 0-based index of the filter that should
* be selected by default.
* @param callback will be executed after the dialog is dismissed or
* immediately if another dialog is already pending.
*/
public void runFileDialog(FileDialogMode mode,
String title,
String defaultFilePath,
Vector<String> acceptFilters,
int selectedAcceptFilter,
CefRunFileDialogCallback callback);
示例6: runFileDialog
import org.cef.handler.CefDialogHandler.FileDialogMode; //导入依赖的package包/类
/**
* Call to run a file chooser dialog. Only a single file chooser dialog may be
* pending at any given time.The dialog will be initiated asynchronously on
* the UI thread.
*
* @param mode represents the type of dialog to display.
* @param title to be used for the dialog and may be empty to show the
* default title ("Open" or "Save" depending on the mode).
* @param defaultFilePath is the path with optional directory and/or file name
* component that should be initially selected in the dialog.
* @param 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").
* @param selectedAcceptFilter is the 0-based index of the filter that should
* be selected by default.
* @param callback will be executed after the dialog is dismissed or
* immediately if another dialog is already pending.
*/
public void runFileDialog(FileDialogMode mode, String title, String defaultFilePath, Vector<String> acceptFilters, int selectedAcceptFilter, CefRunFileDialogCallback callback);
示例7: runFileDialog
import org.cef.handler.CefDialogHandler.FileDialogMode; //导入依赖的package包/类
/**
* Call to run a file chooser dialog. Only a single file chooser dialog may be
* pending at any given time.The dialog will be initiated asynchronously on
* the UI thread.
*
* @param mode represents the type of dialog to display.
* @param title to be used for the dialog and may be empty to show the
* default title ("Open" or "Save" depending on the mode).
* @param defaultFileName the default file name to select in the dialog.
* @param acceptTypes is a list of valid lower-cased MIME types or file
* extensions specified in an input element and is used to restrict selectable
* files to such types.
* @param callback will be executed after the dialog is dismissed or
* immediately if another dialog is already pending.
*/
public void runFileDialog(FileDialogMode mode,
String title,
String defaultFileName,
Vector<String> acceptTypes,
CefRunFileDialogCallback callback);
示例8: N_RunFileDialog
import org.cef.handler.CefDialogHandler.FileDialogMode; //导入依赖的package包/类
private final native void N_RunFileDialog(FileDialogMode mode, String title, String defaultFilePath, Vector<String> acceptFilters, int selectedAcceptFilter, CefRunFileDialogCallback callback);
示例9: N_RunFileDialog
import org.cef.handler.CefDialogHandler.FileDialogMode; //导入依赖的package包/类
private final native void N_RunFileDialog(FileDialogMode mode, String title, String defaultFileName, Vector<String> acceptTypes,CefRunFileDialogCallback callback);