public class UploadEvent extends Event
Constructor and Description |
---|
UploadEvent(java.lang.String name,
Component target,
Media[] meds)
Constructs the upload event.
|
Modifier and Type | Method and Description |
---|---|
static UploadEvent |
getLatestUploadEvent(java.lang.String name,
Component component,
AuRequest request)
Creates an instance of
UploadEvent based on the event name and component,
the UploadEvent contains the latest upload media from user. |
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.
|
getData, getEvent, getName, getPage, getTarget, isPropagatable, stopPropagation, toString
public final Media getMedia()
public final Media[] getMedias()
public static UploadEvent getLatestUploadEvent(java.lang.String name, Component component, AuRequest request)
UploadEvent
based on the event name and component,
the UploadEvent
contains the latest upload media from user.
Internal Use Only.name
- event namecomponent
- component that triggers the upload eventrequest
- An AuRequest objectCopyright © 2005-2023 Potix Corporation. All Rights Reserved.