Go to the documentation of this file.
19package org.sleuthkit.autopsy.datamodel;
21import java.util.ArrayList;
23import javax.swing.Action;
24import org.openide.nodes.Sheet;
25import org.openide.util.NbBundle;
26import org.sleuthkit.datamodel.Pool;
27import org.sleuthkit.datamodel.Tag;
32public class PoolNode extends AbstractContentNode<Pool> {
42 static String nameForPool(Pool pool) {
43 return pool.getType().getName();
54 String poolName = nameForPool(pool);
55 this.setDisplayName(poolName);
57 this.setIconBaseWithExtension(
"org/sleuthkit/autopsy/images/pool-icon.png");
69 List<Action> actionsList =
new ArrayList<>();
71 for (Action a : super.getActions(
true)) {
75 return actionsList.toArray(
new Action[actionsList.size()]);
80 "PoolNode.createSheet.name.name=Name",
81 "PoolNode.createSheet.name.displayName=Name",
82 "PoolNode.createSheet.name.desc=no description",
83 "PoolNode.createSheet.type.name=Type",
84 "PoolNode.createSheet.type.displayName=Type",
85 "PoolNode.createSheet.type.desc=no description",
89 Sheet sheet = super.createSheet();
90 Sheet.Set sheetSet = sheet.get(Sheet.PROPERTIES);
91 if (sheetSet ==
null) {
92 sheetSet = Sheet.createPropertiesSet();
97 sheetSet.put(
new NodeProperty<>(Bundle.PoolNode_createSheet_name_name(),
98 Bundle.PoolNode_createSheet_name_displayName(),
99 Bundle.PoolNode_createSheet_name_desc(),
100 this.getDisplayName()));
101 sheetSet.put(
new NodeProperty<>(Bundle.PoolNode_createSheet_type_name(),
102 Bundle.PoolNode_createSheet_type_displayName(),
103 Bundle.PoolNode_createSheet_type_desc(),
104 pool.getType().getName()));
111 return visitor.
visit(
this);
121 return visitor.
visit(
this);
126 return getClass().getName();
138 return new ArrayList<>();
List< Tag > getAllTagsFromDatabase()
Action[] getActions(boolean popup)
T visit(DataSourceFilesNode in)
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.