public interface ChatContainer
Modifier and Type | Method and Description |
---|---|
void |
addChat(ChatPanel chatPanel)
Adds a given ChatPanel to this chat window.
|
void |
addChatChangeListener(ChatChangeListener listener)
Adds the given ChatChangeListener.
|
int |
getChatCount()
Returns the number of all open chats.
|
java.util.List<ChatPanel> |
getChats()
Returns all chats this ChatContainer contains.
|
ChatPanel |
getCurrentChat()
Returns the currently selected chat panel.
|
java.awt.Frame |
getFrame()
Returns the frame to which this container belongs.
|
void |
openChat(ChatPanel chatPanel,
boolean setSelected)
Opens the specified ChatPanel and optionally brings it to the
front.
|
void |
removeAllChats()
Removes all chats this ChatContainer contains.
|
void |
removeChat(ChatPanel chatPanel)
Removes a given ChatPanel from this chat window.
|
void |
removeChatChangeListener(ChatChangeListener listener)
Removes the given ChatChangeListener.
|
void |
setChatIcon(ChatPanel chatPanel,
javax.swing.Icon icon)
Sets the icon for the given chat.
|
void |
setChatTitle(ChatPanel chatPanel,
java.lang.String title)
Sets the title of this chat container.
|
void |
setCurrentChat(ChatPanel chatPanel)
Selects the chat tab which corresponds to the given MetaContact.
|
void |
setTitle(java.lang.String title)
Sets the title of this chat container.
|
void |
setToolbarVisible(boolean b)
Shows or hides the Toolbar depending on the value of parameter b.
|
void |
updateHistoryButtonState(ChatPanel chatPanel)
Updates history buttons state.
|
void setTitle(java.lang.String title)
title
- the title to setvoid addChat(ChatPanel chatPanel)
chatPanel
- The ChatPanel to add.void removeChat(ChatPanel chatPanel)
chatPanel
- The ChatPanel to remove.void removeAllChats()
int getChatCount()
java.util.List<ChatPanel> getChats()
void openChat(ChatPanel chatPanel, boolean setSelected)
chatPanel
- the ChatPanel to be openedsetSelected
- true if chatPanel (and respectively
this ChatContainer) should be brought to the front; otherwise,
falseChatPanel getCurrentChat()
void setCurrentChat(ChatPanel chatPanel)
chatPanel
- The ChatPanel to select.void setChatTitle(ChatPanel chatPanel, java.lang.String title)
chatPanel
- the chat, for which we set the titletitle
- the title to setvoid setChatIcon(ChatPanel chatPanel, javax.swing.Icon icon)
chatPanel
- the chat, for which we want to set an iconicon
- the icon to setvoid setToolbarVisible(boolean b)
b
- if true, makes the Toolbar visible, otherwise hides the Toolbarjava.awt.Frame getFrame()
void addChatChangeListener(ChatChangeListener listener)
listener
- the listener to addvoid removeChatChangeListener(ChatChangeListener listener)
listener
- the listener to removevoid updateHistoryButtonState(ChatPanel chatPanel)
chatPanel
-
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.