public class AtomFeedTableExportProvider extends Object implements IContentProvider, IUpdateableContentProvider
UIData
component to an IContentProvider
,
specialized for exporting as atom (syndication feed) entries.
The specialization includes generating an id, title, subtitle,
author, links, base uri, and language info.Modifier and Type | Field and Description |
---|---|
protected ResponseWriter |
m_responseBuffer
Temporary buffer into which the content of each column is rendered.
|
protected StringWriter |
m_responseBufferBackingWriter
Backing buffer for the
m_responseBuffer . |
protected UIData |
m_table
Table providing export content.
|
protected Map<Object,Object> |
m_values
Property values cache.
|
Constructor and Description |
---|
AtomFeedTableExportProvider() |
AtomFeedTableExportProvider(UIData table) |
Modifier and Type | Method and Description |
---|---|
protected String |
clearResponseBuffer()
Clears the temporary response buffer, returning its content (or "").
|
Object[] |
getPropertyKeys()
Returns list of properties supported by this content provider.
|
protected ResponseWriter |
getResponseBuffer()
Temporary response buffer.
|
UIData |
getTable() |
Class<?> |
getType(Object propertyKey)
Returns java type of the given property
|
Object |
getValue(Object propertyKey)
Returns value of the given property
|
protected Map<Object,Object> |
getValues() |
boolean |
hasProperty(Object propertyKey)
Checks if the given property is supported by this content provider
|
boolean |
isReadOnly(Object propertyKey)
Returns true if the given property is readonly.
|
void |
refresh() |
protected String |
render(UIComponent component)
Renders specified component, returning its content (or "").
|
void |
setTable(UIData table) |
void |
setValue(Object propertyKey,
Object value)
Sets new value of the given property
|
String |
toString()
Returns string representation of content.
|
protected UIData m_table
protected ResponseWriter m_responseBuffer
protected StringWriter m_responseBufferBackingWriter
m_responseBuffer
.public AtomFeedTableExportProvider()
public AtomFeedTableExportProvider(UIData table)
public String toString()
IContentProvider
toString
in interface IContentProvider
toString
in class Object
String
representation of the wrapped contentpublic Object[] getPropertyKeys()
IContentProvider
Object[0]
,
never null.getPropertyKeys
in interface IContentProvider
String
or Integer
public Class<?> getType(Object propertyKey) throws PropertyNotFoundException
IContentProvider
getType
in interface IContentProvider
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
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
propertyKey
- property key of type String
or Integer
true
if property is supportedpublic boolean isReadOnly(Object propertyKey) throws ELException, PropertyNotFoundException
IUpdateableContentProvider
Returns true if the given property is readonly. If it is readonly, IUpdateableContentProvider.setValue(Object, Object)
will
definitely fail.
isReadOnly
in interface IUpdateableContentProvider
propertyKey
- property key of type String
or Integer
PropertyNotFoundException
ELException
public void setValue(Object propertyKey, Object value) throws ELException, PropertyNotFoundException
IUpdateableContentProvider
Sets new value of the given property
setValue
in interface IUpdateableContentProvider
propertyKey
- property key of type String
or Integer
value
- new property valuePropertyNotFoundException
- if property is not foundELException
public void refresh() throws ContentProviderException
ContentProviderException
public UIData getTable()
public void setTable(UIData table)
protected String render(UIComponent component)
protected ResponseWriter getResponseBuffer()
protected String clearResponseBuffer()