public class AtomEntriesExportProvider extends PageableExportProvider
Consumers should specify at least the following properties:
Consumers may also specify following standard atom properties:
Modifier and Type | Field and Description |
---|---|
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 |
m_first, m_rows, NO_SORT
m_keys, m_provider, m_var
Constructor and Description |
---|
AtomEntriesExportProvider()
Blank provider.
|
AtomEntriesExportProvider(ITableContentProvider provider,
Map<String,?> keys,
String var)
Provider limiting specified provider to specified keys.
|
Modifier and Type | Method and Description |
---|---|
protected String |
generateContent() |
protected List<Object> |
generateLinks() |
Object[] |
getPropertyKeys()
Returns list of properties supported by this content provider.
|
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() |
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.
|
getFirst, getRowIndex, getRows, getSort, isRowAvailable, setFirst, setRows, setSort
getCurrentRow, getRowCount, getRowVariable, getTableProvider, setRowVariable
createDefaultKeyExpressions, createDefaultKeys, getKeyExpressions, getKeys, getProvider, getVar, isReadOnly, setKeyExpressions, setKeys, setProvider, setValue, setVar, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCurrentRow, getRowCount, getRowVariable, setRowVariable
toString
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 String m_content
public AtomEntriesExportProvider()
public AtomEntriesExportProvider(ITableContentProvider provider, Map<String,?> keys, String var)
public Object[] getPropertyKeys()
IContentProvider
Object[0]
,
never null.getPropertyKeys
in interface IContentProvider
getPropertyKeys
in class BoundPropertiesContentProvider
String
or Integer
public Class<?> getType(Object propertyKey) throws PropertyNotFoundException
IContentProvider
getType
in interface IContentProvider
getType
in class BoundPropertiesContentProvider
propertyKey
- the property key of type String
or Integer
Class
PropertyNotFoundException
- if property is not supportedpublic Object getValue(Object propertyKey) throws ELException, PropertyNotFoundException
IContentProvider
getValue
in interface IContentProvider
getValue
in class BoundPropertiesContentProvider
propertyKey
- the property key of type String
or Integer
null
PropertyNotFoundException
- if property is not supportedELException
public boolean hasProperty(Object propertyKey)
IContentProvider
hasProperty
in interface IContentProvider
hasProperty
in class BoundPropertiesContentProvider
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 PageableExportProvider
DataModel.getRowIndex()
public void refresh() throws ContentProviderException
ContentProviderException
protected String generateContent()