|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.dataselectors.export.BaseExportSelectorAdapter
public abstract class BaseExportSelectorAdapter
Base class that contains attributes and methods common to the different actual ExportSelector adapters.
It's an implementation of an ExportSelector adapter for non multidimensional (relational) data.
Field Summary | |
---|---|
protected HTMLExportCSSInfoInterface[] |
cssDefinitions
The HTMLExportCSSInfoInterface objects that contain the info on the CSSs to be exported. |
protected java.lang.String[] |
cssMediaList
The media attributes of the CSSs to be exported together with the data. |
protected java.lang.String[] |
cssMIMEType
The MIME types of the CSSs to be exported together with the data. |
protected java.lang.String[] |
cssTitle
The title attributes of the CSSs to be exported together with the data. |
protected java.lang.String[] |
cssURL
The URLs of the CSSs to be exported together with the data. |
protected java.lang.Object |
dataModel
The model that contains the data to export. |
protected java.lang.String[] |
footers
The footers to export below the data. |
protected int |
fromRow
The ordinal in the model of the first row to be exported. |
protected java.lang.String[] |
headers
The headers to export above the data. |
protected java.lang.String |
includeRows
If all or a subset of the rows in the model have to be exported. |
protected boolean |
isFormattedData
If the data have to be exported formatted or non formatted. |
protected java.lang.String |
outputType
The requested exporting format. |
protected int |
toRow
The ordinal in the model of the last row to be exported. |
Fields inherited from interface com.sas.dataselectors.export.ExportSelectorInterface |
---|
ALL_ROWS, EXCEL_CSV_OUTPUT_TYPE, EXCEL_HTML_OUTPUT_TYPE, EXCEL_TSV_OUTPUT_TYPE, EXCEL_XML_OUTPUT_TYPE, EXPORT_TO, FORMATTED_DATA, MAX_NROWS, MIN_NROWS, NOT_REPEAT_ROW_LABELS, PARTIAL_ROWS, RAW_DATA, REPEAT_ROW_LABELS, SAVE_AS, WORD_HTML_OUTPUT_TYPE, XLSX_OUTPUT_TYPE |
Constructor Summary | |
---|---|
BaseExportSelectorAdapter()
Default constructor. |
Method Summary | |
---|---|
HTMLExportCSSInfoInterface[] |
getCSSInfo()
Given the URLS, the MIME types, the media lists and the titles of the CSS style sheets, stores them into an array of HTMLExportCSSInfoInterface objects and returns the array. |
java.lang.String[] |
getCssMediaList()
returns the media lists of the CSS style sheets. |
java.lang.String[] |
getCssMIMEType()
returns the MIME types of the CSS style sheets. |
java.lang.String[] |
getCssTitle()
returns the titles of the CSS style sheets. |
java.lang.String[] |
getCssURL()
Returns the URLs of the CSS style sheets. |
java.lang.Object |
getDataModel()
Returns the model that contains the data to export. |
java.lang.String[] |
getFooters()
Returns the footers to export below the data. |
int |
getFromRowCount()
If partial rows must be exported it returns the row number of the first row to export. |
java.lang.String[] |
getHeaders()
Returns the headers to export above the data. |
java.lang.String |
getIncludeRows()
Returns the value indicating if all the rows or only partial rows must be exported. |
int |
getNRows()
Returns the number of rows to export |
java.lang.String |
getOutputType()
Returns the output type that has been selected in the selector. |
int |
getStartRow()
Returns the ordinal in the model of the first row to be exported |
int |
getToRowCount()
If partial rows must be exported it returns the row number of the last row to export. |
boolean |
isFormattedData()
Returns true if formatted data must be exported, false otherwise. |
boolean |
isRawDataAvailable()
Deprecated. |
void |
setCssMediaList(java.lang.String[] value)
Sets the media lists of the CSS style sheets. |
void |
setCssMIMEType(java.lang.String[] value)
Sets the MIME types of the CSS style sheets. |
void |
setCssTitle(java.lang.String[] value)
Sets the titles of the CSS style sheets. |
void |
setCssURL(java.lang.String[] value)
Sets the URLs of the CSS style sheets. |
void |
setDataModel(java.lang.Object model)
Sets the model that contains the data to export. |
void |
setFooters(java.lang.String[] footers)
Sets the footers to export below the data. |
void |
setFromRowCount(int fromRow)
If partial rows must be exported it sets the row number of the first row to export. |
void |
setHeaders(java.lang.String[] headers)
Sets the headers to export above the data. |
void |
setIncludeRows(java.lang.String includeRows)
Sets the value that indicates if all the rows or only partial rows must be exported. |
void |
setIsFormattedData(boolean isFormattedData)
Sets the flag indicating if formatted data must be exported. |
void |
setOutputType(java.lang.String outputType)
Sets the output type that has been selected in the selector. |
void |
setToRowCount(int toRow)
If partial rows must be exported it sets the row number of the last row to export. |
Field Detail |
---|
protected java.lang.Object dataModel
protected java.lang.String outputType
ExportSelectorInterface.EXCEL_TSV_OUTPUT_TYPE
,
ExportSelectorInterface.EXCEL_CSV_OUTPUT_TYPE
,
ExportSelectorInterface.EXCEL_XML_OUTPUT_TYPE
,
ExportSelectorInterface.EXCEL_HTML_OUTPUT_TYPE
protected java.lang.String includeRows
ExportSelectorInterface.ALL_ROWS
,
ExportSelectorInterface.PARTIAL_ROWS
protected int fromRow
protected int toRow
protected boolean isFormattedData
protected java.lang.String[] cssURL
Used only when exporting to HTML.
protected java.lang.String[] cssMIMEType
Used only when exporting to HTML.
protected java.lang.String[] cssMediaList
Used only when exporting to HTML.
protected java.lang.String[] cssTitle
Used only when exporting to HTML.
protected HTMLExportCSSInfoInterface[] cssDefinitions
Used only when exporting to HTML.
protected java.lang.String[] headers
protected java.lang.String[] footers
Constructor Detail |
---|
public BaseExportSelectorAdapter()
Method Detail |
---|
public void setDataModel(java.lang.Object model)
model
- the model that contains the data to export.public java.lang.Object getDataModel()
public java.lang.String getOutputType()
ExportSelectorInterface
getOutputType
in interface ExportSelectorInterface
ExportSelectorInterface.EXCEL_TSV_OUTPUT_TYPE
, ExportSelectorInterface.EXCEL_CSV_OUTPUT_TYPE
, ExportSelectorInterface.EXCEL_XML_OUTPUT_TYPE
, ExportSelectorInterface.EXCEL_HTML_OUTPUT_TYPE
public void setOutputType(java.lang.String outputType)
ExportSelectorInterface
setOutputType
in interface ExportSelectorInterface
outputType
- the output type that has been selected in the selector.
Valid values are: ExportSelectorInterface.EXCEL_TSV_OUTPUT_TYPE
, ExportSelectorInterface.EXCEL_CSV_OUTPUT_TYPE
, ExportSelectorInterface.EXCEL_XML_OUTPUT_TYPE
, ExportSelectorInterface.EXCEL_HTML_OUTPUT_TYPE
public java.lang.String getIncludeRows()
ExportSelectorInterface
getIncludeRows
in interface ExportSelectorInterface
ExportSelectorInterface.ALL_ROWS
or ExportSelectorInterface.PARTIAL_ROWS
.public void setIncludeRows(java.lang.String includeRows)
ExportSelectorInterface
setIncludeRows
in interface ExportSelectorInterface
includeRows
- the value indicating if all the rows or only partial rows must be exported.
Possible values are: ExportSelectorInterface.ALL_ROWS
or ExportSelectorInterface.PARTIAL_ROWS
.public int getFromRowCount()
ExportSelectorInterface
getFromRowCount
in interface ExportSelectorInterface
public void setFromRowCount(int fromRow)
ExportSelectorInterface
setFromRowCount
in interface ExportSelectorInterface
fromRow
- the row number of the first row to export.public int getToRowCount()
ExportSelectorInterface
getToRowCount
in interface ExportSelectorInterface
public void setToRowCount(int toRow)
ExportSelectorInterface
setToRowCount
in interface ExportSelectorInterface
toRow
- the row number of the last row to export.public boolean isFormattedData()
ExportSelectorInterface
isFormattedData
in interface ExportSelectorInterface
public void setIsFormattedData(boolean isFormattedData)
ExportSelectorInterface
setIsFormattedData
in interface ExportSelectorInterface
isFormattedData
- true if formatted data must be exported, false otherwise.public int getStartRow()
ExportSelectorInterface
getStartRow
in interface ExportSelectorInterface
public int getNRows()
ExportSelectorInterface
getNRows
in interface ExportSelectorInterface
public boolean isRawDataAvailable()
ExportSelectorInterface
isRawDataAvailable
in interface ExportSelectorInterface
public java.lang.String[] getCssURL()
HTMLExportSelectorInterface
getCssURL
in interface HTMLExportSelectorInterface
public void setCssURL(java.lang.String[] value)
HTMLExportSelectorInterface
setCssURL
in interface HTMLExportSelectorInterface
value
- The URLs of the CSS style sheets.public java.lang.String[] getCssMIMEType()
HTMLExportSelectorInterface
getCssMIMEType
in interface HTMLExportSelectorInterface
public void setCssMIMEType(java.lang.String[] value)
HTMLExportSelectorInterface
setCssMIMEType
in interface HTMLExportSelectorInterface
value
- The MIME types of the CSS style sheets.public java.lang.String[] getCssMediaList()
HTMLExportSelectorInterface
getCssMediaList
in interface HTMLExportSelectorInterface
public void setCssMediaList(java.lang.String[] value)
HTMLExportSelectorInterface
setCssMediaList
in interface HTMLExportSelectorInterface
value
- The media lists of the CSS style sheets.public java.lang.String[] getCssTitle()
HTMLExportSelectorInterface
getCssTitle
in interface HTMLExportSelectorInterface
public void setCssTitle(java.lang.String[] value)
HTMLExportSelectorInterface
setCssTitle
in interface HTMLExportSelectorInterface
value
- The titles of the CSS style sheets.public HTMLExportCSSInfoInterface[] getCSSInfo()
HTMLExportSelectorInterface
HTMLExportCSSInfoInterface
objects and returns the array.
Into the returned array there's one HTMLExportCSSInfoInterface
object for each CSS style sheet.
getCSSInfo
in interface HTMLExportSelectorInterface
HTMLExportCSSInfoInterface
objects containing the info about the CSS style sheets.public void setHeaders(java.lang.String[] headers)
ExportHeadersFootersInterface
setHeaders
in interface ExportHeadersFootersInterface
headers
- the headers to export above the data.public java.lang.String[] getHeaders()
ExportHeadersFootersInterface
getHeaders
in interface ExportHeadersFootersInterface
public java.lang.String[] getFooters()
ExportHeadersFootersInterface
getFooters
in interface ExportHeadersFootersInterface
public void setFooters(java.lang.String[] footers)
ExportHeadersFootersInterface
setFooters
in interface ExportHeadersFootersInterface
footers
- the headers to export below the data.
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |