src/java/de/uapcore/lightpit/Menu.java

changeset 11
737ab27e37b3
parent 10
89e3e6e28b69
child 24
8137ec335416
--- a/src/java/de/uapcore/lightpit/Menu.java	Sat Dec 16 20:19:28 2017 +0100
+++ b/src/java/de/uapcore/lightpit/Menu.java	Sun Dec 17 01:45:28 2017 +0100
@@ -44,12 +44,27 @@
     private final List<MenuEntry> entries = new ArrayList<>();
     private final List<MenuEntry> immutableEntries = Collections.unmodifiableList(entries);
     
+    /**
+     * Class name of the module for which this menu is built.
+     */
+    private String moduleClassName;
+    
+    
     public Menu() {
         super();
     }
     
-    public Menu(ResourceKey resourceKey, String pathName) {
+    public Menu(String moduleClassName, ResourceKey resourceKey, String pathName) {
         super(resourceKey, pathName);
+        this.moduleClassName = moduleClassName;
+    }
+    
+    public void setModuleClassName(String moduleClassName) {
+        this.moduleClassName = moduleClassName;
+    }
+
+    public String getModuleClassName() {
+        return moduleClassName;
     }
 
     /**

mercurial