KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > tools > upgrade > common > LogMessageEvent


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 /*
25  * LogMessageEvent.java
26  *
27  */

28
29 package com.sun.enterprise.tools.upgrade.common;
30
31 import java.util.logging.LogRecord JavaDoc;
32
33 /**
34  *
35  * @author paradhya
36  * @version
37  */

38 public class LogMessageEvent extends java.util.EventObject JavaDoc {
39
40     private String JavaDoc message;
41     
42     // This indicates 0 to 100%
43
// This state is currently not being updated. FIX IT
44
private int progressState;
45     private LogRecord JavaDoc logRecord;
46     
47     
48     /** Creates new LogMessageEvent */
49     public LogMessageEvent(java.lang.Object JavaDoc source) {
50         super(source);
51     }
52     public LogMessageEvent(java.lang.Object JavaDoc source, String JavaDoc msg) {
53         super(source);
54         this.message = msg;
55     }
56     public String JavaDoc getMessage() {
57         return this.message;
58     }
59     
60     public void setMessage(String JavaDoc obj1) {
61         this.message = obj1;
62     }
63     public int getProgressState() {
64         return this.progressState;
65     }
66     
67     public void setProgressState(int st) {
68         this.progressState = st;
69     }
70     
71     public java.util.logging.LogRecord JavaDoc getLogRecord() {
72         return logRecord;
73     }
74
75     public void setLogRecord(java.util.logging.LogRecord JavaDoc logRecord) {
76         this.logRecord = logRecord;
77     }
78     
79 }
80
Popular Tags