|
|||||||||
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.AtomEntriesTableExportProvider
public class AtomEntriesTableExportProvider
Adapts a UIData
component to an ITableContentProvider
,
specialized for exporting as atom (syndication feed) entries.
Field Summary | |
---|---|
protected Map |
m_atomKeysToDataKeys
Mapping of atom keys names to original key names. |
protected Object[] |
m_atomPropertyKeys
Array of aggregate property keys. |
protected String |
m_content
Cached current row content. |
protected boolean |
m_generateContent
True to autogenerate content. |
protected boolean |
m_generateLinks
True to autogenerate links. |
protected static Pattern |
RE_LINKS
|
protected static Pattern |
RE_SCRIPTS
|
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 | |
---|---|
AtomEntriesTableExportProvider()
|
|
AtomEntriesTableExportProvider(UIData table)
|
Method Summary | |
---|---|
protected String |
generateContent()
|
protected List |
generateLinks()
|
Object[] |
getPropertyKeys()
Returns list of properties supported by this content provider. |
protected Map |
getRemappedKeys()
|
Class |
getType(Object propertyKey)
Returns java type of the given property |
Object |
getValue(Object propertyKey)
Returns value of the given property |
boolean |
hasProperty(Object propertyKey)
Checks if the given property is supported by this content provider |
void |
refresh()
|
protected void |
remapProperty(String property,
Set original,
Set remapped)
|
void |
setRowIndex(int index)
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, getCurrentRow, getHTMLResponseBuffer, getResponseBuffer, getRowCount, getRowIndex, getRowVariable, getTable, isRowAvailable, 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 static final Pattern RE_SCRIPTS
protected static final Pattern RE_LINKS
protected boolean m_generateContent
protected boolean m_generateLinks
protected Object[] m_atomPropertyKeys
protected Map m_atomKeysToDataKeys
protected String m_content
Constructor Detail |
---|
public AtomEntriesTableExportProvider()
public AtomEntriesTableExportProvider(UIData table)
Method Detail |
---|
public Object[] getPropertyKeys()
IContentProvider
Object[0]
,
never null.
getPropertyKeys
in interface IContentProvider
getPropertyKeys
in class DataTableExportProvider
String
or Integer
public Class getType(Object propertyKey) throws PropertyNotFoundException
IContentProvider
getType
in interface IContentProvider
getType
in class DataTableExportProvider
propertyKey
- the property key of type String
or Integer
Class
PropertyNotFoundException
- if property is not supportedpublic 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 boolean hasProperty(Object propertyKey)
IContentProvider
hasProperty
in interface IContentProvider
hasProperty
in class DataTableExportProvider
propertyKey
- property key of type String
or Integer
true
if property is supportedpublic void setRowIndex(int index)
ITableContentProvider
setRowIndex
in interface ITableContentProvider
setRowIndex
in class DataTableExportProvider
DataModel
public void refresh() throws ContentProviderException
refresh
in class DataTableExportProvider
ContentProviderException
protected String generateContent()
protected List generateLinks()
protected Map getRemappedKeys()
protected void remapProperty(String property, Set original, Set remapped)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |