com.centrasite.control.adapters.collection
Class DefaultReportCollectionListener

java.lang.Object
  extended by com.centrasite.control.adapters.collection.DefaultReportCollectionListener
All Implemented Interfaces:
ReportCollectionListener
Direct Known Subclasses:
LazyGridListener, LazyTreeListener

public abstract class DefaultReportCollectionListener
extends java.lang.Object
implements ReportCollectionListener

Default implementation of the ReportCollectionListener interface. Works with the ItemsProvider and ReportCollection instances.


Constructor Summary
DefaultReportCollectionListener(com.centrasite.control.discovery.ItemsProvider provider, ReportCollection reportCollection)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultReportCollectionListener

public DefaultReportCollectionListener(com.centrasite.control.discovery.ItemsProvider provider,
                                       ReportCollection reportCollection)
Method Detail

initialize

public void initialize()
Clears the ReportCollection, initializes it with null items and prepares all items of the ItemsProvider.

Specified by:
initialize in interface ReportCollectionListener
See Also:
ReportCollectionListener.initialize()

prepareAllItems

public void prepareAllItems(ReportCollection collection)
Description copied from interface: ReportCollectionListener
Prepares all items of the given ReportCollection.

Specified by:
prepareAllItems in interface ReportCollectionListener
See Also:
ReportCollectionListener.initialize()

prepareItems

public void prepareItems(ReportCollection collection,
                         int topIndex,
                         int rowCount)
Description copied from interface: ReportCollectionListener
Prepares rowCounf number of items of the given collection starting from the given index.

Specified by:
prepareItems in interface ReportCollectionListener
topIndex - Index to start from.
rowCount - Number of items to be prepared.
See Also:
ReportCollectionListener.initialize()

removedLine

public void removedLine(int line)
Description copied from interface: ReportCollectionListener
Notifies this listener that line with the given index has been removed from the collection.

Specified by:
removedLine in interface ReportCollectionListener
See Also:
ReportCollectionListener.initialize()

getNumberOfItems

public int getNumberOfItems()
See Also:
ReportCollectionListener.initialize()