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

changeset 11
737ab27e37b3
parent 10
89e3e6e28b69
child 24
8137ec335416
equal deleted inserted replaced
10:89e3e6e28b69 11:737ab27e37b3
42 public class Menu extends MenuEntry { 42 public class Menu extends MenuEntry {
43 43
44 private final List<MenuEntry> entries = new ArrayList<>(); 44 private final List<MenuEntry> entries = new ArrayList<>();
45 private final List<MenuEntry> immutableEntries = Collections.unmodifiableList(entries); 45 private final List<MenuEntry> immutableEntries = Collections.unmodifiableList(entries);
46 46
47 /**
48 * Class name of the module for which this menu is built.
49 */
50 private String moduleClassName;
51
52
47 public Menu() { 53 public Menu() {
48 super(); 54 super();
49 } 55 }
50 56
51 public Menu(ResourceKey resourceKey, String pathName) { 57 public Menu(String moduleClassName, ResourceKey resourceKey, String pathName) {
52 super(resourceKey, pathName); 58 super(resourceKey, pathName);
59 this.moduleClassName = moduleClassName;
60 }
61
62 public void setModuleClassName(String moduleClassName) {
63 this.moduleClassName = moduleClassName;
64 }
65
66 public String getModuleClassName() {
67 return moduleClassName;
53 } 68 }
54 69
55 /** 70 /**
56 * Sets a new list of menu entries for this menu. 71 * Sets a new list of menu entries for this menu.
57 * 72 *

mercurial