org.xnap.chat
Class ChannelEvent

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

public class ChannelEvent
extends java.util.EventObject

An event that characterizes a change in a Channel object.

See Also:
Serialized Form

Field Summary
static int CHANNEL_JOINED
           
static int CHANNEL_PARTED
           
static int MESSAGE_RECEIVED
           
static int MESSAGE_TYPE_ACTION_MESSAGE
           
static int MESSAGE_TYPE_ERROR
           
static int MESSAGE_TYPE_INFO
           
static int MESSAGE_TYPE_MESSAGE
           
static int PEER_ADDED
           
static int PEER_CHANGED
           
static int PEER_REMOVED
           
static int TOPIC_CHANGED
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ChannelEvent(java.lang.Object source, int id)
           
ChannelEvent(java.lang.Object source, int id, Peer peer)
           
ChannelEvent(java.lang.Object source, Peer peer, java.lang.String message, int messageType)
           
ChannelEvent(java.lang.Object source, java.lang.String topic)
           
 
Method Summary
 int getID()
           
 java.lang.String getMessage()
           
 int getMessageType()
           
 Peer getPeer()
           
 java.lang.String getTopic()
           
 
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

MESSAGE_RECEIVED

public static final int MESSAGE_RECEIVED
See Also:
Constant Field Values

PEER_ADDED

public static final int PEER_ADDED
See Also:
Constant Field Values

PEER_REMOVED

public static final int PEER_REMOVED
See Also:
Constant Field Values

TOPIC_CHANGED

public static final int TOPIC_CHANGED
See Also:
Constant Field Values

PEER_CHANGED

public static final int PEER_CHANGED
See Also:
Constant Field Values

CHANNEL_JOINED

public static final int CHANNEL_JOINED
See Also:
Constant Field Values

CHANNEL_PARTED

public static final int CHANNEL_PARTED
See Also:
Constant Field Values

MESSAGE_TYPE_MESSAGE

public static final int MESSAGE_TYPE_MESSAGE
See Also:
Constant Field Values

MESSAGE_TYPE_INFO

public static final int MESSAGE_TYPE_INFO
See Also:
Constant Field Values

MESSAGE_TYPE_ERROR

public static final int MESSAGE_TYPE_ERROR
See Also:
Constant Field Values

MESSAGE_TYPE_ACTION_MESSAGE

public static final int MESSAGE_TYPE_ACTION_MESSAGE
See Also:
Constant Field Values
Constructor Detail

ChannelEvent

public ChannelEvent(java.lang.Object source,
                    Peer peer,
                    java.lang.String message,
                    int messageType)

ChannelEvent

public ChannelEvent(java.lang.Object source,
                    int id,
                    Peer peer)

ChannelEvent

public ChannelEvent(java.lang.Object source,
                    java.lang.String topic)

ChannelEvent

public ChannelEvent(java.lang.Object source,
                    int id)
Method Detail

getID

public int getID()

getMessage

public java.lang.String getMessage()

getMessageType

public int getMessageType()

getPeer

public Peer getPeer()

getTopic

public java.lang.String getTopic()


Copyright © 2001-2005 XNap Team. All Rights Reserved.