48 /** |
48 /** |
49 * True if this menu entry is active. |
49 * True if this menu entry is active. |
50 */ |
50 */ |
51 private boolean active = false; |
51 private boolean active = false; |
52 |
52 |
53 /** |
|
54 * The menu level. |
|
55 */ |
|
56 private int level; |
|
57 |
|
58 public MenuEntry(ResourceKey resourceKey, String pathName) { |
53 public MenuEntry(ResourceKey resourceKey, String pathName) { |
59 this(0, resourceKey, pathName); |
|
60 } |
|
61 |
|
62 public MenuEntry(String text, String pathName) { |
|
63 this(0, text, pathName); |
|
64 } |
|
65 |
|
66 public MenuEntry(int level, ResourceKey resourceKey, String pathName) { |
|
67 this.level = level; |
|
68 this.text = null; |
54 this.text = null; |
69 this.resourceKey = resourceKey; |
55 this.resourceKey = resourceKey; |
70 this.pathName = pathName; |
|
71 } |
|
72 |
|
73 public MenuEntry(int level, String text, String pathName) { |
|
74 this.level = level; |
|
75 this.text = text; |
|
76 this.resourceKey = null; |
|
77 this.pathName = pathName; |
56 this.pathName = pathName; |
78 } |
57 } |
79 |
58 |
80 public ResourceKey getResourceKey() { |
59 public ResourceKey getResourceKey() { |
81 return resourceKey; |
60 return resourceKey; |