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>",})
56 lookup = Lookup.getDefault();
60 Outline outline = outlineView.getOutline();
62 outline.setRootVisible(
false);
63 ((DefaultOutlineModel) outline.getOutlineModel()).setNodesColumnLabel(Bundle.SummaryViewer_FileRefNameColumn_Title());
66 outline = outlineView.getOutline();
67 outlineView.setPropertyColumns(
"creationDate", Bundle.SummaryViewer_Creation_Date_Title());
69 outline.setRootVisible(
false);
70 ((DefaultOutlineModel) outline.getOutlineModel()).setNodesColumnLabel(Bundle.SummaryViewer_CaseRefNameColumn_Title());
80 return Bundle.SummaryViewer_TabTitle();
105 SelectionSummary summaryDetails = info.
getSummary();
110 messagesDataLabel.setText(Integer.toString(summaryDetails.getMessagesCnt() + summaryDetails.getEmailCnt()));
134 super.setEnabled(enabled);
167 StringBuilder buffer =
new StringBuilder();
168 accounts.stream().map((account) -> {
169 buffer.append(account.getTypeSpecificID());
171 }).forEachOrdered((_item) -> {
175 return buffer.toString().substring(0, buffer.length() - 2);
183 @SuppressWarnings(
"unchecked")
186 java.awt.GridBagConstraints gridBagConstraints;
202 setLayout(
new java.awt.GridBagLayout());
204 countsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
org.openide.util.NbBundle.getMessage(
SummaryViewer.class,
"SummaryViewer.countsPanel.border.title")));
226 javax.swing.GroupLayout countsPanelLayout =
new javax.swing.GroupLayout(
countsPanel);
228 countsPanelLayout.setHorizontalGroup(
229 countsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
230 .addGroup(countsPanelLayout.createSequentialGroup()
232 .addGroup(countsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
239 .addGroup(countsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
245 .addContainerGap(845, Short.MAX_VALUE))
247 countsPanelLayout.setVerticalGroup(
248 countsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
249 .addGroup(countsPanelLayout.createSequentialGroup()
251 .addGroup(countsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
254 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
255 .addGroup(countsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
258 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
259 .addGroup(countsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
262 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
263 .addGroup(countsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
266 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
267 .addGroup(countsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
272 gridBagConstraints =
new java.awt.GridBagConstraints();
273 gridBagConstraints.gridx = 0;
274 gridBagConstraints.gridy = 0;
275 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
276 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
277 gridBagConstraints.weightx = 1.0;
280 fileReferencesPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
org.openide.util.NbBundle.getMessage(
SummaryViewer.class,
"SummaryViewer.fileReferencesPanel.border.title")));
281 gridBagConstraints =
new java.awt.GridBagConstraints();
282 gridBagConstraints.gridx = 0;
283 gridBagConstraints.gridy = 1;
284 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
285 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
286 gridBagConstraints.weightx = 1.0;
287 gridBagConstraints.weighty = 1.0;
290 caseReferencesPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
org.openide.util.NbBundle.getMessage(
SummaryViewer.class,
"SummaryViewer.caseReferencesPanel.border.title")));
291 gridBagConstraints =
new java.awt.GridBagConstraints();
292 gridBagConstraints.gridx = 0;
293 gridBagConstraints.gridy = 2;
294 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
295 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
296 gridBagConstraints.weightx = 1.0;
297 gridBagConstraints.weighty = 1.0;
javax.swing.JLabel contactsDataLabel
javax.swing.JLabel attachmentDataLabel
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
javax.swing.JLabel thumbnailsDataLabel
String createAccountLabel(Set< Account > accounts)
SelectionSummary getSummary()
org.sleuthkit.autopsy.communications.relationships.OutlineViewPanel caseReferencesPanel
static boolean isEnabled()
javax.swing.JLabel attachmentsLable
void hideOutlineView(String message)
org.sleuthkit.autopsy.communications.relationships.OutlineViewPanel fileReferencesPanel
javax.swing.JLabel thumbnailCntLabel
OutlineView getOutlineView()
Set< Account > getAccounts()
void setSelectionInfo(SelectionInfo info)