buffer.append(",\""+PANEL_MENU_SPACER_ICON).append("\",\""+PANEL_MENU_SPACER_ICON+"\" ");
}
buffer.append(",\"\" ");
} else if(component instanceof UIPanelMenuGroup){
UIPanelMenuGroup group = (UIPanelMenuGroup)component;
String defaultIconNodeClosed = isTopLevel ? (group.isDisabled() ? panelMenu.getIconTopDisableGroup() : panelMenu.getIconCollapsedTopGroup()) : (group.isDisabled() ? panelMenu.getIconDisabledGroup() : panelMenu.getIconCollapsedGroup());
if(isTopLevel){
if(group.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(group.isDisabled()){
defaultIconNodeClosed = panelMenu.getIconDisabledGroup();
} else {
defaultIconNodeClosed = panelMenu.getIconCollapsedGroup();
}
}
String defaultIconNodeOpened = isTopLevel ? panelMenu.getIconExpandedTopGroup() : panelMenu.getIconExpandedGroup();
if(isTopLevel){
defaultIconNodeOpened = panelMenu.getIconExpandedTopGroup();
if(defaultIconNodeOpened == null || defaultIconNodeOpened.equals("")){
defaultIconNodeOpened = panelMenu.getIconExpandedGroup();
}
} else {
defaultIconNodeOpened = panelMenu.getIconExpandedGroup();
}
String defaultIconNodeOpenedSrc = getIconByType(defaultIconNodeOpened, isTopLevel,context, component);
String iconExpanded = group.isDisabled() ? group.getIconDisabled() : group.getIconExpanded();
String iconExpandedSource = getIconByType(iconExpanded,isTopLevel,context,component);
if(iconExpanded != null && !iconExpanded.equals("")){
buffer.append(",\"" + iconExpandedSource + '"');
} else if(defaultIconNodeOpened != null && !defaultIconNodeOpened.equals("")){
buffer.append(",\"" + defaultIconNodeOpenedSrc + '"');
} else {
buffer.append(",\"" + PANEL_MENU_SPACER_ICON + '"');
}
String defaultIconNodeClosedSrc = getIconByType(defaultIconNodeClosed, isTopLevel,context, component);
String iconCollapsed = group.isDisabled() ? group.getIconDisabled() : group.getIconCollapsed();
String iconCollapsedSource = getIconByType(iconCollapsed,isTopLevel,context,component);
if(iconCollapsed != null && !iconCollapsed.equals("")){
buffer.append(",\"" + iconCollapsedSource + '"');
} else if(defaultIconNodeClosed != null && !defaultIconNodeClosed.equals("")){
buffer.append(",\"" + defaultIconNodeClosedSrc + '"');