Package org.primefaces.event
Class FileUploadEvent
java.lang.Object
java.util.EventObject
javax.faces.event.FacesEvent
org.primefaces.event.FileUploadEvent
- All Implemented Interfaces:
Serializable
public class FileUploadEvent
extends javax.faces.event.FacesEvent
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionFileUploadEvent(javax.faces.component.UIComponent component, UploadedFile file, int totalFilesCount) -
Method Summary
Modifier and TypeMethodDescriptiongetFile()intThe total files count if advanced mode is used.booleanisAppropriateListener(javax.faces.event.FacesListener listener) voidprocessListener(javax.faces.event.FacesListener listener) Methods inherited from class javax.faces.event.FacesEvent
getComponent, getFacesContext, getPhaseId, queue, setPhaseIdMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
FileUploadEvent
public FileUploadEvent(javax.faces.component.UIComponent component, UploadedFile file, int totalFilesCount)
-
-
Method Details
-
isAppropriateListener
public boolean isAppropriateListener(javax.faces.event.FacesListener listener) - Specified by:
isAppropriateListenerin classjavax.faces.event.FacesEvent
-
processListener
public void processListener(javax.faces.event.FacesListener listener) - Specified by:
processListenerin classjavax.faces.event.FacesEvent
-
getFile
-
getTotalFilesCount
public int getTotalFilesCount()The total files count if advanced mode is used.- Returns:
- total files count.
-