当前位置: 首页>>代码示例>>Java>>正文


Java FileDialogMode类代码示例

本文整理汇总了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();
    }
}
 
开发者ID:Panda-Programming-Language,项目名称:Pandomium,代码行数:9,代码来源:CefBrowser_N.java

示例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();
  }
}
 
开发者ID:viglucci,项目名称:app-jcef-example,代码行数:14,代码来源:CefBrowser_N.java

示例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();
	}
}
 
开发者ID:apicloudcom,项目名称:APICloud-Studio,代码行数:13,代码来源:CefBrowser_N.java

示例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);
 
开发者ID:viglucci,项目名称:app-jcef-example,代码行数:7,代码来源:CefBrowser_N.java

示例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);
 
开发者ID:viglucci,项目名称:app-jcef-example,代码行数:27,代码来源:CefBrowser.java

示例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);
 
开发者ID:Panda-Programming-Language,项目名称:Pandomium,代码行数:22,代码来源:CefBrowser.java

示例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);
 
开发者ID:apicloudcom,项目名称:APICloud-Studio,代码行数:21,代码来源:CefBrowser.java

示例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); 
开发者ID:Panda-Programming-Language,项目名称:Pandomium,代码行数:2,代码来源:CefBrowser_N.java

示例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); 
开发者ID:apicloudcom,项目名称:APICloud-Studio,代码行数:2,代码来源:CefBrowser_N.java


注:本文中的org.cef.handler.CefDialogHandler.FileDialogMode类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。