sb.appendHtmlConstant("<h2>");
sb.appendEscaped(colGroupName);
sb.appendHtmlConstant("</h2><table>");
for (int i = 0; i < shortcuts.size(); i++)
{
ShortcutInfo info = shortcuts.get(i);
if (info.getDescription() == null ||
info.getShortcuts().size() == 0 ||
!info.getGroupName().equals(colGroupName))
{
continue;
}
sb.appendHtmlConstant("<tr><td><strong>");
sb.appendHtmlConstant(
StringUtil.joinStrings(info.getShortcuts(), ", "));
sb.appendHtmlConstant("</strong></td><td>");
sb.appendEscaped(info.getDescription());
sb.appendHtmlConstant("</td></tr>");
}
sb.appendHtmlConstant("</table>");
}
sb.appendHtmlConstant("</td>");