⇒ Index (Frames) | ⇒ Index (No Frames) | ⇒ Package | ⇒ Package Tree | ⇒ Full Tree 
com.tildemh.debbug

Interface ListingListener


publicinterface ListingListener

Interface for events related to a listing object.

This is released under the terms of the GNU Lesser General Public License (LGPL). See the COPYING file for details.

Author:
© Mark Howard <mh@debian.org> 2002

Method Summary

void

bugAdded(Listing listing,Bug bug)

Called when a bug is added to the listing for the first time.

void

bugChanged(Listing listing,Bug bug)

Called when a modification is made to a bug in the listing (including change of read/unread status) (excluding addition or removal of bugs).

void

bugCountsChanged(Listing listing)

Called whenever the numbers of bugs of each type (including number of read bugs) changes.

void

bugRemoved(Listing listing,Integer bugNumber)

Called when a bug is removed from the listing (e.g.

void

downloadingListing(Listing listing)

Called occasionally when downloading a package listing.

void

downloadingListingBug(Listing listing,Integer bugNumber,int pending,int total)

Called at the start of te download of each bug report from the server as part of a listing update process.

void

interpretingListing(Listing listing)

Called at the start of interpreting the listing - deciding which bugs are new, modified or removed.

boolean

listingException(Listing listing,Exception e)

Called when an exception occurred while updating the report.

void

listingUpdateDone(Listing listing)

Called when the listing has completed it's interactions with the server.

void

listingUpdateStart(Listing listing)

Called when the listing is about to contact the server to perform an update.

void

loadReportsDone(Listing listing)

Called when a listing has completed loading all reports into memory (and so called bugAdded for all of them).

Method Details

bugAdded

publicvoidbugAdded(Listing listing,Bug bug)

Called when a bug is added to the listing for the first time.

Parameters:
listing
bug

bugChanged

publicvoidbugChanged(Listing listing,Bug bug)

Called when a modification is made to a bug in the listing (including change of read/unread status) (excluding addition or removal of bugs).

Parameters:
listing
bug

bugCountsChanged

publicvoidbugCountsChanged(Listing listing)

Called whenever the numbers of bugs of each type (including number of read bugs) changes. If this is likely to happen a lot in a short period of time (e.g. when loading a listing from disk), it may not be called for every change.

Parameters:
listing

bugRemoved

publicvoidbugRemoved(Listing listing,Integer bugNumber)

Called when a bug is removed from the listing (e.g. when the server says the bug has been fixed for a list of open reports)

Parameters:
listing
bugNumber

downloadingListing

publicvoiddownloadingListing(Listing listing)

Called occasionally when downloading a package listing. This may be used as part of a progress screen.

Parameters:
listing

downloadingListingBug

publicvoiddownloadingListingBug(Listing listing,Integer bugNumber,int pending,int total)

Called at the start of te download of each bug report from the server as part of a listing update process.

Parameters:
listing - The number of the bug being downloaded
bugNumber - Number of bugs downloaded so far + 1
pending - Number of bugs to be downloaded.
total

interpretingListing

publicvoidinterpretingListing(Listing listing)

Called at the start of interpreting the listing - deciding which bugs are new, modified or removed.

Parameters:
listing

listingException

publicbooleanlistingException(Listing listing,Exception e)

Called when an exception occurred while updating the report.

Parameters:
listing
e
Returns:
true if you want the execution to continue, false otherwise.

listingUpdateDone

publicvoidlistingUpdateDone(Listing listing)

Called when the listing has completed it's interactions with the server.

Parameters:
listing

listingUpdateStart

publicvoidlistingUpdateStart(Listing listing)

Called when the listing is about to contact the server to perform an update.

Parameters:
listing

loadReportsDone

publicvoidloadReportsDone(Listing listing)

Called when a listing has completed loading all reports into memory (and so called bugAdded for all of them). This can be used to flush queues.

Parameters:
listing