|
|
@ -38,4 +38,16 @@ public class MenuManager { |
|
|
|
return this.currentMenu == null; |
|
|
|
} |
|
|
|
|
|
|
|
public String getFormattedMenuList() { |
|
|
|
StringBuilder result = new StringBuilder(); |
|
|
|
ArrayList<Menu> baseMenuList = this.menuList; |
|
|
|
if(!inRootMenu()) |
|
|
|
baseMenuList = currentMenu.getSubMenuList(); |
|
|
|
|
|
|
|
for(int i = 0; i < baseMenuList.size(); i++) |
|
|
|
result.append(i + 1).append(": ").append(baseMenuList.get(i).getName()).append("\n"); |
|
|
|
|
|
|
|
return result.toString(); |
|
|
|
} |
|
|
|
|
|
|
|
} |