|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.gui.main.chat.ChatSession
net.java.sip.communicator.impl.gui.main.chat.conference.ConferenceChatSession
public class ConferenceChatSession
An implementation of ChatSession for conference chatting.
| Field Summary |
|---|
| Fields inherited from class net.java.sip.communicator.impl.gui.main.chat.ChatSession |
|---|
chatHistoryFilter, chatParticipants, chatTransports |
| Constructor Summary | |
|---|---|
ConferenceChatSession(ChatSessionRenderer sessionRenderer,
ChatRoomWrapper chatRoomWrapper)
Creates an instance of ConferenceChatSession, by specifying the sessionRenderer to be used for communication with the UI and the chatRoom corresponding to this conference session. |
|
| Method Summary | |
|---|---|
void |
addChatTransportChangeListener(ChatSessionChangeListener l)
Adds the given ChatSessionChangeListener to the list of transport listeners. |
void |
addLocalUserRoleListener(ChatRoomLocalUserRoleListener l)
Adds the given ChatRoomLocalUserRoleListener to the contained chat room role listeners. |
void |
addMemberRoleListener(ChatRoomMemberRoleListener l)
Adds the given ChatRoomMemberRoleListener to the contained chat room role listeners. |
void |
chatRoomPropertyChanged(ChatRoomPropertyChangeEvent evt)
Updates the chat panel when a property of the chat room has been modified. |
void |
chatRoomPropertyChangeFailed(ChatRoomPropertyChangeFailedEvent event)
Called to indicate that a change of a chat room property has failed. |
void |
dispose()
Disposes this chat session. |
byte[] |
getChatAvatar()
Returns the avatar icon of this chat session. |
ChatRoomConfigurationForm |
getChatConfigurationForm()
Returns the configuration form corresponding to the chat room. |
String |
getChatName()
Returns the name of the chat room. |
ChatSessionRenderer |
getChatSessionRenderer()
Returns the ChatSessionRenderer that provides the connection between this chat session and its UI. |
ImageIcon |
getChatStatusIcon()
Implements the ChatPanel.getChatStatusIcon method. |
String |
getChatSubject()
Returns the subject of the chat room. |
ChatTransport |
getCurrentChatTransport()
Returns the currently used transport for all operation within this chat session. |
String |
getDefaultSmsNumber()
Returns the default mobile number used to send sms-es in this session. |
Object |
getDescriptor()
Returns the descriptor of this chat session. |
Collection<Object> |
getHistory(int count)
Returns a collection of the last N number of messages given by count. |
Collection<Object> |
getHistoryAfterDate(Date date,
int count)
Returns a collection of the last N number of messages given by count. |
Collection<Object> |
getHistoryBeforeDate(Date date,
int count)
Returns a collection of the last N number of messages given by count. |
long |
getHistoryEndDate()
Returns the end date of the history of this chat session. |
long |
getHistoryStartDate()
Returns the start date of the history of this chat session. |
boolean |
isContactListSupported()
Indicates if the contact list is supported by this session. |
boolean |
isDescriptorPersistent()
Returns true if this contact is persistent, otherwise
returns false. |
void |
loadChatRoom(ChatRoom chatRoom)
Loads the given chat room in the this chat conference panel. |
void |
memberPresenceChanged(ChatRoomMemberPresenceChangeEvent evt)
Invoked when ChatRoomMemberPresenceChangeEvent are received. |
void |
removeChatTransportChangeListener(ChatSessionChangeListener l)
Removes the given ChatSessionChangeListener from contained transport listeners. |
void |
setCurrentChatTransport(ChatTransport chatTransport)
Sets the transport that will be used for all operations within this chat session. |
void |
setDefaultSmsNumber(String smsPhoneNumber)
Sets the default mobile number used to send sms-es in this session. |
| Methods inherited from class net.java.sip.communicator.impl.gui.main.chat.ChatSession |
|---|
findChatTransportForDescriptor, getChatTransports, getParticipants, getTransportsForOperationSet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConferenceChatSession(ChatSessionRenderer sessionRenderer,
ChatRoomWrapper chatRoomWrapper)
sessionRenderer - the renderer to be used for communication with the
UI.chatRoomWrapper - the chat room corresponding to this conference
session.| Method Detail |
|---|
public Object getDescriptor()
getDescriptor in class ChatSessionpublic void dispose()
dispose in class ChatSessionpublic String getChatName()
getChatName in class ChatSessionpublic String getChatSubject()
public ChatRoomConfigurationForm getChatConfigurationForm()
throws OperationFailedException
OperationFailedException - if no configuration form is available
for the chat room.public ChatTransport getCurrentChatTransport()
getCurrentChatTransport in class ChatSessionpublic String getDefaultSmsNumber()
getDefaultSmsNumber in class ChatSessionpublic Collection<Object> getHistory(int count)
getHistory in class ChatSessioncount - The number of messages from history to return.
public Collection<Object> getHistoryBeforeDate(Date date,
int count)
getHistoryBeforeDate in class ChatSessiondate - The date up to which we're looking for messages.count - The number of messages from history to return.
public Collection<Object> getHistoryAfterDate(Date date,
int count)
getHistoryAfterDate in class ChatSessiondate - The date from which we're looking for messages.count - The number of messages from history to return.
public long getHistoryStartDate()
getHistoryStartDate in class ChatSessionpublic long getHistoryEndDate()
getHistoryEndDate in class ChatSessionpublic void setCurrentChatTransport(ChatTransport chatTransport)
setCurrentChatTransport in class ChatSessionchatTransport - The transport to set as a default transport for this
session.public void setDefaultSmsNumber(String smsPhoneNumber)
setDefaultSmsNumber in class ChatSessionsmsPhoneNumber - The default mobile number used to send sms-es in
this session.public ChatSessionRenderer getChatSessionRenderer()
getChatSessionRenderer in class ChatSessionpublic void memberPresenceChanged(ChatRoomMemberPresenceChangeEvent evt)
memberPresenceChanged in interface ChatRoomMemberPresenceListenerevt - the ChatRoomMemberPresenceChangeEvent that notified
uspublic void chatRoomPropertyChangeFailed(ChatRoomPropertyChangeFailedEvent event)
ChatRoomPropertyChangeListener
chatRoomPropertyChangeFailed in interface ChatRoomPropertyChangeListenerevent - the ChatRoomPropertyChangeFailedEvent containing the name of
the property that has failed, as well as its old and new values.public void chatRoomPropertyChanged(ChatRoomPropertyChangeEvent evt)
chatRoomPropertyChanged in interface ChatRoomPropertyChangeListenerevt - the event containing information about the property changepublic boolean isDescriptorPersistent()
true if this contact is persistent, otherwise
returns false.
isDescriptorPersistent in class ChatSessiontrue if this contact is persistent, otherwise
returns false.public void loadChatRoom(ChatRoom chatRoom)
chatRoom - the ChatRoom to loadpublic ImageIcon getChatStatusIcon()
getChatStatusIcon in class ChatSessionpublic byte[] getChatAvatar()
getChatAvatar in class ChatSessionpublic boolean isContactListSupported()
isContactListSupported in class ChatSessionpublic void addChatTransportChangeListener(ChatSessionChangeListener l)
addChatTransportChangeListener in class ChatSessionl - the listener to addpublic void removeChatTransportChangeListener(ChatSessionChangeListener l)
removeChatTransportChangeListener in class ChatSessionl - the listener to removepublic void addMemberRoleListener(ChatRoomMemberRoleListener l)
l - the listener to addpublic void addLocalUserRoleListener(ChatRoomLocalUserRoleListener l)
l - the listener to add
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||