fileupload.java

来自「非常接近C/S操作方式的Java Ajax框架-ZK 用ZK框架使你的B/S应」· Java 代码 · 共 55 行

JAVA
55
字号
/* Fileupload.java{{IS_NOTE	Purpose:			Description:			History:		Thu Nov 24 15:11:04     2005, Created by tomyeh}}IS_NOTECopyright (C) 2005 Potix Corporation. All Rights Reserved.{{IS_RIGHT	This program is distributed under GPL Version 2.0 in the hope that	it will be useful, but WITHOUT ANY WARRANTY.}}IS_RIGHT*/package org.zkoss.zhtml;import org.zkoss.util.media.Media;import org.zkoss.zk.ui.UiException;/** * A fileupload dialog used to let user upload a file. * * <p>You don't create {@link Fileupload} directly. Rather, use {@link #get()} * or {@link #get(String, String)}. * * <p>A non-XHTML extension. *  * @author tomyeh */public class Fileupload {	/** Opens a modal dialog with the default message and title,	 * and let user upload a file.	 * @return the uploaded content, or null if not ready.	 */	public static Media get() throws InterruptedException {		return get(null, null);	}	/** Opens a modal dialog with the specified message and title,	 * and let user upload a file.	 *	 * @param message the message. If null, the default is used.	 * @param title the title. If null, the default is used.	 * @return the uploaded content, or null if not ready.	 */	public static Media get(String message, String title)	throws InterruptedException {		return org.zkoss.zul.Fileupload.get(message, title);	}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?