38 * {@link ModuleManager}. |
38 * {@link ModuleManager}. |
39 */ |
39 */ |
40 public class MenuEntry implements Comparable<MenuEntry> { |
40 public class MenuEntry implements Comparable<MenuEntry> { |
41 |
41 |
42 /** |
42 /** |
43 * Class name of the module for which this menu is built. |
|
44 */ |
|
45 private final String moduleClassName; |
|
46 |
|
47 /** |
|
48 * Resource key for the menu label. |
43 * Resource key for the menu label. |
49 */ |
44 */ |
50 private final ResourceKey resourceKey; |
45 private final ResourceKey resourceKey; |
51 |
46 |
52 /** |
47 /** |
57 /** |
52 /** |
58 * Sequence number to determine the ordering of the menu. |
53 * Sequence number to determine the ordering of the menu. |
59 */ |
54 */ |
60 private final int sequence; |
55 private final int sequence; |
61 |
56 |
62 public MenuEntry(String moduleClassName, ResourceKey resourceKey, String pathName, int sequence) { |
57 public MenuEntry(ResourceKey resourceKey, String pathName, int sequence) { |
63 this.moduleClassName = moduleClassName; |
|
64 this.resourceKey = resourceKey; |
58 this.resourceKey = resourceKey; |
65 this.pathName = pathName; |
59 this.pathName = pathName; |
66 this.sequence = sequence; |
60 this.sequence = sequence; |
67 } |
|
68 |
|
69 public String getModuleClassName() { |
|
70 return moduleClassName; |
|
71 } |
61 } |
72 |
62 |
73 public ResourceKey getResourceKey() { |
63 public ResourceKey getResourceKey() { |
74 return resourceKey; |
64 return resourceKey; |
75 } |
65 } |