public class ExportContext extends Object
| Constructor and Description |
|---|
ExportContext() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCharset()
Retrieves the charset of the current exporting action.
|
String |
getContentType()
Retrieves the content type of this export action.
|
ExportedRowsType |
getExportedRowsType()
Gets the exported row type for the current export action.
|
javax.faces.context.FacesContext |
getFacesContext()
Retrieves the FacesContext instance associated with the current export action.
|
String |
getFileName()
Gets the name of the file to export to.
|
javax.el.MethodExpression |
getFilterMethod() |
String |
getFilterName()
Retrieves the charset of the current exporting action.
|
ExportFormatInfo |
getFormatInfo()
Returns ExportFormatInfo of the current export
|
int |
getRegularColNumber()
Gets the number of regular columns
|
int |
getRowLimit()
Retrieves the maximum allowed number of rows to be exported.
|
javax.servlet.ServletResponse |
getServletResponse()
Gets the ServeletResponse associated with the current export action.
|
String |
getTitle()
Gets the title of the exported document
|
boolean |
isFirstDetailItem()
Checks whether the current item being exported is the first component in
the detail stamp or not.
|
boolean |
isFirstInRow()
Checks whether the current cell being exported is the first cell in row or not.
|
boolean |
isSpanned()
Checks whether the current cell being exported is spanned or not, either by cell before it (colSpan) or above it (rowSpan).
|
void |
setCharset(String charset)
Sets the charset of the current exporting action.
|
void |
setContentType(String contentType)
Sets the content type of this export action.
|
void |
setExportedRowsType(ExportedRowsType exportedRowsType)
Sets the exported row type for the current export action.
|
void |
setFacesContext(javax.faces.context.FacesContext facesContext)
Sets the FacesContext instance to be associated with the current export action.
|
void |
setFileName(String fileName)
Sets the name of the file to export to.
|
void |
setFilterMethod(javax.el.MethodExpression filterMethod) |
void |
setFilterName(String filterName)
Sets the charset of the current exporting action.
|
void |
setFirstDetailItem(boolean firstDetailItem)
Sets the flag to indicate whether the current item being exported is the first
component in the detail stamp or not.
|
void |
setFirstInRow(boolean firstInRow)
Sets the flag that the current cell being exported is the first cell in row or not.
|
void |
setFormatInfo(ExportFormatInfo _formatInfo)
Sets the ExportFormatInfo for the current export
|
void |
setRegularColNumber(int regularColNumber)
Sets the number of regular columns
|
void |
setRowLimit(int rowLimit)
Sets the maximum allowed number of rows to be exported.
|
void |
setServletResponse(javax.servlet.ServletResponse response)
Sets the ServeletResponse to be associated with the current export action.
|
void |
setSpanned(boolean isSpanned)
Sets the flag that the current cell being exported is spanned, either by cell before it (colSpan) or above it (rowSpan).
|
void |
setTitle(String title)
Sets the title of the exported document
|
public boolean isSpanned()
true if the current cell being exported is a spanned.public void setSpanned(boolean isSpanned)
isSpanned - the boolean to set if the current cell is spannedpublic boolean isFirstInRow()
true if the current cell isthe first cell of the row.public void setFirstInRow(boolean firstInRow)
firstInRow - set the flag boolean if the current cell is the first in the row.public String getCharset()
public void setCharset(String charset)
charset - set the charset of the current exporting action.public boolean isFirstDetailItem()
true if the current item is the first component in the details stamp.public void setFirstDetailItem(boolean firstDetailItem)
firstDetailItem - set the flag to indicate the current item being exported is the first component in the the
detail stamp.public ExportedRowsType getExportedRowsType()
public void setExportedRowsType(ExportedRowsType exportedRowsType)
exportedRowsType - exported row type.public String getFileName()
public void setFileName(String fileName)
fileName - the file name to be exported to.public javax.servlet.ServletResponse getServletResponse()
public void setServletResponse(javax.servlet.ServletResponse response)
response - the servlet response to be associated with the current export action.public String getTitle()
public void setTitle(String title)
title - the title of the exported document.public int getRegularColNumber()
public void setRegularColNumber(int regularColNumber)
regularColNumber - the number of regular columns.public javax.faces.context.FacesContext getFacesContext()
public void setFacesContext(javax.faces.context.FacesContext facesContext)
facesContext - the faces context to be associated with the current export action.public String getContentType()
public void setContentType(String contentType)
contentType - the content type of this export action.public int getRowLimit()
public void setRowLimit(int rowLimit)
rowLimit - maximum allowed number of rows to be exported. -1 indicating no limit.public javax.el.MethodExpression getFilterMethod()
public void setFilterMethod(javax.el.MethodExpression filterMethod)
public String getFilterName()
public void setFilterName(String filterName)
filterName - the charset of the current exporting action.public void setFormatInfo(ExportFormatInfo _formatInfo)
_formatInfo - the ExportFormatInfo for the current exportpublic ExportFormatInfo getFormatInfo()