public abstract class DefaultReportCollectionListener extends java.lang.Object implements ReportCollectionListener
ReportCollectionListener
interface.
Works with the ItemsProvider
and ReportCollection
instances.Constructor and Description |
---|
DefaultReportCollectionListener(com.centrasite.control.discovery.ItemsProvider provider,
ReportCollection reportCollection) |
Modifier and Type | Method and Description |
---|---|
int |
getNumberOfItems() |
void |
initialize()
Clears the
ReportCollection , initializes it with null items
and prepares all items of the ItemsProvider . |
void |
prepareAllItems(ReportCollection collection)
Prepares all items of the given
ReportCollection . |
void |
prepareItems(ReportCollection collection,
int topIndex,
int rowCount)
Prepares rowCounf number of items of the given collection starting from the given index.
|
void |
removedLine(int line)
Notifies this listener that line with the given index has been removed from the collection.
|
public DefaultReportCollectionListener(com.centrasite.control.discovery.ItemsProvider provider, ReportCollection reportCollection)
public void initialize()
ReportCollection
, initializes it with null items
and prepares all items of the ItemsProvider
.initialize
in interface ReportCollectionListener
ReportCollectionListener.initialize()
public void prepareAllItems(ReportCollection collection)
ReportCollectionListener
ReportCollection
.prepareAllItems
in interface ReportCollectionListener
ReportCollectionListener.initialize()
public void prepareItems(ReportCollection collection, int topIndex, int rowCount)
ReportCollectionListener
prepareItems
in interface ReportCollectionListener
topIndex
- Index to start from.rowCount
- Number of items to be prepared.ReportCollectionListener.initialize()
public void removedLine(int line)
ReportCollectionListener
removedLine
in interface ReportCollectionListener
ReportCollectionListener.initialize()
public int getNumberOfItems()