UIPanelMenu panelMenu = findMenu(component);
if(panelMenu == null){
return;
}
UIPanelMenuGroup panelMenuGroup = (UIPanelMenuGroup)component;
boolean isTopLevel = isTopLevel(panelMenuGroup);
boolean isOpened = isOpened(context,component);
String defaultIconNodeClosed = null;
if(isTopLevel){
if(panelMenuGroup.isDisabled()){
defaultIconNodeClosed = panelMenu.getIconTopDisableGroup();
if(defaultIconNodeClosed == null || defaultIconNodeClosed.equals("")){
defaultIconNodeClosed = panelMenu.getIconDisabledGroup();
}
} else {
defaultIconNodeClosed = panelMenu.getIconCollapsedTopGroup();
if(defaultIconNodeClosed == null || defaultIconNodeClosed.equals("")){
defaultIconNodeClosed = panelMenu.getIconCollapsedGroup();
}
}
} else {
if(panelMenuGroup.isDisabled()){
defaultIconNodeClosed = panelMenu.getIconDisabledGroup();
} else {
defaultIconNodeClosed = panelMenu.getIconCollapsedGroup();
}
}
String defaultIconNodeOpened = null;
if(isTopLevel){
defaultIconNodeOpened = panelMenu.getIconExpandedTopGroup();
if(defaultIconNodeOpened == null || defaultIconNodeOpened.equals("")){
defaultIconNodeOpened = panelMenu.getIconExpandedGroup();
}
} else {
defaultIconNodeOpened = panelMenu.getIconExpandedGroup();
}
String iconExpanded = "";
String iconCollapsed = "";
iconExpanded = panelMenuGroup.isDisabled() ? panelMenuGroup.getIconDisabled() : panelMenuGroup.getIconExpanded();
iconCollapsed = panelMenuGroup.isDisabled() ? panelMenuGroup.getIconDisabled() : panelMenuGroup.getIconCollapsed();
String icon = null;
if(isOpened){
if(iconExpanded != null && !iconExpanded.equals("")){
if(iconExpanded.equals("none")){