SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

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

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

public class AdHocChatRoomListChangeEvent
extends EventObject

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

Author:
Valentin Martinet
See Also:
Serialized Form

Field Summary
static int AD_HOC_CHAT_ROOM_ADDED
          Indicates that the AdHocChatRoomListChangeEvent instance was triggered by adding a AdHocChatRoom in the gui.
static int AD_HOC_CHAT_ROOM_CHANGED
          Indicates that the AdHocChatRoomListChangeEvent instance was triggered by changing a AdHocChatRoom in the gui (like changing its status, etc.).
static int AD_HOC_CHAT_ROOM_REMOVED
          Indicates that the AdHocChatRoomListChangeEvent instance was triggered by removing a AdHocChatRoom from the gui.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AdHocChatRoomListChangeEvent(AdHocChatRoomWrapper source, int eventID)
          Creates a new AdHocChatRoom event according to the specified parameters.
 
Method Summary
 int getEventID()
          Returns an event id specifying whether the type of this event (e.g.
 AdHocChatRoomWrapper getSourceAdHocChatRoom()
          Returns the source AdHocChatRoom.
 String toString()
          Returns a String representation of this GuiAdHocChatRoomEvent.
 
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

AD_HOC_CHAT_ROOM_ADDED

public static final int AD_HOC_CHAT_ROOM_ADDED
Indicates that the AdHocChatRoomListChangeEvent instance was triggered by adding a AdHocChatRoom in the gui.

See Also:
Constant Field Values

AD_HOC_CHAT_ROOM_REMOVED

public static final int AD_HOC_CHAT_ROOM_REMOVED
Indicates that the AdHocChatRoomListChangeEvent instance was triggered by removing a AdHocChatRoom from the gui.

See Also:
Constant Field Values

AD_HOC_CHAT_ROOM_CHANGED

public static final int AD_HOC_CHAT_ROOM_CHANGED
Indicates that the AdHocChatRoomListChangeEvent instance was triggered by changing a AdHocChatRoom in the gui (like changing its status, etc.).

See Also:
Constant Field Values
Constructor Detail

AdHocChatRoomListChangeEvent

public AdHocChatRoomListChangeEvent(AdHocChatRoomWrapper source,
                                    int eventID)
Creates a new AdHocChatRoom event according to the specified parameters.

Parameters:
source - the AdHocChatRoom instance that is added to the AdHocChatRoomsList
eventID - one of the AD_HOC_CHAT_ROOM_XXX static fields indicating the nature of the event.
Method Detail

getSourceAdHocChatRoom

public AdHocChatRoomWrapper getSourceAdHocChatRoom()
Returns the source AdHocChatRoom.

Returns:
the source AdHocChatRoom.

toString

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

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

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.

SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

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