|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.caf.faces.data.export.DataTableExportProvider
com.webmethods.caf.faces.data.export.CSVTableExportProvider
public class CSVTableExportProvider
Adapts a UIData
component to an ITableContentProvider
,
specialized for exporting as CSV (comma-separated values).
The main specialization is that it provides the first row
as the table's column labels.
Field Summary | |
---|---|
protected int |
m_index
|
Fields inherited from class com.webmethods.caf.faces.data.export.DataTableExportProvider |
---|
m_columnLabelMap, m_columnMap, m_htmlResponseBuffer, m_htmlResponseBufferBackingWriter, m_propertyKeys, m_responseBuffer, m_table, RE_IS_DUMMY_ID, RE_STRIP_COLUMN_FROM_ID |
Constructor Summary | |
---|---|
CSVTableExportProvider()
|
|
CSVTableExportProvider(UIData table)
|
Method Summary | |
---|---|
Object |
getCurrentRow()
Returns wrapped current row object. |
int |
getRowCount()
Return the number of rows of data objects represented by this DataModel. |
int |
getRowIndex()
Return the zero-relative index of the currently selected row. |
Object |
getValue(Object propertyKey)
Returns value of the given property |
boolean |
isRowAvailable()
Return a flag indicating whether there is rowData available at the current rowIndex. |
void |
setRowIndex(int rowIndex)
Set the zero-relative index of the currently selected row, or -1 to indicate that we are not positioned on a row. |
Methods inherited from class com.webmethods.caf.faces.data.export.DataTableExportProvider |
---|
clearHTMLResponseBuffer, clearResponseBuffer, getColumnLabelMap, getColumnMap, getHTMLResponseBuffer, getPropertyKeys, getResponseBuffer, getRowVariable, getTable, getType, hasProperty, refresh, render, renderAsHTML, setRowVariable, setTable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.webmethods.caf.faces.data.IContentProvider |
---|
toString |
Field Detail |
---|
protected int m_index
Constructor Detail |
---|
public CSVTableExportProvider()
public CSVTableExportProvider(UIData table)
Method Detail |
---|
public Object getValue(Object propertyKey) throws EvaluationException, PropertyNotFoundException
IContentProvider
getValue
in interface IContentProvider
getValue
in class DataTableExportProvider
propertyKey
- the property key of type String
or Integer
null
EvaluationException
- if error during property evaluation
PropertyNotFoundException
- if property is not supportedpublic Object getCurrentRow()
ITableContentProvider
Returns wrapped current row object. Can be null
if not data
is available
getCurrentRow
in interface ITableContentProvider
getCurrentRow
in class DataTableExportProvider
ITableContentProvider.isRowAvailable()
public int getRowCount()
ITableContentProvider
Return -1, if the number of rows is unknown, or no wrappedData is available.
getRowCount
in interface ITableContentProvider
getRowCount
in class DataTableExportProvider
DataModel
public int getRowIndex()
ITableContentProvider
If we are not currently positioned on a row, or no wrappedData is available, return -1.
getRowIndex
in interface ITableContentProvider
getRowIndex
in class DataTableExportProvider
DataModel
public boolean isRowAvailable()
ITableContentProvider
isRowAvailable
in interface ITableContentProvider
isRowAvailable
in class DataTableExportProvider
DataModel
public void setRowIndex(int rowIndex)
ITableContentProvider
setRowIndex
in interface ITableContentProvider
setRowIndex
in class DataTableExportProvider
DataModel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |