Go to the documentation of this file.
20package org.sleuthkit.autopsy.commonpropertiessearch;
22import java.util.Collections;
23import java.util.Enumeration;
24import java.util.HashMap;
26import java.util.logging.Level;
27import org.sleuthkit.autopsy.coreutils.Logger;
28import javax.swing.table.TableColumn;
29import javax.swing.table.TableColumnModel;
30import org.openide.util.NbBundle;
31import org.sleuthkit.autopsy.corecomponents.DataResultViewerTable;
32import org.sleuthkit.autopsy.datamodel.AbstractAbstractFileNode;
51 Map<String, Integer> map =
new HashMap<>();
54 map.put(NbBundle.getMessage(
AbstractAbstractFileNode.class,
"AbstractAbstractFileNode.createSheet.comment.name"), 20);
56 map.put(Bundle.CommonFilesSearchResultsViewerTable_instancesColLbl(), 65);
57 map.put(Bundle.CommonFilesSearchResultsViewerTable_pathColLbl(), 300);
58 map.put(Bundle.CommonFilesSearchResultsViewerTable_caseColLbl(), 200);
59 map.put(Bundle.CommonFilesSearchResultsViewerTable_localPath(), 200);
60 map.put(Bundle.CommonFilesSearchResultsViewerTable_valueColLbl(), 200);
61 map.put(Bundle.CommonFilesSearchResultsViewerTable_dataSourceColLbl(), 200);
81 "CommonFilesSearchResultsViewerTable.noDescText= ",
82 "CommonFilesSearchResultsViewerTable.instancesColLbl=Instances",
83 "CommonFilesSearchResultsViewerTable.localPath=Parent Path in Current Case",
84 "CommonFilesSearchResultsViewerTable.pathColLbl=Parent Path",
85 "CommonFilesSearchResultsViewerTable.caseColLbl=Case",
86 "CommonFilesSearchResultsViewerTable.valueColLbl=Value",
87 "CommonFilesSearchResultsViewerTable.dataSourceColLbl=Data Source",
93 Enumeration<TableColumn> columnsEnumerator = model.getColumns();
94 while (columnsEnumerator.hasMoreElements()) {
96 TableColumn column = columnsEnumerator.nextElement();
98 final String headerValue = column.getHeaderValue().toString();
102 if (defaultWidth ==
null) {
104 LOGGER.log(Level.WARNING, String.format(
"Tried to set width on a column not supported by the CommonAttributesSearchResultsViewerTable: %s", headerValue));
106 column.setPreferredWidth(defaultWidth);
static final int DEFAULT_WIDTH
CommonAttributesSearchResultsViewerTable()
static final Map< String, Integer > COLUMN_WIDTHS
static final long serialVersionUID
static final Logger LOGGER
TableColumnModel getColumnModel()
void addTreeExpansionListener(TreeExpansionListener listener)
synchronized static Logger getLogger(String name)
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.