org.apache.myfaces.commons.exporter
Class ExporterActionListener

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

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

This class is acting as the Exporter ActionListener.


Field Summary
static String FILE_TYPE_KEY
           
static String FILENAME_KEY
           
static String FOR_KEY
           
 
Constructor Summary
ExporterActionListener()
           
ExporterActionListener(String _for, String _fileType, String _fileName)
           
 
Method Summary
 String getFilename()
           
 String getFileType()
           
 String getFor()
           
 boolean isTransient()
           
 void processAction(javax.faces.event.ActionEvent event)
           
 void restoreState(javax.faces.context.FacesContext context, Object state)
           
 Object saveState(javax.faces.context.FacesContext context)
           
 void setFilename(String _filename)
           
 void setFileType(String type)
           
 void setFor(String _for)
           
 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 String FILENAME_KEY
See Also:
Constant Field Values

FILE_TYPE_KEY

public static final String FILE_TYPE_KEY
See Also:
Constant Field Values

FOR_KEY

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

ExporterActionListener

public ExporterActionListener()

ExporterActionListener

public ExporterActionListener(String _for,
                              String _fileType,
                              String _fileName)
Method Detail

processAction

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

getFilename

public String getFilename()

setFilename

public void setFilename(String _filename)

getFileType

public String getFileType()

setFileType

public void setFileType(String type)

getFor

public String getFor()

setFor

public void setFor(String _for)

restoreState

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

saveState

public 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-2011 The Apache Software Foundation. All Rights Reserved.