KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > columba > api > command > WorkerStatusChangedEvent


1 //The contents of this file are subject to the Mozilla Public License Version 1.1
2
//(the "License"); you may not use this file except in compliance with the
3
//License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
4
//
5
//Software distributed under the License is distributed on an "AS IS" basis,
6
//WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
7
//for the specific language governing rights and
8
//limitations under the License.
9
//
10
//The Original Code is "The Columba Project"
11
//
12
//The Initial Developers of the Original Code are Frederik Dietz and Timo Stich.
13
//Portions created by Frederik Dietz and Timo Stich are Copyright (C) 2003.
14
//
15
//All Rights Reserved.
16
package org.columba.api.command;
17
18 public class WorkerStatusChangedEvent {
19     public final static int DISPLAY_TEXT_CHANGED = 0;
20
21     public final static int PROGRESSBAR_VALUE_CHANGED = 1;
22
23     public final static int PROGRESSBAR_MAXANDVALUE_CHANGED = 2;
24
25     public final static int PROGRESSBAR_MAX_CHANGED = 3;
26
27     public final static int FINISHED = 4;
28
29     public final static int DISPLAY_TEXT_CLEARED = 5;
30
31     private int type;
32
33     private Object JavaDoc oldValue;
34
35     private Object JavaDoc newValue;
36
37     private int timeStamp;
38
39     private IWorkerStatusController source;
40
41     public WorkerStatusChangedEvent(IWorkerStatusController source,
42             int timeStamp) {
43         this.timeStamp = timeStamp;
44         this.source = source;
45     }
46
47     public int getType() {
48         return type;
49     }
50
51     public void setType(int type) {
52         this.type = type;
53     }
54
55     public Object JavaDoc getNewValue() {
56         return newValue;
57     }
58
59     public void setNewValue(Object JavaDoc newValue) {
60         this.newValue = newValue;
61     }
62
63     public Object JavaDoc getOldValue() {
64         return oldValue;
65     }
66
67     public void setOldValue(Object JavaDoc oldValue) {
68         this.oldValue = oldValue;
69     }
70
71     /**
72      * @return Returns the timeStamp.
73      */

74     public int getTimeStamp() {
75         return timeStamp;
76     }
77
78     /**
79      * @return Returns the source.
80      */

81     public IWorkerStatusController getSource() {
82         return source;
83     }
84 }
85
Popular Tags