src/main/java/de/uapcore/lightpit/LightPITModule.java

changeset 51
dd0a45ae25d7
parent 36
0f4f8f255c32
child 70
821c4950b619
equal deleted inserted replaced
50:2a90d105edec 51:dd0a45ae25d7
66 * @return the relative module path 66 * @return the relative module path
67 */ 67 */
68 String modulePath(); 68 String modulePath();
69 69
70 /** 70 /**
71 * Returns the properties key for the module name.
72 *
73 * @return the properties key
74 */
75 String nameKey() default "name";
76
77 /**
78 * Returns the properties key for the module description.
79 *
80 * @return the properties key
81 */
82 String descKey() default "description";
83
84
85 /**
86 * Returns the properties key for the menu label. 71 * Returns the properties key for the menu label.
87 * <p> 72 * <p>
88 * Set this string to empty string, if the module should be hidden from 73 * Set this string to empty string, if the module should be hidden from
89 * the menu. 74 * the menu.
90 * 75 *
124 * <p> 109 * <p>
125 * Note, that only the properties which are interesting for the JSP pages 110 * Note, that only the properties which are interesting for the JSP pages
126 * are proxied by this object. 111 * are proxied by this object.
127 */ 112 */
128 class ELProxy { 113 class ELProxy {
129 private final String bundleBaseName, modulePath, menuKey, titleKey, nameKey, descKey; 114 private final String bundleBaseName, modulePath, menuKey, titleKey;
130 115
131 public ELProxy(LightPITModule annotation) { 116 public ELProxy(LightPITModule annotation) {
132 bundleBaseName = annotation.bundleBaseName(); 117 bundleBaseName = annotation.bundleBaseName();
133 modulePath = annotation.modulePath(); 118 modulePath = annotation.modulePath();
134 menuKey = annotation.menuKey(); 119 menuKey = annotation.menuKey();
135 titleKey = annotation.titleKey(); 120 titleKey = annotation.titleKey();
136 nameKey = annotation.nameKey();
137 descKey = annotation.descKey();
138 } 121 }
139 122
140 public String getBundleBaseName() { 123 public String getBundleBaseName() {
141 return bundleBaseName; 124 return bundleBaseName;
142 } 125 }
150 } 133 }
151 134
152 public String getTitleKey() { 135 public String getTitleKey() {
153 return titleKey; 136 return titleKey;
154 } 137 }
155
156 public String getNameKey() {
157 return nameKey;
158 }
159
160 public String getDescKey() {
161 return descKey;
162 }
163
164 } 138 }
165 } 139 }

mercurial