org.relayirc.chatengine
Class ChannelEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.relayirc.chatengine.ChannelEvent
All Implemented Interfaces:
java.io.Serializable

public class ChannelEvent
extends java.util.EventObject

Event fired by a channel. The source of a ChannelEvent is always a Channel object.

See Also:
Channel, ChannelListener, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ChannelEvent(Channel src)
          Event with no associated values.
ChannelEvent(Channel src, java.lang.Object value)
          Event with an optional arbitrary value.
ChannelEvent(Channel src, java.lang.String originNick, java.lang.String originAddress, java.lang.Object value)
          Event with originating user and an optional arbitrary value.
ChannelEvent(Channel src, java.lang.String originNick, java.lang.String originAddress, java.lang.String subjectNick, java.lang.String subjectAddress, java.lang.Object value)
          Event with originating user, destination user and an optional arbitrary value.
 
Method Summary
 java.lang.String getOriginAddress()
          Address of the originating chat user or null if not applicable.
 java.lang.String getOriginNick()
          Nick name of the originating chat user or null if not applicable.
 java.lang.String getSubjectAddress()
          Address of the destination chat user or null if not applicable.
 java.lang.String getSubjectNick()
          Nick name of the chat user or null if not applicable.
 java.lang.Object getValue()
          Arbitrary value associated with event.
 
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

ChannelEvent

public ChannelEvent(Channel src)
Event with no associated values.


ChannelEvent

public ChannelEvent(Channel src,
                    java.lang.Object value)
Event with an optional arbitrary value.


ChannelEvent

public ChannelEvent(Channel src,
                    java.lang.String originNick,
                    java.lang.String originAddress,
                    java.lang.Object value)
Event with originating user and an optional arbitrary value.


ChannelEvent

public ChannelEvent(Channel src,
                    java.lang.String originNick,
                    java.lang.String originAddress,
                    java.lang.String subjectNick,
                    java.lang.String subjectAddress,
                    java.lang.Object value)
Event with originating user, destination user and an optional arbitrary value.

Method Detail

getOriginNick

public java.lang.String getOriginNick()
Nick name of the originating chat user or null if not applicable.


getOriginAddress

public java.lang.String getOriginAddress()
Address of the originating chat user or null if not applicable.


getSubjectNick

public java.lang.String getSubjectNick()
Nick name of the chat user or null if not applicable.


getSubjectAddress

public java.lang.String getSubjectAddress()
Address of the destination chat user or null if not applicable.


getValue

public java.lang.Object getValue()
Arbitrary value associated with event.