out.write("\n<ul class=\""); //$NON-NLS-1$
out.write(expandedCollapsed);
out.write("\">\n"); //$NON-NLS-1$
}
for (int i = 0; i < size; ++i) {
IIndexTopic topic = (IIndexTopic)topics.get(i);
out.write("<li>"); //$NON-NLS-1$
if (usePlusMinus && advancedUI) {
out.write("<img class=\"h\" src=\""); //$NON-NLS-1$
out.write(imagesDirectory);
out.write(plusMinusImage);
out.write("\" alt=\"\">"); //$NON-NLS-1$
}
out.write("<a href=\""); //$NON-NLS-1$
out.write(UrlUtil.getHelpURL(topic.getHref()));
out.write("\"><img src=\""); //$NON-NLS-1$
out.write(imagesDirectory);
out.write("/topic.gif\" "); //$NON-NLS-1$
if (!advancedUI) {
out.write("border=0 "); //$NON-NLS-1$
}
out.write("alt=\"\">"); //$NON-NLS-1$
out.write(UrlUtil.htmlEncode(topic.getLabel()));
out.write("</a></li>\n"); //$NON-NLS-1$
}
if (advancedUI) {
out.write("</ul>\n"); //$NON-NLS-1$
}