org.richfaces.event
Class UploadEvent
java.lang.Object
java.util.EventObject
javax.faces.event.FacesEvent
org.richfaces.event.UploadEvent
- All Implemented Interfaces:
- java.io.Serializable
public class UploadEvent
- extends javax.faces.event.FacesEvent
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
UploadEvent(javax.faces.component.UIComponent component,
java.util.List<UploadItem> uploadItems)
|
Methods inherited from class javax.faces.event.FacesEvent |
getComponent, getPhaseId, queue, setPhaseId |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UploadEvent
public UploadEvent(javax.faces.component.UIComponent component,
java.util.List<UploadItem> uploadItems)
isAppropriateListener
public boolean isAppropriateListener(javax.faces.event.FacesListener listener)
- Specified by:
isAppropriateListener
in class javax.faces.event.FacesEvent
processListener
public void processListener(javax.faces.event.FacesListener listener)
- Specified by:
processListener
in class javax.faces.event.FacesEvent
getUploadItem
public UploadItem getUploadItem()
- Returns UploadItem instance.
Returns first element of list of UploadItems in case of multiple upload.
- Returns:
- the uploadItem
getUploadItems
public java.util.List<UploadItem> getUploadItems()
- Return list of UploadItems
- Returns:
- the uploadItem
- Since:
- 3.2.2
isMultiUpload
public boolean isMultiUpload()
- Return true if multiple files were uploaded with form
- Returns:
- boolean
- Since:
- 3.2.2
Copyright © 2010. All Rights Reserved.