001 package com.croftsoft.apps.chat.event;
002
003 import com.croftsoft.core.lang.NullArgumentException;
004
005 /*********************************************************************
006 * An avatar is talking.
007 *
008 * @version
009 * 2003-06-11
010 * @since
011 * 2003-06-11
012 * @author
013 * <a href="https://www.croftsoft.com/">David Wallace Croft</a>
014 *********************************************************************/
015
016 public final class TalkEvent
017 extends AbstractEvent
018 //////////////////////////////////////////////////////////////////////
019 //////////////////////////////////////////////////////////////////////
020 {
021
022 private static final long serialVersionUID = 0L;
023
024 //
025
026 private final String text;
027
028 //////////////////////////////////////////////////////////////////////
029 //////////////////////////////////////////////////////////////////////
030
031 public TalkEvent ( String text )
032 //////////////////////////////////////////////////////////////////////
033 {
034 NullArgumentException.check ( this.text = text );
035 }
036
037 //////////////////////////////////////////////////////////////////////
038 //////////////////////////////////////////////////////////////////////
039
040 public String getText ( ) { return text; }
041
042 //////////////////////////////////////////////////////////////////////
043 //////////////////////////////////////////////////////////////////////
044 }