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

changeset 77
192298f8161f
parent 70
821c4950b619
equal deleted inserted replaced
76:82f71fb1758a 77:192298f8161f
58 * @return the relative module path 58 * @return the relative module path
59 */ 59 */
60 String modulePath(); 60 String modulePath();
61 61
62 /** 62 /**
63 * Returns the properties key for the menu label.
64 * <p>
65 * Set this string to empty string, if the module should be hidden from
66 * the menu.
67 *
68 * @return the properties key
69 */
70 String menuKey() default "menuLabel";
71
72 /**
73 * Returns the properties key for the page title.
74 * <p>
75 * By default this is the same as the menu label.
76 *
77 * @return the properties key
78 */
79 String titleKey() default "menuLabel";
80
81 /**
82 * If set to <code>true</code>, this module is always loaded, but never 63 * If set to <code>true</code>, this module is always loaded, but never
83 * visible in the menu or the Web UI module manager. 64 * visible in the menu or the Web UI module manager.
84 * 65 *
85 * @return true, if this is a system module 66 * @return true, if this is a system module
86 */ 67 */
101 * <p> 82 * <p>
102 * Note, that only the properties which are interesting for the JSP pages 83 * Note, that only the properties which are interesting for the JSP pages
103 * are proxied by this object. 84 * are proxied by this object.
104 */ 85 */
105 class ELProxy { 86 class ELProxy {
106 private final String bundleBaseName, modulePath, menuKey, titleKey; 87 private final String bundleBaseName, modulePath;
107 88
108 public ELProxy(LightPITModule annotation) { 89 public ELProxy(LightPITModule annotation) {
109 bundleBaseName = annotation.bundleBaseName(); 90 bundleBaseName = annotation.bundleBaseName();
110 modulePath = annotation.modulePath(); 91 modulePath = annotation.modulePath();
111 menuKey = annotation.menuKey();
112 titleKey = annotation.titleKey();
113 } 92 }
114 93
115 public String getBundleBaseName() { 94 public String getBundleBaseName() {
116 return bundleBaseName; 95 return bundleBaseName;
117 } 96 }
118
119 public String getMenuKey() {
120 return menuKey;
121 }
122
123 public String getModulePath() { 97 public String getModulePath() {
124 return modulePath; 98 return modulePath;
125 } 99 }
126
127 public String getTitleKey() {
128 return titleKey;
129 }
130 } 100 }
131 } 101 }

mercurial