public class CSVTableExportProvider extends DataTableExportProvider
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.Modifier and Type | Field and Description |
---|---|
protected int |
m_index |
m_columnLabelMap, m_columnMap, m_htmlResponseBuffer, m_htmlResponseBufferBackingWriter, m_propertyKeys, m_responseBuffer, m_table, RE_IS_DUMMY_ID, RE_STRIP_COLUMN_FROM_ID
Constructor and Description |
---|
CSVTableExportProvider() |
CSVTableExportProvider(UIData table) |
Modifier and Type | Method and Description |
---|---|
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.
|
clearHTMLResponseBuffer, clearResponseBuffer, getColumnLabelMap, getColumnMap, getHTMLResponseBuffer, getPropertyKeys, getResponseBuffer, getRowVariable, getTable, getType, hasProperty, refresh, render, renderAsHTML, setRowVariable, setTable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toString
public CSVTableExportProvider()
public CSVTableExportProvider(UIData table)
public Object getValue(Object propertyKey) throws ELException, PropertyNotFoundException
IContentProvider
getValue
in interface IContentProvider
getValue
in class DataTableExportProvider
propertyKey
- the property key of type String
or Integer
null
PropertyNotFoundException
- if property is not supportedELException
public 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.getRowCount()
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.getRowIndex()
public boolean isRowAvailable()
ITableContentProvider
isRowAvailable
in interface ITableContentProvider
isRowAvailable
in class DataTableExportProvider
DataModel.isRowAvailable()
public void setRowIndex(int rowIndex)
ITableContentProvider
setRowIndex
in interface ITableContentProvider
setRowIndex
in class DataTableExportProvider
DataModel.getRowIndex()