⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uploadevent.java

📁 ZK 基础介绍 功能操作 模块 结合数据库操作
💻 JAVA
字号:
/* UploadEvent.java{{IS_NOTE	Purpose:			Description:			History:		Fri May 11 17:10:32     2007, Created by tomyeh}}IS_NOTECopyright (C) 2007 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.zk.ui.event;import org.zkoss.util.media.Media;import org.zkoss.zk.ui.Component;/** * Represents that user has uploaded one or several files from * the client to the server. *  * @author tomyeh */public class UploadEvent extends Event {	private final Media[] _meds;	/** Constructs the upload event.	 * @param meds the media being uploaded, or null if no file is	 * uploaded. If a zero-length array is passed, null is assumed.	 */	public UploadEvent(String name, Component target, Media[] meds) {		super(name, target);		_meds = meds != null && meds.length > 0 ? meds: null;	}	/** Returns the first media being uploaded, or null if no file	 * is uploaded.	 */	public final Media getMedia() {		return _meds != null ? _meds[0]: null;	}	/** Returns the array of media being uploaded, or null	 * if the user uploaded no file at all.	 * If non-null is returned, the array length must be at least one.	 */	public final Media[] getMedias() {		return _meds;	}}

⌨️ 快捷键说明

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