1 17 package org.columba.core.command; 18 19 import org.columba.api.command.IWorkerStatusChangeListener; 20 import org.columba.api.command.IWorkerStatusController; 21 22 29 public class NullWorkerStatusController implements IWorkerStatusController { 30 35 public void removeWorkerStatusChangeListener( 36 IWorkerStatusChangeListener listener) { 37 39 } 40 41 private static NullWorkerStatusController myInstance; 42 43 protected NullWorkerStatusController() { 44 } 46 47 public static NullWorkerStatusController getInstance() { 48 if (myInstance == null) { 49 myInstance = new NullWorkerStatusController(); 50 } 51 52 return myInstance; 53 } 54 55 58 public void setDisplayText(String text) { 59 } 61 62 65 public void clearDisplayText() { 66 } 68 69 72 public void clearDisplayTextWithDelay() { 73 } 75 76 79 public String getDisplayText() { 80 return null; 81 } 82 83 86 public void setProgressBarMaximum(int max) { 87 } 89 90 93 public void setProgressBarValue(int value) { 94 } 96 97 100 public void resetProgressBar() { 101 } 103 104 107 public void incProgressBarValue() { 108 } 110 111 114 public void incProgressBarValue(int increment) { 115 } 117 118 121 public int getProgessBarMaximum() { 122 return 0; 123 } 124 125 128 public int getProgressBarValue() { 129 return 0; 130 } 131 132 135 public void cancel() { 136 } 138 139 142 public boolean cancelled() { 143 return false; 144 } 145 146 151 public void addWorkerStatusChangeListener(IWorkerStatusChangeListener l) { 152 } 154 155 160 public int getTimeStamp() { 161 return 0; 162 } 163 } 164 | Popular Tags |