19 package org.sleuthkit.autopsy.communications.relationships;
21 import javax.swing.JPanel;
22 import org.openide.util.Lookup;
40 MessageViewer messagesViewer =
new MessageViewer();
41 ContactsViewer contactsViewer =
new ContactsViewer();
43 MediaViewer mediaViewer =
new MediaViewer();
44 CallLogViewer callLogViewer =
new CallLogViewer();
49 tabPane.add(messagesViewer.getDisplayName(), messagesViewer);
50 tabPane.add(callLogViewer.getDisplayName(), callLogViewer);
51 tabPane.add(contactsViewer.getDisplayName(), contactsViewer);
52 tabPane.add(mediaViewer.getDisplayName(), mediaViewer);
62 currentSelection = info;
72 @SuppressWarnings(
"unchecked")
75 java.awt.GridBagConstraints gridBagConstraints;
77 tabPane =
new javax.swing.JTabbedPane();
79 setLayout(
new java.awt.GridBagLayout());
81 tabPane.addChangeListener(
new javax.swing.event.ChangeListener() {
82 public void stateChanged(javax.swing.event.ChangeEvent evt) {
86 gridBagConstraints =
new java.awt.GridBagConstraints();
87 gridBagConstraints.gridx = 0;
88 gridBagConstraints.gridy = 0;
89 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
90 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
91 gridBagConstraints.weightx = 1.0;
92 gridBagConstraints.weighty = 1.0;
93 add(
tabPane, gridBagConstraints);
100 if (viewer instanceof Lookup.Provider) {
101 Lookup lookup = viewer.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)
void setSelectionInfo(SelectionInfo info)