KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > testRename > MyDataNode


1 package testRename;
2
3 import org.openide.loaders.DataNode;
4 import org.openide.nodes.Children;
5
6 public class MyDataNode extends DataNode {
7     
8     private static final String JavaDoc IMAGE_ICON_BASE = "SET/PATH/TO/ICON/HERE";
9     
10     public MyDataNode(MyDataObject obj) {
11         super(obj, Children.LEAF);
12 // setIconBaseWithExtension(IMAGE_ICON_BASE);
13
}
14     
15 // /** Creates a property sheet. */
16
// protected Sheet createSheet() {
17
// Sheet s = super.createSheet();
18
// Sheet.Set ss = s.get(Sheet.PROPERTIES);
19
// if (ss == null) {
20
// ss = Sheet.createPropertiesSet();
21
// s.put(ss);
22
// }
23
// // TODO add some relevant properties: ss.put(...)
24
// return s;
25
// }
26

27 }
28
Popular Tags