Package org.projectforge.web

Examples of org.projectforge.web.HtmlHelper


  public String getKost2ArtsAsHtml()
  {
    if (kost2Arts == null) {
      return "";
    }
    HtmlHelper html = new HtmlHelper();
    StringBuffer buf = new StringBuffer();
    boolean first = true;
    for (Kost2Art art : kost2Arts) {
      boolean suppress = true;
      if (art.isExistsAlready() == true) {
        if (first == false) {
          buf.append(", ");
        }
        if (art.isProjektStandard() == true) {
          buf.append("<span");
          html.attribute(buf, "style", "color: green;");
          buf.append(">").append(art.getFormattedId()).append("</span>");
        } else {
          buf.append(art.getFormattedId());
        }
        suppress = false;
      } else if (art.isProjektStandard() == true) {
        if (first == false) {
          buf.append(", ");
        }
        buf.append("<span");
        html.attribute(buf, "style", "text-decoration: line-through; color: gray;");
        buf.append(">").append(art.getFormattedId()).append("</span>");
        suppress = false;
      } else {
        // Suppress output;
      }
View Full Code Here

TOP

Related Classes of org.projectforge.web.HtmlHelper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.