renderBuffer.append("<div class = \"summary\" onclick = \"window.status = 'select:" + nodeID + "'\">");
// ... a simple string tag
if (woSimpleString) {
IWodBinding valueBinding = wodElement.getBindingNamed("value");
String text = valueBinding.getValue();
String textClassName;
if (valueBinding.isLiteral()) {
//text = text.replaceAll("^\"([^\"]+)\"", "$1");
textClassName = "text literal";
}
else if (valueBinding.isOGNL()) {
textClassName = "text ognl";
}
else {
textClassName = "text keypath";
}
renderBuffer.append("<div class = \"title\"></div> <div class = \"" + textClassName + "\">[" + text + "]</div>");
}
// ... a WO tag
else if (woTag) {
if (wodElement != null) {
if (WodHtmlUtils.isInline(nodeName)) {
String summaryName = wodElement.getElementType();
renderBuffer.append("<div class = \"title\"><span class = \"nodeName verbose\">" + summaryName + "</span></div>");
// Special case for the compact display of a conditional
if ("WOConditional".equals(summaryName)) {
String conditionValue = wodElement.getBindingValue("condition");
if (conditionValue != null) {
summaryName = conditionValue;
boolean negated = false;
IWodBinding negateBinding = wodElement.getBindingNamed("negate");
if (negateBinding != null) {
if (negateBinding.isTrueValue()) {
negated = true;
}
}
else if (nodeName.equals("wo:not")) {
negated = true;
}
if (negated) {
summaryName = "<span class = \"negate\">not</span> " + summaryName;
}
else if (negateBinding != null) {
summaryName = summaryName + " <span class = \"negate\">not = " + negateBinding.getValue() + "</span>";
}
}
}
// Special case for the compact display of a string
else if ("WOString".equals(summaryName)) {