Class FileDownloadActionListener
java.lang.Object
org.primefaces.component.filedownload.FileDownloadActionListener
- All Implemented Interfaces:
EventListener,javax.faces.component.StateHolder,javax.faces.event.ActionListener,javax.faces.event.FacesListener
public class FileDownloadActionListener
extends Object
implements javax.faces.event.ActionListener, javax.faces.component.StateHolder
-
Field Summary
Fields inherited from interface javax.faces.event.ActionListener
TO_FLOW_DOCUMENT_ID_ATTR_NAME -
Constructor Summary
ConstructorsConstructorDescriptionFileDownloadActionListener(javax.el.ValueExpression value, javax.el.ValueExpression contentDisposition, javax.el.ValueExpression monitorKey) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidajaxDownload(javax.faces.context.FacesContext context, StreamedContent content) booleanvoidprocessAction(javax.faces.event.ActionEvent actionEvent) protected voidregularDownload(javax.faces.context.FacesContext context, StreamedContent content) voidrestoreState(javax.faces.context.FacesContext facesContext, Object state) saveState(javax.faces.context.FacesContext facesContext) voidsetTransient(boolean value)
-
Constructor Details
-
FileDownloadActionListener
public FileDownloadActionListener() -
FileDownloadActionListener
public FileDownloadActionListener(javax.el.ValueExpression value, javax.el.ValueExpression contentDisposition, javax.el.ValueExpression monitorKey)
-
-
Method Details
-
processAction
public void processAction(javax.faces.event.ActionEvent actionEvent) throws javax.faces.event.AbortProcessingException - Specified by:
processActionin interfacejavax.faces.event.ActionListener- Throws:
javax.faces.event.AbortProcessingException
-
ajaxDownload
-
regularDownload
-
isTransient
public boolean isTransient()- Specified by:
isTransientin interfacejavax.faces.component.StateHolder
-
setTransient
public void setTransient(boolean value) - Specified by:
setTransientin interfacejavax.faces.component.StateHolder
-
restoreState
- Specified by:
restoreStatein interfacejavax.faces.component.StateHolder
-
saveState
- Specified by:
saveStatein interfacejavax.faces.component.StateHolder
-