data += "<div class=\"bd\" " + align + " >";
data += "<ul class=\"first-of-type\">";
int counter = 0;
Iterator<?> iterator = vector.iterator();
while (iterator.hasNext()) {
MenuInfo menuInfo = (MenuInfo) iterator.next();
String anchor = "";
if (menuInfo.getMenuType().equals(Constants.MENU_NOOPERATION)) {
anchor = "<span class=\"" + anchorstyle + "\">" + menuInfo.getMenuName() + "</span>";
}
else {
anchor = "<a href=\"" + menuInfo.getMenuUrl() + "\" " +
"class=\"" + anchorstyle + "\" " +
"onclick=\"javascrpt:window.open('" + menuInfo.getMenuUrl() + "', " + "'" + menuInfo.getMenuWindowTarget() + "' ";
if (menuInfo.getMenuWindowMode().trim().length() != 0) {
anchor += ", '" + menuInfo.getMenuWindowMode() + "'";
}
anchor += ");return false;\">";
anchor += menuInfo.getMenuName();
anchor += "</a>";
}
if (level == 0) {
data += "<li class=\"" + listyle + "\" class=\"first-of-type\">" + anchor + "";
}
else {
data += "<li class=\"" + listyle + "\">" + anchor + "";
}
if (menuInfo.getMenus().size() > 0) {
vertical = true;
data += generateMenuItem(menuInfo.getMenus(), id + counter, vertical, level + 1, styleClassSuffix) + "";
}
data += "</li>";
counter++;
}
data += "</ul>";