KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > tool > common > event > ProgressEvent


1
2 /*
3  * Enhydra Java Application Server Project
4  *
5  * The contents of this file are subject to the Enhydra Public License
6  * Version 1.1 (the "License"); you may not use this file except in
7  * compliance with the License. You may obtain a copy of the License on
8  * the Enhydra web site ( http://www.enhydra.org/ ).
9  *
10  * Software distributed under the License is distributed on an "AS IS"
11  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
12  * the License for the specific terms governing rights and limitations
13  * under the License.
14  *
15  * The Initial Developer of the Enhydra Application Server is Lutris
16  * Technologies, Inc. The Enhydra Application Server and portions created
17  * by Lutris Technologies, Inc. are Copyright Lutris Technologies, Inc.
18  * All Rights Reserved.
19  *
20  * Contributor(s):
21  *
22  */

23 package org.enhydra.tool.common.event;
24
25 import java.util.EventObject JavaDoc;
26
27 public class ProgressEvent extends EventObject JavaDoc {
28     private String JavaDoc message = new String JavaDoc ();
29     private int progress = 0;
30
31     public ProgressEvent (Object JavaDoc source, int p, String JavaDoc m) {
32         super (source);
33
34         progress = p;
35         message = m;
36     }
37
38     public int getProgress () {
39         return progress;
40     }
41
42     public String JavaDoc getMessage () {
43         return message;
44     }
45
46 }
47
48
Popular Tags