diff options
author | Yana Stamcheva <yana@jitsi.org> | 2010-09-29 07:37:36 +0000 |
---|---|---|
committer | Yana Stamcheva <yana@jitsi.org> | 2010-09-29 07:37:36 +0000 |
commit | 15dc7d7c095970bfbe58af45b68cb9a88f6b2d06 (patch) | |
tree | a89073d35fe0a634179325d91e848e54198351c2 /src/net/java/sip/communicator/impl/gui/main/chat/ChatTransportSelectorBox.java | |
parent | 5c166b35f0116b4936c3ff0f85d024c9b9061414 (diff) | |
download | jitsi-15dc7d7c095970bfbe58af45b68cb9a88f6b2d06.zip jitsi-15dc7d7c095970bfbe58af45b68cb9a88f6b2d06.tar.gz jitsi-15dc7d7c095970bfbe58af45b68cb9a88f6b2d06.tar.bz2 |
Moves the authentication window to the util package and removes any dependency to the protocol service and security authority.
Diffstat (limited to 'src/net/java/sip/communicator/impl/gui/main/chat/ChatTransportSelectorBox.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/gui/main/chat/ChatTransportSelectorBox.java | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/chat/ChatTransportSelectorBox.java b/src/net/java/sip/communicator/impl/gui/main/chat/ChatTransportSelectorBox.java index d280817..bcd3656 100644 --- a/src/net/java/sip/communicator/impl/gui/main/chat/ChatTransportSelectorBox.java +++ b/src/net/java/sip/communicator/impl/gui/main/chat/ChatTransportSelectorBox.java @@ -40,10 +40,12 @@ public class ChatTransportSelectorBox private final ChatSession chatSession; /** - * @param chatPanel Currently not used + * Creates an instance of <tt>ChatTransportSelectorBox</tt>. + * + * @param chatSession the corresponding chat session + * @param selectedChatTransport the chat transport to select by default */ - public ChatTransportSelectorBox(ChatPanel chatPanel, - ChatSession chatSession, + public ChatTransportSelectorBox(ChatSession chatSession, ChatTransport selectedChatTransport) { this.chatSession = chatSession; @@ -121,6 +123,8 @@ public class ChatTransportSelectorBox /** * The listener of the chat transport selector box. + * + * @param e the <tt>ActionEvent</tt> that notified us */ public void actionPerformed(ActionEvent e) { @@ -157,7 +161,7 @@ public class ChatTransportSelectorBox { return ImageLoader.badgeImageWithProtocolIndex( - ImageLoader.getBytesInImage( + GuiUtils.getBytesInImage( chatTransport.getStatus().getStatusIcon()), chatTransport.getProtocolProvider()); } @@ -256,8 +260,9 @@ public class ChatTransportSelectorBox /** * Searches online contacts in the send via combo box. * - * @return TRUE if the send via combo box contains online contacts, otherwise - * returns FALSE. + * @param chatTransport the chat transport to check + * @return TRUE if the send via combo box contains online contacts, + * otherwise returns FALSE. */ private boolean containsOtherOnlineContacts(ChatTransport chatTransport) { |