Search in sources :

Example 1 with UIText

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>");
}
Also used : AbstractField(cn.cerc.jpage.fields.AbstractField) UIText(cn.cerc.jui.vcl.UIText)

Aggregations

AbstractField (cn.cerc.jpage.fields.AbstractField)1 UIText (cn.cerc.jui.vcl.UIText)1