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

changeset 109
2e0669e814ff
parent 97
602f75801644
     1.1 --- a/src/main/java/de/uapcore/lightpit/MenuEntry.java	Thu Oct 08 18:28:16 2020 +0200
     1.2 +++ b/src/main/java/de/uapcore/lightpit/MenuEntry.java	Thu Oct 08 20:16:47 2020 +0200
     1.3 @@ -50,33 +50,12 @@
     1.4       */
     1.5      private boolean active = false;
     1.6  
     1.7 -    /**
     1.8 -     * The menu level.
     1.9 -     */
    1.10 -    private int level;
    1.11 -
    1.12      public MenuEntry(ResourceKey resourceKey, String pathName) {
    1.13 -        this(0, resourceKey, pathName);
    1.14 -    }
    1.15 -
    1.16 -    public MenuEntry(String text, String pathName) {
    1.17 -        this(0, text, pathName);
    1.18 -    }
    1.19 -
    1.20 -    public MenuEntry(int level, ResourceKey resourceKey, String pathName) {
    1.21 -        this.level = level;
    1.22          this.text = null;
    1.23          this.resourceKey = resourceKey;
    1.24          this.pathName = pathName;
    1.25      }
    1.26  
    1.27 -    public MenuEntry(int level, String text, String pathName) {
    1.28 -        this.level = level;
    1.29 -        this.text = text;
    1.30 -        this.resourceKey = null;
    1.31 -        this.pathName = pathName;
    1.32 -    }
    1.33 -
    1.34      public ResourceKey getResourceKey() {
    1.35          return resourceKey;
    1.36      }
    1.37 @@ -94,14 +73,6 @@
    1.38      }
    1.39  
    1.40      public void setActive(boolean active) {
    1.41 -        this.active = true;
    1.42 -    }
    1.43 -
    1.44 -    public int getLevel() {
    1.45 -        return level;
    1.46 -    }
    1.47 -
    1.48 -    public void setLevel(int level) {
    1.49 -        this.level = level;
    1.50 +        this.active = active;
    1.51      }
    1.52  }

mercurial