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