19 package org.sleuthkit.autopsy.datasourcesummary.ui;
21 import java.util.ArrayList;
22 import java.util.Arrays;
23 import java.util.List;
24 import org.openide.util.NbBundle.Messages;
44 private static final String
EMAIL_PARSER_FACTORY =
"org.sleuthkit.autopsy.thunderbirdparser.EmailParserModuleFactory";
55 "RecentFilesPanel_col_head_date=Date",
56 "RecentFilePanel_col_header_domain=Domain",
57 "RecentFilePanel_col_header_path=Path",
58 "RecentFilePanel_col_header_sender=Sender",
59 "RecentFilePanel_emailParserModuleName=Email Parser"
106 "RecentFilePanel_no_open_documents=No recently open documents found."
111 @SuppressWarnings(
"unchecked")
113 List<ColumnModel<RecentFileDetails>> list = Arrays.asList(
129 tablePanelList.add(pane);
135 showResultWithModuleCheck(pane, result,
140 dataFetchComponents.add(worker);
146 @SuppressWarnings(
"unchecked")
148 List<ColumnModel<RecentDownloadDetails>> list = Arrays.asList(
149 new ColumnModel<>(Bundle.RecentFilePanel_col_header_domain(),
168 tablePanelList.add(pane);
174 showResultWithModuleCheck(pane, result,
179 dataFetchComponents.add(worker);
185 @SuppressWarnings(
"unchecked")
187 List<ColumnModel<RecentAttachmentDetails>> list = Arrays.asList(
196 new ColumnModel<>(Bundle.RecentFilePanel_col_header_sender(),
207 tablePanelList.add(pane);
212 (result) -> showResultWithModuleCheck(pane, result, EMAIL_PARSER_FACTORY, EMAIL_PARSER_MODULE_NAME)
215 dataFetchComponents.add(worker);
223 @SuppressWarnings(
"unchecked")
226 java.awt.GridBagConstraints gridBagConstraints;
228 javax.swing.JScrollPane scrollPane =
new javax.swing.JScrollPane();
229 javax.swing.JPanel tablePanel =
new javax.swing.JPanel();
234 javax.swing.JLabel openDocsLabel =
new javax.swing.JLabel();
235 javax.swing.JLabel downloadLabel =
new javax.swing.JLabel();
236 javax.swing.JLabel attachmentLabel =
new javax.swing.JLabel();
238 setLayout(
new java.awt.BorderLayout());
240 tablePanel.setBorder(javax.swing.BorderFactory.createEmptyBorder(10, 10, 10, 10));
241 tablePanel.setMinimumSize(
new java.awt.Dimension(400, 400));
242 tablePanel.setPreferredSize(
new java.awt.Dimension(600, 400));
243 tablePanel.setLayout(
new java.awt.GridBagLayout());
245 ingestRunningPanel.setAlignmentX(0.0F);
246 ingestRunningPanel.setMaximumSize(
new java.awt.Dimension(32767, 25));
247 ingestRunningPanel.setMinimumSize(
new java.awt.Dimension(10, 25));
248 ingestRunningPanel.setPreferredSize(
new java.awt.Dimension(10, 25));
249 gridBagConstraints =
new java.awt.GridBagConstraints();
250 gridBagConstraints.gridx = 0;
251 gridBagConstraints.gridy = 0;
252 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
253 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
254 tablePanel.add(ingestRunningPanel, gridBagConstraints);
255 gridBagConstraints =
new java.awt.GridBagConstraints();
256 gridBagConstraints.gridx = 0;
257 gridBagConstraints.gridy = 2;
258 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
259 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
260 gridBagConstraints.weightx = 1.0;
261 gridBagConstraints.weighty = 1.0;
262 gridBagConstraints.insets =
new java.awt.Insets(2, 0, 0, 0);
264 gridBagConstraints =
new java.awt.GridBagConstraints();
265 gridBagConstraints.gridx = 0;
266 gridBagConstraints.gridy = 4;
267 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
268 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
269 gridBagConstraints.weightx = 1.0;
270 gridBagConstraints.weighty = 1.0;
271 gridBagConstraints.insets =
new java.awt.Insets(2, 0, 0, 0);
272 tablePanel.add(downloadsPane, gridBagConstraints);
273 gridBagConstraints =
new java.awt.GridBagConstraints();
274 gridBagConstraints.gridx = 0;
275 gridBagConstraints.gridy = 6;
276 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
277 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
278 gridBagConstraints.weightx = 1.0;
279 gridBagConstraints.weighty = 1.0;
280 gridBagConstraints.insets =
new java.awt.Insets(2, 0, 0, 0);
281 tablePanel.add(attachmentsPane, gridBagConstraints);
283 org.openide.awt.Mnemonics.setLocalizedText(openDocsLabel,
org.openide.util.NbBundle.getMessage(
RecentFilesPanel.class,
"RecentFilesPanel.openDocsLabel.text"));
284 gridBagConstraints =
new java.awt.GridBagConstraints();
285 gridBagConstraints.gridx = 0;
286 gridBagConstraints.gridy = 1;
287 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
288 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
289 tablePanel.add(openDocsLabel, gridBagConstraints);
291 org.openide.awt.Mnemonics.setLocalizedText(downloadLabel,
org.openide.util.NbBundle.getMessage(
RecentFilesPanel.class,
"RecentFilesPanel.downloadLabel.text"));
292 gridBagConstraints =
new java.awt.GridBagConstraints();
293 gridBagConstraints.gridx = 0;
294 gridBagConstraints.gridy = 3;
295 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
296 gridBagConstraints.insets =
new java.awt.Insets(20, 0, 0, 0);
297 tablePanel.add(downloadLabel, gridBagConstraints);
299 org.openide.awt.Mnemonics.setLocalizedText(attachmentLabel,
org.openide.util.NbBundle.getMessage(
RecentFilesPanel.class,
"RecentFilesPanel.attachmentLabel.text"));
300 gridBagConstraints =
new java.awt.GridBagConstraints();
301 gridBagConstraints.gridx = 0;
302 gridBagConstraints.gridy = 5;
303 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
304 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
305 gridBagConstraints.insets =
new java.awt.Insets(20, 0, 0, 0);
306 tablePanel.add(attachmentLabel, gridBagConstraints);
308 scrollPane.setViewportView(tablePanel);
310 add(scrollPane, java.awt.BorderLayout.CENTER);
JTablePanel< T > setColumnModel(TableColumnModel columnModel)
List< RecentFileDetails > getRecentlyOpenedDocuments(DataSource dataSource, int maxCount)
javax.swing.JPanel openedDocPane
final RecentFilesSummary dataHandler
static final long serialVersionUID
static final String EMAIL_PARSER_MODULE_NAME
static final String RECENT_ACTIVITY_MODULE_NAME
javax.swing.JPanel downloadsPane
List< RecentDownloadDetails > getRecentDownloads(DataSource dataSource, int maxCount)
void fetchInformation(DataSource dataSource)
void initalizeAttchementsTable()
static final String RECENT_ACTIVITY_FACTORY
javax.swing.JPanel attachmentsPane
List< RecentAttachmentDetails > getRecentAttachments(DataSource dataSource, int maxCount)
final List< JTablePanel<?> > tablePanelList
void onNewDataSource(DataSource dataSource)
void initalizeOpenDocsTable()
static< T > TableColumnModel getTableColumnModel(List< ColumnModel< T >> columns)
final List< DataFetchWorker.DataFetchComponents< DataSource,?> > dataFetchComponents
static< T > ListTableModel< T > getTableModel(List< ColumnModel< T >> columns)
void initalizeDownloadTable()
final IngestRunningLabel ingestRunningLabel
RecentFilesPanel(RecentFilesSummary dataHandler)
final JTablePanel< T > setModel(ListTableModel< T > tableModel)
static final String EMAIL_PARSER_FACTORY
JTablePanel< T > setKeyFunction(Function< T,?extends Object > keyFunction)