|
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.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
net.java.sip.communicator.util.swing.TransparentPanel
net.java.sip.communicator.impl.gui.main.SingleWindowContainer
public class SingleWindowContainer
The container of the single window interface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
SingleWindowContainer()
Creates an instance of the SingleWindowContainer. |
|
| Method Summary | |
|---|---|
void |
addCallPanel(CallPanel callPanel)
Adds the given CallPanel to this call window. |
void |
addChat(ChatPanel chatPanel)
Adds a given ChatPanel to this chat window. |
void |
addChatChangeListener(ChatChangeListener listener)
Adds the given ChatChangeListener. |
void |
callTitleChanged(CallPanel callPanel)
Called when the title of the given CallPanel changes. |
void |
close(CallPanel callPanel)
Closes the given CallPanel. |
void |
closeWait(CallPanel callPanel)
Closes the given CallPanel. |
boolean |
containsFocus()
Indicates if one of the contained components is currently the owner of the keyboard focus. |
int |
getChatCount()
Returns the number of all open chats. |
List<ChatPanel> |
getChats()
Returns the currently available chat panels. |
ChatPanel |
getCurrentChat()
Returns the currently selected chat panel. |
JFrame |
getFrame()
Returns the frame to which this container belongs. |
void |
openChat(ChatPanel chatPanel,
boolean setSelected)
Opens the specified ChatPanel and optinally brings it to the front. |
void |
pack()
Packs the content of this call window. |
void |
removeAllChats()
Removes all tabs in the chat tabbed pane. |
void |
removeChat(ChatPanel chatPanel)
Removes a given ChatPanel from this chat window. |
void |
removeChatChangeListener(ChatChangeListener listener)
Removes the given ChatChangeListener. |
void |
setChatIcon(ChatPanel chatPanel,
Icon icon)
Sets the icon for the given chat. |
void |
setChatTitle(ChatPanel chatPanel,
String title)
Sets the title of this chat container. |
void |
setCurrentChat(ChatPanel chatPanel)
Selects the chat tab which corresponds to the given MetaContact. |
void |
setTabIcon(ChatPanel chatPanel,
Icon icon)
Sets the given icon to the tab opened for the given chat panel. |
void |
setTabTitle(ChatPanel chatPanel,
String title)
Sets the given title to the tab opened for the given chat panel. |
void |
setTitle(String title)
Sets the title of this chat container. |
void |
setToolbarVisible(boolean isVisible)
Shows/hides the toolbar. |
void |
stateChanged(ChangeEvent event)
Shows/hides the toolbar depending on the selected tab. |
void |
updateHistoryButtonState(ChatPanel chatPanel)
Updates history buttons state. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SingleWindowContainer()
| Method Detail |
|---|
public void setTitle(String title)
ChatContainer
setTitle in interface ChatContainertitle - the title to setpublic void addChat(ChatPanel chatPanel)
addChat in interface ChatContainerchatPanel - The ChatPanel to add.public void removeChat(ChatPanel chatPanel)
removeChat in interface ChatContainerchatPanel - The ChatPanel to remove.public ChatPanel getCurrentChat()
getCurrentChat in interface ChatContainerpublic void setCurrentChat(ChatPanel chatPanel)
setCurrentChat in interface ChatContainerchatPanel - The ChatPanel to select.public void setToolbarVisible(boolean isVisible)
setToolbarVisible in interface ChatContainerisVisible - public void removeAllChats()
removeAllChats in interface ChatContainerpublic int getChatCount()
getChatCount in interface ChatContainerpublic List<ChatPanel> getChats()
getChats in interface ChatContainer
public void openChat(ChatPanel chatPanel,
boolean setSelected)
openChat in interface ChatContainerchatPanel - the ChatPanel to be openedsetSelected - true if chatPanel (and respectively
this ChatContainer) should be brought to the front; otherwise,
false
public void setChatTitle(ChatPanel chatPanel,
String title)
ChatContainer
setChatTitle in interface ChatContainerchatPanel - the chat, for which we set the titletitle - the title to set
public void setChatIcon(ChatPanel chatPanel,
Icon icon)
ChatContainer
setChatIcon in interface ChatContainerchatPanel - the chat, for which we want to set an iconicon - the icon to setpublic void updateHistoryButtonState(ChatPanel chatPanel)
updateHistoryButtonState in interface ChatContainerchatPanel - the chat panel for which we should update button statespublic JFrame getFrame()
getFrame in interface CallContainergetFrame in interface ChatContainerpublic void addChatChangeListener(ChatChangeListener listener)
addChatChangeListener in interface ChatContainerlistener - the listener to addpublic void removeChatChangeListener(ChatChangeListener listener)
removeChatChangeListener in interface ChatContainerlistener - the listener to removepublic boolean containsFocus()
public void close(CallPanel callPanel)
close in interface CallContainercallPanel - the CallPanel to closepublic void closeWait(CallPanel callPanel)
closeWait in interface CallContainercallPanel - the CallPanel to closepublic void pack()
pack in interface CallContainerpublic void addCallPanel(CallPanel callPanel)
addCallPanel in interface CallContainercallPanel - the CallPanel to addpublic void callTitleChanged(CallPanel callPanel)
callTitleChanged in interface CallTitleListenercallPanel - the CallPanel, which title has changedpublic void stateChanged(ChangeEvent event)
stateChanged in interface ChangeListenerevent - the ChangeEvent that notified us of the tab
selection change
public void setTabIcon(ChatPanel chatPanel,
Icon icon)
chatPanel - the chat panel, which corresponds the tabicon - the icon to be set
public void setTabTitle(ChatPanel chatPanel,
String title)
chatPanel - the chat paneltitle - the new title of the tab
|
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 | |||||||||