* Displays that a message has been loaded.
*
* Defined in net.suberic.pooka.event.MessageLoadedListener.
*/
public void handleMessageLoaded(MessageLoadedEvent e) {
final MessageLoadedEvent event = e;
Runnable runMe = new Runnable() {
public void run() {
if (event.getType() == MessageLoadedEvent.LOADING_STARTING) {
if (getFolderStatusBar().getTracker() != null) {
getFolderStatusBar().setTracker(new LoadMessageTracker(event.getLoadedMessageCount(), 0, event.getNumMessages()));
getFolderStatusBar().getLoaderPanel().add(getFolderStatusBar().getTracker());
}
} else if (event.getType() == MessageLoadedEvent.LOADING_COMPLETE) {
if (getFolderStatusBar().getTracker() != null) {
getFolderStatusBar().getLoaderPanel().remove(getFolderStatusBar().getTracker());
getFolderStatusBar().setTracker(null);
}
} else if (event.getType() == MessageLoadedEvent.MESSAGES_LOADED) {
if (getFolderStatusBar().getTracker() != null)
getFolderStatusBar().getTracker().handleMessageLoaded(event);
}
getFolderStatusBar().repaint();
}