Package net.suberic.pooka.event

Examples of net.suberic.pooka.event.MessageLoadedEvent


   * 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();
        }
View Full Code Here

TOP

Related Classes of net.suberic.pooka.event.MessageLoadedEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.