org.apache.myfaces.commons.exporter
Class ExporterActionListener

java.lang.Object
  extended by org.apache.myfaces.commons.exporter.ExporterActionListener
All Implemented Interfaces:
java.util.EventListener, javax.faces.component.StateHolder, javax.faces.event.ActionListener, javax.faces.event.FacesListener

public class ExporterActionListener
extends java.lang.Object
implements javax.faces.event.ActionListener, javax.faces.component.StateHolder

This class is acting as the Exporter ActionListener.


Field Summary
static java.lang.String FILE_TYPE_KEY
           
static java.lang.String FILENAME_KEY
           
static java.lang.String FOR_KEY
           
 
Constructor Summary
ExporterActionListener()
           
ExporterActionListener(java.lang.String listenerFor, java.lang.String fileType, java.lang.String fileName)
           
 
Method Summary
 java.lang.String getFilename()
           
 java.lang.String getFileType()
           
 java.lang.String getFor()
           
 boolean isTransient()
           
 void processAction(javax.faces.event.ActionEvent event)
           
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setFilename(java.lang.String filename)
           
 void setFileType(java.lang.String type)
           
 void setFor(java.lang.String listenerFor)
           
 void setTransient(boolean newTransientValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILENAME_KEY

public static final java.lang.String FILENAME_KEY
See Also:
Constant Field Values

FILE_TYPE_KEY

public static final java.lang.String FILE_TYPE_KEY
See Also:
Constant Field Values

FOR_KEY

public static final java.lang.String FOR_KEY
See Also:
Constant Field Values
Constructor Detail

ExporterActionListener

public ExporterActionListener()

ExporterActionListener

public ExporterActionListener(java.lang.String listenerFor,
                              java.lang.String fileType,
                              java.lang.String fileName)
Method Detail

processAction

public void processAction(javax.faces.event.ActionEvent event)
Specified by:
processAction in interface javax.faces.event.ActionListener

getFilename

public java.lang.String getFilename()

setFilename

public void setFilename(java.lang.String filename)

getFileType

public java.lang.String getFileType()

setFileType

public void setFileType(java.lang.String type)

getFor

public java.lang.String getFor()

setFor

public void setFor(java.lang.String listenerFor)

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder

isTransient

public boolean isTransient()
Specified by:
isTransient in interface javax.faces.component.StateHolder

setTransient

public void setTransient(boolean newTransientValue)
Specified by:
setTransient in interface javax.faces.component.StateHolder


Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.