1 19 package org.netbeans.modules.refactoring.api; 20 21 import java.util.EventObject ; 22 23 27 public final class ProgressEvent extends EventObject { 28 29 public static final int START = 1; 30 31 public static final int STEP = 2; 32 33 public static final int STOP = 4; 34 35 private final int eventId; 37 private final int operationType; 39 private final int count; 41 42 46 public ProgressEvent(Object source, int eventId) { 47 this(source, eventId, 0, 0); 48 } 49 50 57 public ProgressEvent(Object source, int eventId, int operationType, int count) { 58 super(source); 59 this.eventId = eventId; 60 this.operationType = operationType; 61 this.count = count; 62 } 63 64 67 public int getEventId() { 68 return eventId; 69 } 70 71 75 public int getOperationType() { 76 return operationType; 77 } 78 79 84 public int getCount() { 85 return count; 86 } 87 } 88 | Popular Tags |