001: //The contents of this file are subject to the Mozilla Public License Version 1.1
002: //(the "License"); you may not use this file except in compliance with the
003: //License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
004: //
005: //Software distributed under the License is distributed on an "AS IS" basis,
006: //WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
007: //for the specific language governing rights and
008: //limitations under the License.
009: //
010: //The Original Code is "The Columba Project"
011: //
012: //The Initial Developers of the Original Code are Frederik Dietz and Timo Stich.
013: //Portions created by Frederik Dietz and Timo Stich are Copyright (C) 2003.
014: //
015: //All Rights Reserved.
016:
017: package org.columba.core.command;
018:
019: import org.columba.api.command.IWorkerStatusChangeListener;
020: import org.columba.api.command.IWorkerStatusController;
021:
022: /**
023: * @author timo
024: *
025: * To change this generated comment edit the template variable "typecomment":
026: * Window>Preferences>Java>Templates. To enable and disable the creation of type
027: * comments go to Window>Preferences>Java>Code Generation.
028: */
029: public class NullWorkerStatusController implements
030: IWorkerStatusController {
031: /*
032: * (non-Javadoc)
033: *
034: * @see org.columba.api.command.IWorkerStatusController#removeWorkerStatusChangeListener(org.columba.core.gui.statusbar.event.WorkerStatusChangeListener)
035: */
036: public void removeWorkerStatusChangeListener(
037: IWorkerStatusChangeListener listener) {
038: // TODO Auto-generated method stub
039:
040: }
041:
042: private static NullWorkerStatusController myInstance;
043:
044: protected NullWorkerStatusController() {
045: // nothing to do
046: }
047:
048: public static NullWorkerStatusController getInstance() {
049: if (myInstance == null) {
050: myInstance = new NullWorkerStatusController();
051: }
052:
053: return myInstance;
054: }
055:
056: /**
057: * @see org.columba.api.command.IWorkerStatusController#setDisplayText(java.lang.String)
058: */
059: public void setDisplayText(String text) {
060: // nothing to do
061: }
062:
063: /**
064: * @see org.columba.api.command.IWorkerStatusController#clearDisplayText()
065: */
066: public void clearDisplayText() {
067: // nothing to do
068: }
069:
070: /**
071: * @see org.columba.api.command.IWorkerStatusController#clearDisplayTextWithDelay()
072: */
073: public void clearDisplayTextWithDelay() {
074: // nothing to do
075: }
076:
077: /**
078: * @see org.columba.api.command.IWorkerStatusController#getDisplayText()
079: */
080: public String getDisplayText() {
081: return null;
082: }
083:
084: /**
085: * @see org.columba.api.command.IWorkerStatusController#setProgressBarMaximum(int)
086: */
087: public void setProgressBarMaximum(int max) {
088: // nothing to do
089: }
090:
091: /**
092: * @see org.columba.api.command.IWorkerStatusController#setProgressBarValue(int)
093: */
094: public void setProgressBarValue(int value) {
095: // nothing to do
096: }
097:
098: /**
099: * @see org.columba.api.command.IWorkerStatusController#resetProgressBar()
100: */
101: public void resetProgressBar() {
102: // nothing to do
103: }
104:
105: /**
106: * @see org.columba.api.command.IWorkerStatusController#incProgressBarValue()
107: */
108: public void incProgressBarValue() {
109: // nothing to do
110: }
111:
112: /**
113: * @see org.columba.api.command.IWorkerStatusController#incProgressBarValue(int)
114: */
115: public void incProgressBarValue(int increment) {
116: // nothing to do
117: }
118:
119: /**
120: * @see org.columba.api.command.IWorkerStatusController#getProgessBarMaximum()
121: */
122: public int getProgessBarMaximum() {
123: return 0;
124: }
125:
126: /**
127: * @see org.columba.api.command.IWorkerStatusController#getProgressBarValue()
128: */
129: public int getProgressBarValue() {
130: return 0;
131: }
132:
133: /**
134: * @see org.columba.api.command.IWorkerStatusController#cancel()
135: */
136: public void cancel() {
137: // nothing to do
138: }
139:
140: /**
141: * @see org.columba.api.command.IWorkerStatusController#cancelled()
142: */
143: public boolean cancelled() {
144: return false;
145: }
146:
147: /*
148: * (non-Javadoc)
149: *
150: * @see org.columba.api.command.IWorkerStatusController#addWorkerStatusChangeListener(org.columba.core.gui.statusbar.event.WorkerStatusChangeListener)
151: */
152: public void addWorkerStatusChangeListener(
153: IWorkerStatusChangeListener l) {
154: // nothing to do
155: }
156:
157: /*
158: * (non-Javadoc)
159: *
160: * @see org.columba.api.command.IWorkerStatusController#getTimeStamp()
161: */
162: public int getTimeStamp() {
163: return 0;
164: }
165: }
|