1 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 oldValue; 34 35 private Object 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 getNewValue() { 56 return newValue; 57 } 58 59 public void setNewValue(Object newValue) { 60 this.newValue = newValue; 61 } 62 63 public Object getOldValue() { 64 return oldValue; 65 } 66 67 public void setOldValue(Object oldValue) { 68 this.oldValue = oldValue; 69 } 70 71 74 public int getTimeStamp() { 75 return timeStamp; 76 } 77 78 81 public IWorkerStatusController getSource() { 82 return source; 83 } 84 } 85 | Popular Tags |