org.richfaces.event
Class UploadEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.faces.event.FacesEvent
          extended by org.richfaces.event.UploadEvent
All Implemented Interfaces:
java.io.Serializable

public class UploadEvent
extends javax.faces.event.FacesEvent

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
UploadEvent(javax.faces.component.UIComponent component, java.util.List<UploadItem> uploadItems)
           
 
Method Summary
 UploadItem getUploadItem()
          Returns UploadItem instance.
 java.util.List<UploadItem> getUploadItems()
          Return list of UploadItems
 boolean isAppropriateListener(javax.faces.event.FacesListener listener)
           
 boolean isMultiUpload()
          Return true if multiple files were uploaded with form
 void processListener(javax.faces.event.FacesListener listener)
           
 
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
 

Constructor Detail

UploadEvent

public UploadEvent(javax.faces.component.UIComponent component,
                   java.util.List<UploadItem> uploadItems)
Method Detail

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.