diff options
author | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2017-03-11 22:15:03 +0100 |
---|---|---|
committer | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2017-03-11 22:15:03 +0100 |
commit | 85901329b0794b136b96bf745f4ab1572806fc89 (patch) | |
tree | f23da7e97cae727f39d825f0fef8348cffb238e4 /src/net/java/sip/communicator/plugin/contactinfo/ContactInfoDialog.java | |
parent | 3db2e44f186c59429901b2c899e139ea60117a55 (diff) | |
parent | cf5da997da8820b4050f5b87ee9440a0ede36d1f (diff) | |
download | jitsi-85901329b0794b136b96bf745f4ab1572806fc89.zip jitsi-85901329b0794b136b96bf745f4ab1572806fc89.tar.gz jitsi-85901329b0794b136b96bf745f4ab1572806fc89.tar.bz2 |
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
Diffstat (limited to 'src/net/java/sip/communicator/plugin/contactinfo/ContactInfoDialog.java')
-rw-r--r-- | src/net/java/sip/communicator/plugin/contactinfo/ContactInfoDialog.java | 172 |
1 files changed, 86 insertions, 86 deletions
diff --git a/src/net/java/sip/communicator/plugin/contactinfo/ContactInfoDialog.java b/src/net/java/sip/communicator/plugin/contactinfo/ContactInfoDialog.java index 8e7d9db..3176533 100644 --- a/src/net/java/sip/communicator/plugin/contactinfo/ContactInfoDialog.java +++ b/src/net/java/sip/communicator/plugin/contactinfo/ContactInfoDialog.java @@ -1,4 +1,4 @@ -/*
+/* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. * * Copyright @ 2015 Atlassian Pty Ltd @@ -15,88 +15,88 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package net.java.sip.communicator.plugin.contactinfo;
-
-import java.awt.*;
-import java.util.*;
-
-import net.java.sip.communicator.plugin.desktoputil.*;
-import net.java.sip.communicator.service.contactlist.*;
-import net.java.sip.communicator.service.protocol.*;
-
-/**
- * A GUI plug-in for SIP Communicator that will allow cross protocol contact
- * information viewing and editing.
- *
- * @author Adam Goldstein
- * @author Yana Stamcheva
- */
-public class ContactInfoDialog
- extends SIPCommFrame
-{
- /**
- * Serial version UID.
- */
- private static final long serialVersionUID = 0L;
-
- /**
- * The right side of this frame that contains protocol specific contact
- * details.
- */
- protected ContactInfoDetailsPanel detailsPanel
- = new ContactInfoDetailsPanel();
-
- /**
- * The left side of this frame that contains a list of all sub-contacts
- * associated with the selected contact.
- */
- protected ContactInfoContactPanel contactPanel;
-
- /**
- * The contact that was right clicked on. The sub-contacts of contactItem
- * will be the ones selectable in contactPanel.
- */
- protected MetaContact metaContact;
-
- /**
- * Accepts a MetaContact and constructs a frame with ContactInfoSearchPanel
- * on the left and an information interface, ContactInfoDetailsPanel,
- * on the right.
- * @param metaContact the sub-contacts of this MetaContact that was right
- * clicked on will be the ones selectable in contactPanel.
- */
- public ContactInfoDialog(MetaContact metaContact)
- {
- this.metaContact = metaContact;
-
- this.setTitle(Resources.getString("plugin.contactinfo.TITLE")
- + ": "
- + metaContact.getDisplayName());
-
- Iterator<Contact> subContacts = metaContact.getContacts();
-
- this.contactPanel
- = new ContactInfoContactPanel(subContacts, this);
-
- Container contentPane = getContentPane();
- contentPane.add(contactPanel, BorderLayout.WEST);
- contentPane.add(detailsPanel, BorderLayout.CENTER);
-
- this.pack();
- }
-
- /**
- * Loads the details of the given contact.
- *
- * @param contact the <tt>Contact</tt>, which details we load
- */
- public void loadContactDetails(Contact contact)
- {
- this.detailsPanel.loadContactDetails(contact);
- }
-
- @Override
- protected void close(boolean isEscaped)
- {
- }
-}
+package net.java.sip.communicator.plugin.contactinfo; + +import java.awt.*; +import java.util.*; + +import net.java.sip.communicator.plugin.desktoputil.*; +import net.java.sip.communicator.service.contactlist.*; +import net.java.sip.communicator.service.protocol.*; + +/** + * A GUI plug-in for SIP Communicator that will allow cross protocol contact + * information viewing and editing. + * + * @author Adam Goldstein + * @author Yana Stamcheva + */ +public class ContactInfoDialog + extends SIPCommFrame +{ + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** + * The right side of this frame that contains protocol specific contact + * details. + */ + protected ContactInfoDetailsPanel detailsPanel + = new ContactInfoDetailsPanel(); + + /** + * The left side of this frame that contains a list of all sub-contacts + * associated with the selected contact. + */ + protected ContactInfoContactPanel contactPanel; + + /** + * The contact that was right clicked on. The sub-contacts of contactItem + * will be the ones selectable in contactPanel. + */ + protected MetaContact metaContact; + + /** + * Accepts a MetaContact and constructs a frame with ContactInfoSearchPanel + * on the left and an information interface, ContactInfoDetailsPanel, + * on the right. + * @param metaContact the sub-contacts of this MetaContact that was right + * clicked on will be the ones selectable in contactPanel. + */ + public ContactInfoDialog(MetaContact metaContact) + { + this.metaContact = metaContact; + + this.setTitle(Resources.getString("plugin.contactinfo.TITLE") + + ": " + + metaContact.getDisplayName()); + + Iterator<Contact> subContacts = metaContact.getContacts(); + + this.contactPanel + = new ContactInfoContactPanel(subContacts, this); + + Container contentPane = getContentPane(); + contentPane.add(contactPanel, BorderLayout.WEST); + contentPane.add(detailsPanel, BorderLayout.CENTER); + + this.pack(); + } + + /** + * Loads the details of the given contact. + * + * @param contact the <tt>Contact</tt>, which details we load + */ + public void loadContactDetails(Contact contact) + { + this.detailsPanel.loadContactDetails(contact); + } + + @Override + protected void close(boolean isEscaped) + { + } +} |