19 package org.sleuthkit.autopsy.communications.relationships;
22 import javax.swing.JPanel;
23 import org.netbeans.swing.outline.DefaultOutlineModel;
24 import org.netbeans.swing.outline.Outline;
25 import org.openide.explorer.view.OutlineView;
26 import org.openide.nodes.AbstractNode;
27 import org.openide.nodes.Children;
28 import org.openide.util.Lookup;
29 import org.openide.util.NbBundle.Messages;
45 "SummaryViewer_TabTitle=Summary",
46 "SummaryViewer_FileRefNameColumn_Title=Path",
47 "SummaryViewer_CaseRefNameColumn_Title=Case Name",
48 "SummaryViewer_CentralRepository_Message=<Enable Central Resposity to see Other Occurrences>",
49 "SummaryViewer_Creation_Date_Title=Creation Date",
50 "SummeryViewer_FileRef_Message=<Select one Accout to see File References>",
57 lookup = Lookup.getDefault();
61 Outline outline = outlineView.getOutline();
63 outline.setRootVisible(
false);
64 ((DefaultOutlineModel) outline.getOutlineModel()).setNodesColumnLabel(Bundle.SummaryViewer_FileRefNameColumn_Title());
67 outline = outlineView.getOutline();
68 outlineView.setPropertyColumns(
"creationDate", Bundle.SummaryViewer_Creation_Date_Title());
70 outline.setRootVisible(
false);
71 ((DefaultOutlineModel) outline.getOutlineModel()).setNodesColumnLabel(Bundle.SummaryViewer_CaseRefNameColumn_Title());
81 return Bundle.SummaryViewer_TabTitle();
106 SelectionSummary summaryDetails = info.
getSummary();
111 emailDataLabel.setText(Integer.toString(summaryDetails.getEmailCnt()));
135 super.setEnabled(enabled);
169 StringBuilder buffer =
new StringBuilder();
170 accounts.stream().map((account) -> {
171 buffer.append(account.getTypeSpecificID());
173 }).forEachOrdered((_item) -> {
177 return buffer.toString().substring(0, buffer.length() - 2);
185 @SuppressWarnings(
"unchecked")
188 java.awt.GridBagConstraints gridBagConstraints;
204 setLayout(
new java.awt.GridBagLayout());
206 countsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
org.openide.util.NbBundle.getMessage(
SummaryViewer.class,
"SummaryViewer.countsPanel.border.title")));
208 org.openide.awt.Mnemonics.setLocalizedText(
emailLabel,
org.openide.util.NbBundle.getMessage(
SummaryViewer.class,
"SummaryViewer.emailLabel.text"));
228 javax.swing.GroupLayout countsPanelLayout =
new javax.swing.GroupLayout(
countsPanel);
230 countsPanelLayout.setHorizontalGroup(
231 countsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
232 .addGroup(countsPanelLayout.createSequentialGroup()
234 .addGroup(countsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
241 .addGroup(countsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
247 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
249 countsPanelLayout.setVerticalGroup(
250 countsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
251 .addGroup(countsPanelLayout.createSequentialGroup()
253 .addGroup(countsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
256 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
257 .addGroup(countsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
260 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
261 .addGroup(countsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
264 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
265 .addGroup(countsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
268 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
269 .addGroup(countsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
272 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
275 gridBagConstraints =
new java.awt.GridBagConstraints();
276 gridBagConstraints.gridx = 0;
277 gridBagConstraints.gridy = 0;
278 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
279 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
280 gridBagConstraints.weightx = 1.0;
283 fileReferencesPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
org.openide.util.NbBundle.getMessage(
SummaryViewer.class,
"SummaryViewer.fileReferencesPanel.border.title")));
284 gridBagConstraints =
new java.awt.GridBagConstraints();
285 gridBagConstraints.gridx = 0;
286 gridBagConstraints.gridy = 1;
287 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
288 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
289 gridBagConstraints.weightx = 1.0;
290 gridBagConstraints.weighty = 1.0;
293 caseReferencesPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
org.openide.util.NbBundle.getMessage(
SummaryViewer.class,
"SummaryViewer.caseReferencesPanel.border.title")));
294 gridBagConstraints =
new java.awt.GridBagConstraints();
295 gridBagConstraints.gridx = 0;
296 gridBagConstraints.gridy = 2;
297 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
298 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
299 gridBagConstraints.weightx = 1.0;
300 gridBagConstraints.weighty = 1.0;
javax.swing.JLabel contactsDataLabel
javax.swing.JLabel callLogsDataLabel
javax.swing.JLabel messagesDataLabel
void setEnabled(boolean enabled)
javax.swing.JLabel contactsLabel
javax.swing.JPanel countsPanel
javax.swing.JLabel callLogsLabel
void setEnabled(boolean enabled)
javax.swing.JLabel messagesLabel
String createAccountLabel(Set< Account > accounts)
javax.swing.JLabel emailLabel
SelectionSummary getSummary()
org.sleuthkit.autopsy.communications.relationships.OutlineViewPanel caseReferencesPanel
javax.swing.JLabel attachmentsDataLabel
static boolean isEnabled()
void hideOutlineView(String message)
org.sleuthkit.autopsy.communications.relationships.OutlineViewPanel fileReferencesPanel
javax.swing.JLabel attachmentsLabel
OutlineView getOutlineView()
Set< Account > getAccounts()
void setSelectionInfo(SelectionInfo info)
javax.swing.JLabel emailDataLabel