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;
}