KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > genimen > djeneric > tools > generator > tree > GlobalTemplateNode


1 package com.genimen.djeneric.tools.generator.tree;
2
3 import javax.swing.ImageIcon JavaDoc;
4
5 import com.genimen.djeneric.repository.exceptions.DjenericException;
6 import com.genimen.djeneric.tools.generator.Generator;
7 import com.genimen.djeneric.tools.generator.util.Template;
8 import com.genimen.djeneric.tools.specifier.tree.DjenericTreeNode;
9
10 public class GlobalTemplateNode extends DjenericTreeNode
11 {
12   private static final long serialVersionUID = 1L;
13   Template _template;
14
15   public GlobalTemplateNode(Template template)
16   {
17     _template = template;
18   }
19
20   public Template getTemplate()
21   {
22     return _template;
23   }
24
25   public String JavaDoc toString()
26   {
27     return _template.getModuleName();
28   }
29
30   public void reload() throws DjenericException
31   {
32   }
33
34   public void expandNode() throws Exception JavaDoc
35   {
36   }
37
38   public ImageIcon JavaDoc getImageIcon()
39   {
40     return Generator.getImageIcon("globaltemplate.gif");
41   }
42
43   public void delete() throws Exception JavaDoc
44   {
45   }
46
47   public boolean canDelete()
48   {
49     return false;
50   }
51
52   public boolean canCreate()
53   {
54     return false;
55   }
56
57   public boolean canFilter()
58   {
59     return false;
60   }
61
62   public boolean canEdit()
63   {
64     return false;
65   }
66
67   public void filter()
68   {
69   }
70
71 }
Popular Tags