19 package org.sleuthkit.autopsy.datamodel;
21 import java.util.List;
22 import org.openide.nodes.AbstractNode;
23 import org.openide.nodes.ChildFactory;
24 import org.openide.nodes.Children;
25 import org.openide.nodes.Node;
45 super(Children.create(
new EmptyNodeChildren(displayedMessage),
true));
48 static class EmptyNodeChildren
extends ChildFactory<String> {
50 String displayedMessage;
52 private EmptyNodeChildren(String displayedMessage) {
53 this.displayedMessage = displayedMessage;
57 protected boolean createKeys(List<String> keys) {
58 keys.add(displayedMessage);
63 protected Node createNodeForKey(String key) {
64 return new MessageNode(key);
73 static class MessageNode
extends DisplayableItemNode {
75 MessageNode(String name) {
83 public boolean isLeafTypeNode() {
88 public <T> T accept(DisplayableItemNodeVisitor<T> visitor) {
89 return visitor.visit(
this);
93 public String getItemType() {
94 return getClass().getName();
EmptyNode(String displayedMessage)