use of com.evolveum.midpoint.web.component.menu.SideBarMenuItem in project midpoint by Evolveum.
the class PageBase method getActiveMenu.
private <MI extends BaseMenuItem> MI getActiveMenu() {
LeftMenuPanel sideBarMenu = getSideBarMenuPanel();
if (sideBarMenu == null || !sideBarMenu.isVisible()) {
return null;
}
List<SideBarMenuItem> sideMenuItems = sideBarMenu.getItems();
if (CollectionUtils.isEmpty(sideMenuItems)) {
return null;
}
for (SideBarMenuItem sideBarMenuItem : sideMenuItems) {
MI activeMenu = sideBarMenuItem.getActiveMenu(PageBase.this);
if (activeMenu != null) {
return activeMenu;
}
}
return null;
}
Aggregations