01: package it.geosolutions.utils.progress;
02:
03: import java.util.EventObject;
04:
05: /**
06: * @author Simone Giannecchini
07: *
08: */
09: public class ProcessingEvent extends EventObject {
10:
11: /**
12: *
13: */
14: private static final long serialVersionUID = 6930580659705360225L;
15:
16: private String message = null;
17:
18: private double percentage = 0;
19:
20: /**
21: * @param source
22: */
23: public ProcessingEvent(final Object source, final String message,
24: final double percentage) {
25: super (source);
26: this .message = message;
27: this .percentage = percentage;
28: }
29:
30: public double getPercentage() {
31: return percentage;
32: }
33:
34: public String getMessage() {
35: return message;
36: }
37:
38: }
|