|
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.ChatWindowManager
public class ChatWindowManager
Manages chat windows and panels.
| Constructor Summary | |
|---|---|
ChatWindowManager()
|
|
| Method Summary | |
|---|---|
void |
addChatListener(ChatListener listener)
Registers a NewChatListener to be informed when new Chats are created. |
(package private) void |
closeAllChats(ChatContainer chatContainer,
boolean warningEnabled)
Closes all chats in the specified ChatContainer and makes them available for garbage collection. |
void |
closeChat(ChatPanel chatPanel)
Closes the given chat panel. |
Collection<ChatPanel> |
getAllChats()
Returns all currently instantiated ChatPanels. |
List<ChatPanel> |
getChatPanels()
Returns all open ChatPanels. |
ChatPanel |
getContactChat(MetaContact metaContact,
boolean create)
Gets the ChatPanel corresponding to the specified MetaContact and optionally creates it if it does not exist. |
ChatPanel |
getContactChat(MetaContact metaContact,
Contact protocolContact)
Returns the chat panel corresponding to the given meta contact |
ChatPanel |
getContactChat(MetaContact metaContact,
Contact protocolContact,
String escapedMessageID)
Returns the chat panel corresponding to the given meta contact |
ChatPanel |
getMultiChat(AdHocChatRoom adHocChatRoom,
boolean create)
Gets the ChatPanel corresponding to the specified AdHocChatRoom and optionally creates it if it does not exist. |
ChatPanel |
getMultiChat(AdHocChatRoom adHocChatRoom,
boolean create,
String escapedMessageID)
Gets the ChatPanel corresponding to the specified AdHocChatRoom and optionally creates it if it does not exist. |
ChatPanel |
getMultiChat(AdHocChatRoomWrapper chatRoomWrapper,
boolean create)
Gets the ChatPanel corresponding to the specified AdHocChatRoomWrapper and optionally creates it if it does not exist yet. |
ChatPanel |
getMultiChat(ChatRoom chatRoom,
boolean create)
Gets the ChatPanel corresponding to the specified ChatRoom and optionally creates it if it does not exist. |
ChatPanel |
getMultiChat(ChatRoom chatRoom,
boolean create,
String escapedMessageID)
Gets the ChatPanel corresponding to the specified ChatRoom and optionally creates it if it does not exist. |
ChatPanel |
getMultiChat(ChatRoomWrapper chatRoomWrapper,
boolean create)
Gets the ChatPanel corresponding to the specified ChatRoomWrapper and optionally creates it if it does not exist yet. |
ChatPanel |
getSelectedChat()
Returns the currently selected ChatPanel. |
boolean |
isChatOpenedFor(MetaContact metaContact)
Returns true if there is an opened ChatPanel for the given MetaContact. |
void |
openChat(ChatPanel chatPanel,
boolean setSelected)
Opens the specified ChatPanel and optinally brings it to the front. |
void |
removeChatListener(ChatListener listener)
Removes the registration of a NewChatListener. |
void |
removeNonReadChatState(ChatPanel chatPanel)
Removes the non read state of the currently selected chat session. |
void |
startChat(MetaContact metaContact)
Starts a chat with the given MetaContact. |
void |
startChat(MetaContact metaContact,
Contact protocolContact,
boolean isSmsMessage)
Starts a chat with the given MetaContact. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChatWindowManager()
| Method Detail |
|---|
public void openChat(ChatPanel chatPanel,
boolean setSelected)
chatPanel - the ChatPanel to be openedsetSelected - true if chatPanel (and respectively
its ChatWindow) should be brought to the front; otherwise,
falsepublic boolean isChatOpenedFor(MetaContact metaContact)
metaContact - the MetaContact, for which the chat is about
public void closeChat(ChatPanel chatPanel)
chatPanel - the chat panel to close
void closeAllChats(ChatContainer chatContainer,
boolean warningEnabled)
chatContainer - the ChatContainer containing the chats to
closewarningEnabled - indicates if the user should be warned that we're
closing all the chats. This would be done only if there are currently
active file transfers or waiting messages
public ChatPanel getContactChat(MetaContact metaContact,
boolean create)
metaContact - the MetaContact to get the corresponding
ChatPanel ofcreate - true to create a ChatPanel corresponding
to the specified MetaContact if such ChatPanel does not
exist yet
public ChatPanel getContactChat(MetaContact metaContact,
Contact protocolContact)
metaContact - the meta contact.protocolContact - the protocol specific contact
public ChatPanel getContactChat(MetaContact metaContact,
Contact protocolContact,
String escapedMessageID)
metaContact - the meta contact.protocolContact - the protocol specific contactescapedMessageID - the message ID of the message that should be
excluded from the history when the last one is loaded in the chat
public ChatPanel getSelectedChat()
public ChatPanel getMultiChat(ChatRoomWrapper chatRoomWrapper,
boolean create)
chatRoomWrapper - the ChatRoomWrapper to get the
corresponding ChatPanel ofcreate - true to create a new ChatPanel for the
specified ChatRoomWrapper if no such ChatPanel exists
already; otherwise, false
public ChatPanel getMultiChat(AdHocChatRoomWrapper chatRoomWrapper,
boolean create)
chatRoomWrapper - the AdHocChatRoomWrapper to get the
corresponding ChatPanel ofcreate - true to create a new ChatPanel for the
specified AdHocChatRoomWrapper if no such ChatPanel
exists already; otherwise, false
public ChatPanel getMultiChat(AdHocChatRoom adHocChatRoom,
boolean create)
adHocChatRoom - the AdHocChatRoom to get the corresponding
ChatPanel ofcreate - true to create a ChatPanel corresponding
to the specified AdHocChatRoom if such ChatPanel does
not exist yet
public ChatPanel getMultiChat(ChatRoom chatRoom,
boolean create)
chatRoom - the ChatRoom to get the corresponding
ChatPanel ofcreate - true to create a ChatPanel corresponding
to the specified ChatRoom if such ChatPanel does not
exist yet
public ChatPanel getMultiChat(ChatRoom chatRoom,
boolean create,
String escapedMessageID)
chatRoom - the ChatRoom to get the corresponding
ChatPanel ofcreate - true to create a ChatPanel corresponding
to the specified ChatRoom if such ChatPanel does not
exist yetescapedMessageID - the message ID of the message that should be
excluded from the history when the last one is loaded in the chat
public ChatPanel getMultiChat(AdHocChatRoom adHocChatRoom,
boolean create,
String escapedMessageID)
adHocChatRoom - the AdHocChatRoom to get the corresponding
ChatPanel ofcreate - true to create a ChatPanel corresponding
to the specified AdHocChatRoom if such ChatPanel does
not exist yetescapedMessageID - the message ID of the message that should be
excluded from the history when the last one is loaded in the chat
public List<ChatPanel> getChatPanels()
ChatPanels.
ChatPanelspublic void startChat(MetaContact metaContact)
metaContact - the destination MetaContact
public void startChat(MetaContact metaContact,
Contact protocolContact,
boolean isSmsMessage)
metaContact - the destination MetaContactprotocolContact - the protocol contact of the destinationisSmsMessage - indicates if the chat should be opened for an SMS
messagepublic void removeNonReadChatState(ChatPanel chatPanel)
chatPanel - the ChatPanel for which we would like to remove
non read chat statepublic Collection<ChatPanel> getAllChats()
public void addChatListener(ChatListener listener)
listener - listener to be registeredpublic void removeChatListener(ChatListener listener)
listener - listener to be unregistered
|
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 | |||||||||