KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > suberic > pooka > event > MessageLoadedEvent


1 package net.suberic.pooka.event;
2
3 import net.suberic.pooka.thread.LoadMessageThread;
4
5 public class MessageLoadedEvent {
6   LoadMessageThread source;
7   int type;
8   int loadedMessageCount = 0;
9   int numMessages = 0;
10   
11   public static int LOADING_STARTING = 0;
12   public static int LOADING_COMPLETE = 1;
13   public static int MESSAGES_LOADED = 2;
14   
15   public MessageLoadedEvent(LoadMessageThread sourceThread, int eventType, int count, int max) {
16     source = sourceThread;
17     type = eventType;
18     loadedMessageCount = count;
19     numMessages = max;
20   }
21   
22   public LoadMessageThread getSource() {
23     return source;
24   }
25   
26   public int getType() {
27     return type;
28   }
29   
30   public int getLoadedMessageCount() {
31     return loadedMessageCount;
32   }
33   
34   public int getNumMessages() {
35     return numMessages;
36   }
37   
38 }
39
Popular Tags