@Service(value="adminToolMenuUtils") public class AdminToolMenuUtils extends Object
| Constructor and Description |
|---|
AdminToolMenuUtils() |
| Modifier and Type | Method and Description |
|---|---|
String |
getBreadcrumb(MenuEntry actualEntry,
String separator)
return
|
List<MenuEntry> |
getBreadcrumbList(MenuEntry actualEntry)
returns a linked list of reverse resolution o menu structure
|
List<AdminComponent> |
getComponents()
collects the components from adminTool
|
String |
getListItemClass(MenuEntry activeMenu,
MenuEntry actualEntry)
checks
#isActiveInMenuTree(String, MenuEntry) and if the
actualEntry has sub entries and returns the html class name |
String |
getMenuName(javax.servlet.http.HttpServletRequest request,
String overrideName)
retuns the menu name for given requestUrl or the overrideName if set.
|
boolean |
hasMenuEntry(AdminComponent component,
MenuEntry activeMenue)
checks if the activeMenue is part of given component
|
boolean |
isActiveInMenuTree(MenuEntry activeMenu,
MenuEntry actualEntry)
checks if actualEntry contains the activeMenuName in entry itself and its
sub entries
|
static String |
normalizeTarget(String target) |
static <T> Collector<T,?,List<T>> |
toListReversed()
reverse collector
|
public List<AdminComponent> getComponents()
public String getMenuName(javax.servlet.http.HttpServletRequest request, String overrideName)
request - overrideName - (optional)public String getListItemClass(MenuEntry activeMenu, MenuEntry actualEntry)
#isActiveInMenuTree(String, MenuEntry) and if the
actualEntry has sub entries and returns the html class nameactiveMenuName - name of the active MenuEntry (set in controller)actualEntry - actual iterated objectpublic boolean isActiveInMenuTree(MenuEntry activeMenu, MenuEntry actualEntry)
activeMenuName - actualEntry - public String getBreadcrumb(MenuEntry actualEntry, String separator)
actualEntry - separator - public List<MenuEntry> getBreadcrumbList(MenuEntry actualEntry)
actualEntry - public boolean hasMenuEntry(AdminComponent component, MenuEntry activeMenue)
component - the AdminComponent which should contain the activeMenueactiveMenue - the menue to checkCopyright © 2016–2017. All rights reserved.