Details | Last modification | View Log | SVN | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 15 | arune | 1 | /* |
| 2 | * File created by arune |
||
| 3 | */ |
||
| 4 | package Macbeth.Modules.modMenuSystem; |
||
| 5 | |||
| 6 | |||
| 7 | /** |
||
| 8 | * Keeps track of all modules that have requested as |
||
| 9 | * a submenu module. |
||
| 10 | * @author arune |
||
| 11 | */ |
||
| 12 | public class SubMenu { |
||
| 13 | |||
| 14 | private String module; |
||
| 15 | private String displayName; |
||
| 16 | private String displayDesc; |
||
| 17 | private boolean visible; |
||
| 18 | |||
| 19 | |||
| 20 | /** |
||
| 21 | * Creates a new instance of SubMenu. |
||
| 22 | */ |
||
| 23 | public SubMenu(String module, String displayName, String displayDesc, boolean visible) { |
||
| 24 | this.module = module; |
||
| 25 | this.displayName = displayName; |
||
| 26 | this.displayDesc = displayDesc; |
||
| 27 | this.visible = visible; |
||
| 28 | } |
||
| 29 | |||
| 30 | |||
| 31 | public boolean isVisible() { |
||
| 32 | return visible; |
||
| 33 | } |
||
| 34 | |||
| 35 | public String getDisplayName() { |
||
| 36 | return displayName; |
||
| 37 | } |
||
| 38 | |||
| 39 | public String getModuleName() { |
||
| 40 | return module; |
||
| 41 | } |
||
| 42 | |||
| 43 | public String getDisplayDesc() { |
||
| 44 | return displayDesc; |
||
| 45 | } |
||
| 46 | |||
| 47 | } |