19 package org.sleuthkit.autopsy.datamodel;
21 import org.openide.nodes.Sheet;
22 import org.openide.util.NbBundle;
35 localFileDataSource = ld;
36 this.setIconBaseWithExtension(
"org/sleuthkit/autopsy/images/fileset-icon-16.png");
40 @NbBundle.Messages({
"LocalFilesDataSourceNode.createSheet.size.name=Size (Bytes)",
41 "LocalFilesDataSourceNode.createSheet.size.displayName=Size (Bytes)",
42 "LocalFilesDataSourceNode.createSheet.size.desc=Size of the data source in bytes.",
43 "LocalFilesDataSourceNode.createSheet.type.name=Type",
44 "LocalFilesDataSourceNode.createSheet.type.displayName=Type",
45 "LocalFilesDataSourceNode.createSheet.type.desc=Type of the image.",
46 "LocalFilesDataSourceNode.createSheet.type.text=Logical File Set",
47 "LocalFilesDataSourceNode.createSheet.timezone.name=Timezone",
48 "LocalFilesDataSourceNode.createSheet.timezone.displayName=Timezone",
49 "LocalFilesDataSourceNode.createSheet.timezone.desc=Timezone of the image",
50 "LocalFilesDataSourceNode.createSheet.deviceId.name=Device ID",
51 "LocalFilesDataSourceNode.createSheet.deviceId.displayName=Device ID",
52 "LocalFilesDataSourceNode.createSheet.deviceId.desc=Device ID of the image",
53 "LocalFilesDataSourceNode.createSheet.name.name=Name",
54 "LocalFilesDataSourceNode.createSheet.name.displayName=Name",
55 "LocalFilesDataSourceNode.createSheet.name.desc=no description",
56 "LocalFilesDataSourceNode.createSheet.noDesc=no description",})
58 Sheet sheet =
new Sheet();
59 Sheet.Set sheetSet = Sheet.createPropertiesSet();
62 sheetSet.put(
new NodeProperty<>(Bundle.LocalFilesDataSourceNode_createSheet_name_name(),
63 Bundle.LocalFilesDataSourceNode_createSheet_name_displayName(),
64 Bundle.LocalFilesDataSourceNode_createSheet_name_desc(),
67 sheetSet.put(
new NodeProperty<>(Bundle.LocalFilesDataSourceNode_createSheet_type_name(),
68 Bundle.LocalFilesDataSourceNode_createSheet_type_displayName(),
69 Bundle.LocalFilesDataSourceNode_createSheet_type_desc(),
70 Bundle.LocalFilesDataSourceNode_createSheet_type_text()));
72 sheetSet.put(
new NodeProperty<>(Bundle.LocalFilesDataSourceNode_createSheet_size_name(),
73 Bundle.LocalFilesDataSourceNode_createSheet_size_displayName(),
74 Bundle.LocalFilesDataSourceNode_createSheet_size_desc(),
75 this.content.getSize()));
77 sheetSet.put(
new NodeProperty<>(Bundle.LocalFilesDataSourceNode_createSheet_timezone_name(),
78 Bundle.LocalFilesDataSourceNode_createSheet_timezone_displayName(),
79 Bundle.LocalFilesDataSourceNode_createSheet_timezone_desc(),
82 sheetSet.put(
new NodeProperty<>(Bundle.LocalFilesDataSourceNode_createSheet_deviceId_name(),
83 Bundle.LocalFilesDataSourceNode_createSheet_deviceId_displayName(),
84 Bundle.LocalFilesDataSourceNode_createSheet_deviceId_desc(),
85 localFileDataSource.getDeviceId()));
91 public <T> T accept(ContentNodeVisitor<T> visitor) {
92 return visitor.visit(
this);
96 public <T> T accept(DisplayableItemNodeVisitor<T> visitor) {
97 return visitor.visit(
this);
final LocalFilesDataSource localFileDataSource
LocalFilesDataSourceNode(LocalFilesDataSource ld)