MessageEvent.java :  » Content-Management-System » harmonise » org » openharmonise » him » window » messages » Java Open Source

Java Open Source » Content Management System » harmonise 
harmonise » org » openharmonise » him » window » messages » MessageEvent.java
/*
 * The contents of this file are subject to the 
 * Mozilla Public License Version 1.1 (the "License"); 
 * you may not use this file except in compliance with the License. 
 * You may obtain a copy of the License at http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. 
 * See the License for the specific language governing rights and 
 * limitations under the License.
 *
 * The Initial Developer of the Original Code is Simulacra Media Ltd.
 * Portions created by Simulacra Media Ltd are Copyright (C) Simulacra Media Ltd, 2004.
 *
 * All Rights Reserved.
 *
 * Contributor(s):
 */
package org.openharmonise.him.window.messages;

/**
 * Message event that will end up in the console window.
 * 
 * @author Matthew Large
 * @version $Revision: 1.1 $
 *
 */
public class MessageEvent {

  /**
   * Message text.
   */
  private String m_sMessage = null;
  
  /**
   * Message type.
   */
  private String m_sMessageType = MessageHandler.TYPE_CONFIRM;

  /**
   * Constructs a new message event.
   * 
   * @param sMessage message text.
   * @param sMessageType message type.
   */
  public MessageEvent(String sMessage, String sMessageType) {
    super();
    this.m_sMessage = sMessage;
    this.m_sMessageType = sMessageType;
  }
  
  /**
   * Gets the message text.
   * 
   * @return message text.
   */
  public String getMessage() {
    return this.m_sMessage;
  }
  
  /**
   * Gets the message type.
   * 
   * @return message type.
   */
  public String getType() {
    return this.m_sMessageType;
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.