KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openharmonise > him > window > messages > MessageEvent


1 /*
2  * The contents of this file are subject to the
3  * Mozilla Public License Version 1.1 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at http://www.mozilla.org/MPL/
6  *
7  * Software distributed under the License is distributed on an "AS IS"
8  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
9  * See the License for the specific language governing rights and
10  * limitations under the License.
11  *
12  * The Initial Developer of the Original Code is Simulacra Media Ltd.
13  * Portions created by Simulacra Media Ltd are Copyright (C) Simulacra Media Ltd, 2004.
14  *
15  * All Rights Reserved.
16  *
17  * Contributor(s):
18  */

19 package org.openharmonise.him.window.messages;
20
21 /**
22  * Message event that will end up in the console window.
23  *
24  * @author Matthew Large
25  * @version $Revision: 1.1 $
26  *
27  */

28 public class MessageEvent {
29
30     /**
31      * Message text.
32      */

33     private String JavaDoc m_sMessage = null;
34     
35     /**
36      * Message type.
37      */

38     private String JavaDoc m_sMessageType = MessageHandler.TYPE_CONFIRM;
39
40     /**
41      * Constructs a new message event.
42      *
43      * @param sMessage message text.
44      * @param sMessageType message type.
45      */

46     public MessageEvent(String JavaDoc sMessage, String JavaDoc sMessageType) {
47         super();
48         this.m_sMessage = sMessage;
49         this.m_sMessageType = sMessageType;
50     }
51     
52     /**
53      * Gets the message text.
54      *
55      * @return message text.
56      */

57     public String JavaDoc getMessage() {
58         return this.m_sMessage;
59     }
60     
61     /**
62      * Gets the message type.
63      *
64      * @return message type.
65      */

66     public String JavaDoc getType() {
67         return this.m_sMessageType;
68     }
69
70 }
71
Popular Tags