Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.gui.main.chatroomslist
Class ChatRoomListChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.java.sip.communicator.impl.gui.main.chatroomslist.ChatRoomListChangeEvent
All Implemented Interfaces:
Serializable

public class ChatRoomListChangeEvent
extends EventObject

Parent class for gui chat room events indicating addition and removal of chat rooms in the gui chat rooms list.

Author:
Yana Stamcheva
See Also:
Serialized Form

Field Summary
static int CHAT_ROOM_ADDED
          Indicates that the ChatRoomListChangeEvent instance was triggered by adding a ChatRoom in the gui.
static int CHAT_ROOM_CHANGED
          Indicates that the ChatRoomListChangeEvent instance was triggered by changing a ChatRoom in the gui (like changing its status, etc.).
static int CHAT_ROOM_REMOVED
          Indicates that the ChatRoomListChangeEvent instance was triggered by removing a ChatRoom from the gui.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ChatRoomListChangeEvent(ChatRoomWrapper source, int eventID)
          Creates a new ChatRoom event according to the specified parameters.
 
Method Summary
 int getEventID()
          Returns an event id specifying whether the type of this event (e.g.
 ChatRoomWrapper getSourceChatRoom()
          Returns the source ChatRoom.
 String toString()
          Returns a String representation of this GuiChatRoomEvent.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CHAT_ROOM_ADDED

public static final int CHAT_ROOM_ADDED
Indicates that the ChatRoomListChangeEvent instance was triggered by adding a ChatRoom in the gui.

See Also:
Constant Field Values

CHAT_ROOM_REMOVED

public static final int CHAT_ROOM_REMOVED
Indicates that the ChatRoomListChangeEvent instance was triggered by removing a ChatRoom from the gui.

See Also:
Constant Field Values

CHAT_ROOM_CHANGED

public static final int CHAT_ROOM_CHANGED
Indicates that the ChatRoomListChangeEvent instance was triggered by changing a ChatRoom in the gui (like changing its status, etc.).

See Also:
Constant Field Values
Constructor Detail

ChatRoomListChangeEvent

public ChatRoomListChangeEvent(ChatRoomWrapper source,
                               int eventID)
Creates a new ChatRoom event according to the specified parameters.

Parameters:
source - the ChatRoom instance that is added to the ChatRoomsList
eventID - one of the CHAT_ROOM_XXX static fields indicating the nature of the event.
Method Detail

getSourceChatRoom

public ChatRoomWrapper getSourceChatRoom()
Returns the source ChatRoom.

Returns:
the source ChatRoom.

toString

public String toString()
Returns a String representation of this GuiChatRoomEvent.

Overrides:
toString in class EventObject
Returns:
A String representation of this GuiChatRoomEvent.

getEventID

public int getEventID()
Returns an event id specifying whether the type of this event (e.g. CHAT_ROOM_ADDED or CHAT_ROOM_REMOVED)

Returns:
one of the CHAT_ROOM_XXX int fields of this class.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.