Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.relayirc.chatengine
Class ChatEngineEvent  view ChatEngineEvent download ChatEngineEvent.java

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.relayirc.chatengine.ChatEngineEvent
All Implemented Interfaces:
java.io.Serializable

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.


Field Summary
private  Channel _channel
           
private  java.lang.String _message
           
private  Server _server
           
 
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
 

Field Detail

_channel

private Channel _channel

_server

private Server _server

_message

private java.lang.String _message
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.