com.valhalla.jbother.groupchat
Class GroupParticipantListener

java.lang.Object
  extended by com.valhalla.jbother.groupchat.GroupParticipantListener
All Implemented Interfaces:
org.jivesoftware.smack.PacketListener

public class GroupParticipantListener
extends java.lang.Object
implements org.jivesoftware.smack.PacketListener

Listens for presence packets when you are in a groupchat, and will update the nicklist in a groupchat room. Also, if you are in a private conversation with someone and they sign off, it will let you know.

Version:
1.0
Author:
Adam Olsen

Constructor Summary
GroupParticipantListener(ChatRoomPanel window)
          sets up the packet listener
 
Method Summary
 void nickChange(MUCBuddyStatus user)
           
 void processPacket(org.jivesoftware.smack.packet.Packet packet)
          Processes incoming presence packets (from group chats)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupParticipantListener

public GroupParticipantListener(ChatRoomPanel window)
sets up the packet listener

Method Detail

nickChange

public void nickChange(MUCBuddyStatus user)

processPacket

public void processPacket(org.jivesoftware.smack.packet.Packet packet)
Processes incoming presence packets (from group chats)

Specified by:
processPacket in interface org.jivesoftware.smack.PacketListener