KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > columba > core > command > NullWorkerStatusController


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

17 package org.columba.core.command;
18
19 import org.columba.api.command.IWorkerStatusChangeListener;
20 import org.columba.api.command.IWorkerStatusController;
21
22 /**
23  * @author timo
24  *
25  * To change this generated comment edit the template variable "typecomment":
26  * Window>Preferences>Java>Templates. To enable and disable the creation of type
27  * comments go to Window>Preferences>Java>Code Generation.
28  */

29 public class NullWorkerStatusController implements IWorkerStatusController {
30     /*
31          * (non-Javadoc)
32          *
33          * @see org.columba.api.command.IWorkerStatusController#removeWorkerStatusChangeListener(org.columba.core.gui.statusbar.event.WorkerStatusChangeListener)
34          */

35     public void removeWorkerStatusChangeListener(
36         IWorkerStatusChangeListener listener) {
37     // TODO Auto-generated method stub
38

39     }
40
41     private static NullWorkerStatusController myInstance;
42
43     protected NullWorkerStatusController() {
44     // nothing to do
45
}
46
47     public static NullWorkerStatusController getInstance() {
48     if (myInstance == null) {
49         myInstance = new NullWorkerStatusController();
50     }
51
52     return myInstance;
53     }
54
55     /**
56          * @see org.columba.api.command.IWorkerStatusController#setDisplayText(java.lang.String)
57          */

58     public void setDisplayText(String JavaDoc text) {
59     // nothing to do
60
}
61
62     /**
63          * @see org.columba.api.command.IWorkerStatusController#clearDisplayText()
64          */

65     public void clearDisplayText() {
66     // nothing to do
67
}
68
69     /**
70          * @see org.columba.api.command.IWorkerStatusController#clearDisplayTextWithDelay()
71          */

72     public void clearDisplayTextWithDelay() {
73     // nothing to do
74
}
75
76     /**
77          * @see org.columba.api.command.IWorkerStatusController#getDisplayText()
78          */

79     public String JavaDoc getDisplayText() {
80     return null;
81     }
82
83     /**
84          * @see org.columba.api.command.IWorkerStatusController#setProgressBarMaximum(int)
85          */

86     public void setProgressBarMaximum(int max) {
87     // nothing to do
88
}
89
90     /**
91          * @see org.columba.api.command.IWorkerStatusController#setProgressBarValue(int)
92          */

93     public void setProgressBarValue(int value) {
94     // nothing to do
95
}
96
97     /**
98          * @see org.columba.api.command.IWorkerStatusController#resetProgressBar()
99          */

100     public void resetProgressBar() {
101     // nothing to do
102
}
103
104     /**
105          * @see org.columba.api.command.IWorkerStatusController#incProgressBarValue()
106          */

107     public void incProgressBarValue() {
108     // nothing to do
109
}
110
111     /**
112          * @see org.columba.api.command.IWorkerStatusController#incProgressBarValue(int)
113          */

114     public void incProgressBarValue(int increment) {
115     // nothing to do
116
}
117
118     /**
119          * @see org.columba.api.command.IWorkerStatusController#getProgessBarMaximum()
120          */

121     public int getProgessBarMaximum() {
122     return 0;
123     }
124
125     /**
126          * @see org.columba.api.command.IWorkerStatusController#getProgressBarValue()
127          */

128     public int getProgressBarValue() {
129     return 0;
130     }
131
132     /**
133          * @see org.columba.api.command.IWorkerStatusController#cancel()
134          */

135     public void cancel() {
136     // nothing to do
137
}
138
139     /**
140          * @see org.columba.api.command.IWorkerStatusController#cancelled()
141          */

142     public boolean cancelled() {
143     return false;
144     }
145
146     /*
147          * (non-Javadoc)
148          *
149          * @see org.columba.api.command.IWorkerStatusController#addWorkerStatusChangeListener(org.columba.core.gui.statusbar.event.WorkerStatusChangeListener)
150          */

151     public void addWorkerStatusChangeListener(IWorkerStatusChangeListener l) {
152     // nothing to do
153
}
154
155     /*
156          * (non-Javadoc)
157          *
158          * @see org.columba.api.command.IWorkerStatusController#getTimeStamp()
159          */

160     public int getTimeStamp() {
161     return 0;
162     }
163 }
164
Popular Tags