com.centrasite.control.extpt
Class AbstractReportExtensionItemsProvider

java.lang.Object
  extended by com.centrasite.control.extpt.AbstractReportExtensionItemsProvider
All Implemented Interfaces:
ItemsProvider, ReportExtensionItemsProvider
Direct Known Subclasses:
AddRowToMyNotifications

public abstract class AbstractReportExtensionItemsProvider
extends java.lang.Object
implements ReportExtensionItemsProvider

Basic implementation of ReportExtensionItemsProvider This is used to keep a track of the items that are being contributed by the extension


Constructor Summary
AbstractReportExtensionItemsProvider()
           
 
Method Summary
 Item getItem(java.lang.Object object)
          Provide an item to be rendered
 java.util.Collection getItems()
          Get the collection of items contributed by the extension
 boolean isContributedItem(Item item)
          Checks whether the item has been contributed by the extension
 java.util.Collection prepareItems()
          Prepare items to get them in subsequent calls to getItem(Object object)
 void setConnector(Connector connector)
          This method should be used for initialisation purposes
 boolean supportsDelayedRead()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.centrasite.control.extpt.ReportExtensionItemsProvider
getChangedImageURL
 

Constructor Detail

AbstractReportExtensionItemsProvider

public AbstractReportExtensionItemsProvider()
Method Detail

setConnector

public void setConnector(Connector connector)
Description copied from interface: ReportExtensionItemsProvider
This method should be used for initialisation purposes

Specified by:
setConnector in interface ReportExtensionItemsProvider

supportsDelayedRead

public boolean supportsDelayedRead()
Specified by:
supportsDelayedRead in interface ItemsProvider
Returns:
true, if methods prepareItems() and getItem(Object) are supported for lazy reading / cursoring

prepareItems

public java.util.Collection prepareItems()
                                  throws java.lang.Exception
Prepare items to get them in subsequent calls to getItem(Object object)

Specified by:
prepareItems in interface ItemsProvider
Throws:
java.lang.Exception

getItem

public Item getItem(java.lang.Object object)
             throws java.lang.Exception
Provide an item to be rendered

Specified by:
getItem in interface ItemsProvider
Throws:
java.lang.Exception

getItems

public java.util.Collection getItems()
                              throws java.lang.Exception
Get the collection of items contributed by the extension

Specified by:
getItems in interface ItemsProvider
Throws:
java.lang.Exception

isContributedItem

public boolean isContributedItem(Item item)
Checks whether the item has been contributed by the extension

Specified by:
isContributedItem in interface ReportExtensionItemsProvider
Returns:
true if the given item was contributed by this ReportExtensionItemsProvider