20 package org.sleuthkit.autopsy.commonfilesearch;
22 import java.util.List;
23 import org.openide.nodes.ChildFactory;
24 import org.openide.nodes.Children;
25 import org.openide.nodes.Node;
26 import org.openide.nodes.Sheet;
27 import org.openide.util.NbBundle;
45 "CommonAttributeValueNode.CommonAttributeValueNode.format=Value: %s"
53 super(Children.create(
54 new FileInstanceNodeFactory(data),
true));
60 this.setDisplayName(String.format(Bundle.CommonAttributeValueNode_CommonAttributeValueNode_format(), this.
value));
61 this.setIconBaseWithExtension(
"org/sleuthkit/autopsy/images/fileset-icon-16.png");
69 int getCommonFileCount() {
82 String getDataSources() {
96 "ValueNode.createSheet.noDescription= "
100 Sheet sheet =
new Sheet();
101 Sheet.Set sheetSet = sheet.get(Sheet.PROPERTIES);
102 if (sheetSet == null) {
103 sheetSet = Sheet.createPropertiesSet();
107 final String NO_DESCR = Bundle.ValueNode_createSheet_noDescription();
109 sheetSet.put(
new NodeProperty<>(Bundle.CommonFilesSearchResultsViewerTable_pathColLbl(), Bundle.CommonFilesSearchResultsViewerTable_pathColLbl(), NO_DESCR,
""));
110 sheetSet.put(
new NodeProperty<>(Bundle.CommonFilesSearchResultsViewerTable_dataSourceColLbl(), Bundle.CommonFilesSearchResultsViewerTable_dataSourceColLbl(), NO_DESCR, this.getDataSources()));
117 return visitor.
visit(
this);
127 return getClass().getName();
134 static class FileInstanceNodeFactory
extends ChildFactory<AbstractCommonAttributeInstance> {
139 this.descendants = descendants;
143 protected boolean createKeys(List<AbstractCommonAttributeInstance> list) {
149 protected Node[] createNodesForKey(AbstractCommonAttributeInstance searchResult) {
150 return searchResult.generateNodes();
final int commonFileCount
T visit(DataSourcesNode in)
CommonAttributeValueNode(CommonAttributeValue data)
Collection< AbstractCommonAttributeInstance > getInstances()