19 package org.sleuthkit.autopsy.communications.relationships;
 
   21 import java.awt.Component;
 
   22 import javax.swing.JPanel;
 
   23 import org.openide.util.Lookup;
 
   41         MessageViewer messagesViewer = 
new MessageViewer();
 
   42         ContactsViewer contactsViewer = 
new ContactsViewer();
 
   44         MediaViewer mediaViewer = 
new MediaViewer();
 
   45         CallLogViewer callLogViewer = 
new CallLogViewer();
 
   50         tabPane.add(messagesViewer.getDisplayName(), messagesViewer);
 
   51         tabPane.add(callLogViewer.getDisplayName(), callLogViewer);
 
   52         tabPane.add(contactsViewer.getDisplayName(), contactsViewer);
 
   53         tabPane.add(mediaViewer.getDisplayName(), mediaViewer);
 
   63         currentSelection = info;
 
   73     @SuppressWarnings(
"unchecked")
 
   76         java.awt.GridBagConstraints gridBagConstraints;
 
   78         tabPane = 
new javax.swing.JTabbedPane();
 
   80         setLayout(
new java.awt.GridBagLayout());
 
   82         tabPane.addChangeListener(
new javax.swing.event.ChangeListener() {
 
   83             public void stateChanged(javax.swing.event.ChangeEvent evt) {
 
   87         gridBagConstraints = 
new java.awt.GridBagConstraints();
 
   88         gridBagConstraints.gridx = 0;
 
   89         gridBagConstraints.gridy = 0;
 
   90         gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
 
   91         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
 
   92         gridBagConstraints.weightx = 1.0;
 
   93         gridBagConstraints.weighty = 1.0;
 
   94         add(
tabPane, gridBagConstraints);
 
   98         if(currentSelection != null) {
 
  102         Component selectedComponent = 
tabPane.getSelectedComponent();
 
  103         if(selectedComponent instanceof Lookup.Provider) {
 
  104             Lookup lookup = ((Lookup.Provider)selectedComponent).getLookup();
 
void setSelectionInfo(SelectionInfo info)
 
void tabPaneStateChanged(javax.swing.event.ChangeEvent evt)
 
SelectionInfo currentSelection
 
final ModifiableProxyLookup proxyLookup
 
javax.swing.JTabbedPane tabPane
 
void setNewLookups(final Lookup...lookups)