public class ChatRoomWrapperImpl extends org.jitsi.util.event.PropertyChangeNotifier implements ChatRoomWrapper
JOIN_AUTHENTICATION_FAILED_PROP, JOIN_PROVIDER_NOT_REGISTERED_PROP, JOIN_REGISTRATION_REQUIRED_PROP, JOIN_SUBSCRIPTION_ALREADY_EXISTS_PROP, JOIN_SUCCESS_PROP, JOIN_UNKNOWN_ERROR_PROP
Constructor and Description |
---|
ChatRoomWrapperImpl(ChatRoomProviderWrapper parentProvider,
ChatRoom chatRoom)
Creates a ChatRoomWrapper by specifying the corresponding chat
room.
|
ChatRoomWrapperImpl(ChatRoomProviderWrapper parentProvider,
java.lang.String chatRoomID,
java.lang.String chatRoomName)
Creates a ChatRoomWrapper by specifying the protocol provider,
the identifier and the name of the chat room.
|
Modifier and Type | Method and Description |
---|---|
void |
firePropertyChange(java.lang.String property)
Fire property change.
|
ChatRoom |
getChatRoom()
Returns the ChatRoom that this wrapper represents.
|
java.lang.String |
getChatRoomID()
Returns the identifier of the chat room.
|
java.lang.String |
getChatRoomName()
Returns the chat room name.
|
ChatRoomProviderWrapper |
getParentProvider()
Returns the parent protocol provider.
|
boolean |
isAutojoin()
Is room set to auto join on start-up.
|
boolean |
isPersistent()
Returns
true if the chat room is persistent,
otherwise - returns false . |
java.lang.String |
loadPassword()
Returns the password for the chat room.
|
void |
removeListeners()
Removes the listeners.
|
void |
removePassword()
Removes the saved password for the chat room.
|
void |
savePassword(java.lang.String password)
Stores the password for the chat room.
|
void |
setAutoJoin(boolean value)
Changes auto join value in configuration service.
|
void |
setChatRoom(ChatRoom chatRoom)
Sets the ChatRoom that this wrapper represents.
|
void |
setPersistent(boolean value)
Change persistence of this room.
|
addPropertyChangeListener, firePropertyChange, getPropertyChangeSource, removePropertyChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, removePropertyChangeListener
public ChatRoomWrapperImpl(ChatRoomProviderWrapper parentProvider, java.lang.String chatRoomID, java.lang.String chatRoomName)
parentProvider
- the protocol provider to which the corresponding
chat room belongschatRoomID
- the identifier of the corresponding chat roomchatRoomName
- the name of the corresponding chat roompublic ChatRoomWrapperImpl(ChatRoomProviderWrapper parentProvider, ChatRoom chatRoom)
parentProvider
- the protocol provider to which the corresponding
chat room belongschatRoom
- the chat room to which this wrapper corresponds.public ChatRoom getChatRoom()
getChatRoom
in interface ChatRoomWrapper
public void setChatRoom(ChatRoom chatRoom)
setChatRoom
in interface ChatRoomWrapper
chatRoom
- the chat roompublic java.lang.String getChatRoomName()
getChatRoomName
in interface ChatRoomWrapper
public java.lang.String getChatRoomID()
getChatRoomID
in interface ChatRoomWrapper
public ChatRoomProviderWrapper getParentProvider()
getParentProvider
in interface ChatRoomWrapper
public boolean isPersistent()
true
if the chat room is persistent,
otherwise - returns false
.isPersistent
in interface ChatRoomWrapper
true
if the chat room is persistent,
otherwise - returns false
.public void setPersistent(boolean value)
setPersistent
in interface ChatRoomWrapper
value
- set persistent state.public void savePassword(java.lang.String password)
savePassword
in interface ChatRoomWrapper
password
- the password to storepublic java.lang.String loadPassword()
loadPassword
in interface ChatRoomWrapper
public void removePassword()
removePassword
in interface ChatRoomWrapper
public boolean isAutojoin()
isAutojoin
in interface ChatRoomWrapper
public void setAutoJoin(boolean value)
setAutoJoin
in interface ChatRoomWrapper
value
- change of auto join property.public void removeListeners()
removeListeners
in interface ChatRoomWrapper
public void firePropertyChange(java.lang.String property)
property
-
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.