com.threerings.crowd.chat.client
Class ChatDirector.FilterMessageOp

java.lang.Object
  extended by com.threerings.crowd.chat.client.ChatDirector.FilterMessageOp
All Implemented Interfaces:
ObserverList.ObserverOp<ChatFilter>
Enclosing class:
ChatDirector

protected static class ChatDirector.FilterMessageOp
extends Object
implements ObserverList.ObserverOp<ChatFilter>

An operation that checks with all chat filters to properly filter a message prior to sending to the server or displaying.


Field Summary
protected  String _msg
           
protected  Name _otherUser
           
protected  boolean _out
           
 
Constructor Summary
protected ChatDirector.FilterMessageOp()
           
 
Method Summary
 boolean apply(ChatFilter observer)
           
 String getMessage()
           
 void setMessage(String msg, Name otherUser, boolean outgoing)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_otherUser

protected Name _otherUser

_msg

protected String _msg

_out

protected boolean _out
Constructor Detail

ChatDirector.FilterMessageOp

protected ChatDirector.FilterMessageOp()
Method Detail

setMessage

public void setMessage(String msg,
                       Name otherUser,
                       boolean outgoing)

apply

public boolean apply(ChatFilter observer)
Specified by:
apply in interface ObserverList.ObserverOp<ChatFilter>

getMessage

public String getMessage()