buffer.append(" id=\"");
buffer.append(id);
buffer.append("\"");
}
ModelMenuItem menuItem = link.getLinkMenuItem();
/*
boolean isSelected = menuItem.isSelected(context);
String style = null;
if (isSelected) {
style = menuItem.getSelectedStyle();
} else {
style = link.getStyle(context);
if (UtilValidate.isEmpty(style))
style = menuItem.getTitleStyle();
if (UtilValidate.isEmpty(style))
style = menuItem.getWidgetStyle();
}
if (menuItem.getDisabled()) {
style = menuItem.getDisabledTitleStyle();
}
if (UtilValidate.isNotEmpty(style)) {
buffer.append(" class=\"");
buffer.append(style);
buffer.append("\"");
}
*/
String name = link.getName(context);
if (UtilValidate.isNotEmpty(name)) {
buffer.append(" name=\"");
buffer.append(name);
buffer.append("\"");
}
String targetWindow = link.getTargetWindow(context);
if (UtilValidate.isNotEmpty(targetWindow)) {
buffer.append(" target=\"");
buffer.append(targetWindow);
buffer.append("\"");
}
String target = link.getTarget(context);
if (menuItem.getDisabled()) {
target = null;
}
if (UtilValidate.isNotEmpty(target)) {
buffer.append(" href=\"");
String urlMode = link.getUrlMode();