org.zkoss.zk.ui.event
Class UploadEvent
java.lang.Object
org.zkoss.zk.ui.event.Event
org.zkoss.zk.ui.event.UploadEvent
public class UploadEvent
- extends Event
Represents that user has uploaded one or several files from
the client to the server.
- Author:
- tomyeh
|
Constructor Summary |
UploadEvent(java.lang.String name,
Component target,
org.zkoss.util.media.Media[] meds)
Constructs the upload event. |
|
Method Summary |
org.zkoss.util.media.Media |
getMedia()
Returns the first media being uploaded, or null if no file
is uploaded. |
org.zkoss.util.media.Media[] |
getMedias()
Returns the array of media being uploaded, or null
if the user uploaded no file at all. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UploadEvent
public UploadEvent(java.lang.String name,
Component target,
org.zkoss.util.media.Media[] meds)
- Constructs the upload event.
- Parameters:
meds - the media being uploaded, or null if no file is
uploaded. If a zero-length array is passed, null is assumed.
getMedia
public final org.zkoss.util.media.Media getMedia()
- Returns the first media being uploaded, or null if no file
is uploaded.
getMedias
public final org.zkoss.util.media.Media[] getMedias()
- 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.
Copyright © 2005-2007 Potix Corporation. All Rights Reserved.