use of cn.cerc.jui.vcl.UIText in project summer-mis by cn-cerc.
the class UIFormVertical method outputFields.
private void outputFields(HtmlWriter html) {
html.print("<ul");
if (this.CSSClass != null)
html.print(" class=\"%s\"", this.CSSClass);
html.println(">");
for (AbstractField field : fields) {
if (!field.isHidden()) {
html.print("<li");
if (field.getRole() != null)
html.print(" role='%s'", field.getRole());
html.print(">");
field.output(html);
UIText mark = field.getMark();
if (mark != null) {
html.println("<a href=\"javascript:displaySwitch('%s')\">", field.getId());
html.println("<img src=\"%s\" />", UIConfig.GUIDE);
html.println("</a>");
html.println("</li>");
html.println("<li role=\"%s\" style=\"display: none;\">", field.getId());
html.print("<mark>");
if (mark.getContent() != null)
html.println("%s", mark.getContent());
for (String line : mark.getLines()) html.println("<p>%s</p>", line);
html.println("</mark>");
html.println("</li>");
} else {
html.println("</li>");
}
}
}
html.println("</ul>");
}
Aggregations