org.relayirc.chatengine
Class ChatEngineEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--org.relayirc.chatengine.ChatEngineEvent

public class ChatEngineEvent
extends java.util.EventObject

Event fired by a ChatEngine. Has either a Channel object, a Server object, a string status message or no value; other fields will be null.

See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ChatEngineEvent(ChatEngine src)
          Event with no associated value.
ChatEngineEvent(ChatEngine src, Channel channel)
          Event associated with a channel.
ChatEngineEvent(ChatEngine src, Server server)
          Event associated with server.
ChatEngineEvent(ChatEngine src, java.lang.String message)
          Event associated with status message.
 
Method Summary
 Channel getChannel()
          Get associated Channel object, or null if not applicable.
 java.lang.String getMessage()
          Get associated message, or null if not applicable.
 Server getServer()
          Get associated Server object, or null if not applicable.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChatEngineEvent

public ChatEngineEvent(ChatEngine src)
Event with no associated value.

ChatEngineEvent

public ChatEngineEvent(ChatEngine src,
                       Channel channel)
Event associated with a channel.

ChatEngineEvent

public ChatEngineEvent(ChatEngine src,
                       Server server)
Event associated with server.

ChatEngineEvent

public ChatEngineEvent(ChatEngine src,
                       java.lang.String message)
Event associated with status message. ChatEngine sends out status messages as events.
Method Detail

getChannel

public Channel getChannel()
Get associated Channel object, or null if not applicable.

getServer

public Server getServer()
Get associated Server object, or null if not applicable.

getMessage

public java.lang.String getMessage()
Get associated message, or null if not applicable.