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

net.java.sip.communicator.impl.gui.main.chat.conference
Class AdHocChatRoomWrapper

java.lang.Object
  extended by net.java.sip.communicator.impl.gui.main.chat.conference.AdHocChatRoomWrapper

public class AdHocChatRoomWrapper
extends Object

The AdHocChatRoomWrapper is the representation of the AdHocChatRoom in the GUI. It stores the information for the ad-hoc chat room even when the corresponding protocol provider is not connected.

Author:
Valentin Martinet

Constructor Summary
AdHocChatRoomWrapper(AdHocChatRoomProviderWrapper parentProvider, AdHocChatRoom adHocChatRoom)
          Creates a ChatRoomWrapper by specifying the corresponding chat room.
AdHocChatRoomWrapper(AdHocChatRoomProviderWrapper parentProvider, String adHocChatRoomID, String adHocChatRoomName)
          Creates a AdHocChatRoomWrapper by specifying the protocol provider, the identifier and the name of the ad-hoc chat room.
 
Method Summary
 AdHocChatRoom getAdHocChatRoom()
          Returns the AdHocChatRoom that this wrapper represents.
 String getAdHocChatRoomID()
          Returns the identifier of the ad-hoc chat room.
 String getAdHocChatRoomName()
          Returns the ad-hoc chat room name.
 AdHocChatRoomProviderWrapper getParentProvider()
          Returns the parent protocol provider.
 void setAdHocChatRoom(AdHocChatRoom adHocChatRoom)
          Sets the AdHocChatRoom that this wrapper represents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdHocChatRoomWrapper

public AdHocChatRoomWrapper(AdHocChatRoomProviderWrapper parentProvider,
                            String adHocChatRoomID,
                            String adHocChatRoomName)
Creates a AdHocChatRoomWrapper by specifying the protocol provider, the identifier and the name of the ad-hoc chat room.

Parameters:
parentProvider - the protocol provider to which the corresponding ad-hoc chat room belongs
adHocChatRoomID - the identifier of the corresponding ad-hoc chat room
adHocChatRoomName - the name of the corresponding ad-hoc chat room

AdHocChatRoomWrapper

public AdHocChatRoomWrapper(AdHocChatRoomProviderWrapper parentProvider,
                            AdHocChatRoom adHocChatRoom)
Creates a ChatRoomWrapper by specifying the corresponding chat room.

Parameters:
adHocChatRoom - the chat room to which this wrapper corresponds.
Method Detail

getAdHocChatRoom

public AdHocChatRoom getAdHocChatRoom()
Returns the AdHocChatRoom that this wrapper represents.

Returns:
the AdHocChatRoom that this wrapper represents.

setAdHocChatRoom

public void setAdHocChatRoom(AdHocChatRoom adHocChatRoom)
Sets the AdHocChatRoom that this wrapper represents.

Parameters:
adHocChatRoom - the ad-hoc chat room

getAdHocChatRoomName

public String getAdHocChatRoomName()
Returns the ad-hoc chat room name.

Returns:
the ad-hoc chat room name

getAdHocChatRoomID

public String getAdHocChatRoomID()
Returns the identifier of the ad-hoc chat room.

Returns:
the identifier of the ad-hoc chat room

getParentProvider

public AdHocChatRoomProviderWrapper getParentProvider()
Returns the parent protocol provider.

Returns:
the parent protocol provider

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

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