org.zkoss.zk.ui.event
Class UploadEvent

java.lang.Object
  extended by org.zkoss.zk.ui.event.Event
      extended by org.zkoss.zk.ui.event.UploadEvent
All Implemented Interfaces:
java.io.Serializable

public class UploadEvent
extends Event

Represents that user has uploaded one or several files from the client to the server.

Author:
tomyeh
See Also:
Serialized Form

Constructor Summary
UploadEvent(java.lang.String name, Component target, Media[] meds)
          Constructs the upload event.
 
Method Summary
 Media getMedia()
          Returns the first media being uploaded, or null if no file is uploaded.
 Media[] getMedias()
          Returns the array of media being uploaded, or null if the user uploaded no file at all.
 
Methods inherited from class org.zkoss.zk.ui.event.Event
getData, getEvent, getName, getPage, getTarget, isPropagatable, stopPropagation, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UploadEvent

public UploadEvent(java.lang.String name,
                   Component target,
                   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.
Method Detail

getMedia

public final Media getMedia()
Returns the first media being uploaded, or null if no file is uploaded.


getMedias

public final 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-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo