src/java/de/uapcore/lightpit/MenuEntry.java

changeset 11
737ab27e37b3
parent 10
89e3e6e28b69
child 24
8137ec335416
equal deleted inserted replaced
10:89e3e6e28b69 11:737ab27e37b3
35 * Objects of this class are internally instantiated by the 35 * Objects of this class are internally instantiated by the
36 * {@link ModuleManager}. 36 * {@link ModuleManager}.
37 */ 37 */
38 public class MenuEntry { 38 public class MenuEntry {
39 39
40 /**
41 * Resource key for the menu label.
42 */
40 private ResourceKey resourceKey; 43 private ResourceKey resourceKey;
44
45 /**
46 * Path name of the module, linked by this menu entry.
47 */
41 private String pathName; 48 private String pathName;
42 49
43 public MenuEntry() { 50 public MenuEntry() {
44 } 51 }
45 52
46 public MenuEntry(ResourceKey resourceKey, String pathName) { 53 public MenuEntry(ResourceKey resourceKey, String pathName) {
47 this.resourceKey = resourceKey; 54 this.resourceKey = resourceKey;
48 this.pathName = pathName; 55 this.pathName = pathName;
49 } 56 }
50 57
51 /**
52 * Sets the resource key, which is used to look up the menu label.
53 *
54 * @param resourceKey the key for the resource bundle
55 */
56 public void setResourceKey(ResourceKey resourceKey) { 58 public void setResourceKey(ResourceKey resourceKey) {
57 this.resourceKey = resourceKey; 59 this.resourceKey = resourceKey;
58 } 60 }
59 61
60 /**
61 * Retrieves the resource key.
62 *
63 * @return the key for the resource bundle
64 */
65 public ResourceKey getResourceKey() { 62 public ResourceKey getResourceKey() {
66 return resourceKey; 63 return resourceKey;
67 } 64 }
68 65
69 /**
70 * Sets the path name of the web page accessed via this menu entry.
71 *
72 * @param pathName path name relative to the context path
73 */
74 public void setPathName(String pathName) { 66 public void setPathName(String pathName) {
75 this.pathName = pathName; 67 this.pathName = pathName;
76 } 68 }
77 69
78 /**
79 * Retrieves the path name of the web page accessed via this menu entry.
80 *
81 * @return path name relative to the context path
82 */
83 public String getPathName() { 70 public String getPathName() {
84 return pathName; 71 return pathName;
85 } 72 }
86 73
87 } 74 }

mercurial