1 19 package org.netbeans.modules.xml.refactoring.ui.j.api; 20 21 import java.util.EventObject ; 22 23 27 public final class ProgressEvent extends EventObject { 28 public static final long serialVersionUID = 1L; 29 30 public static final int START = 1; 31 32 public static final int STEP = 2; 33 34 public static final int STOP = 4; 35 36 private final int eventId; 38 private final int operationType; 40 private final int count; 42 43 47 public ProgressEvent(Object source, int eventId) { 48 this(source, eventId, 0, 0); 49 } 50 51 58 public ProgressEvent(Object source, int eventId, int operationType, int count) { 59 super(source); 60 this.eventId = eventId; 61 this.operationType = operationType; 62 this.count = count; 63 } 64 65 68 public int getEventId() { 69 return eventId; 70 } 71 72 76 public int getOperationType() { 77 return operationType; 78 } 79 80 85 public int getCount() { 86 return count; 87 } 88 } 89 | Popular Tags |