}
if (!(value instanceof FilterRule))
return this;
FilterRule rule = (FilterRule) value;
setBorder(new EmptyBorder(4, 4, 4, 4));
StringBuffer s = new StringBuffer("<html>Rule: <code>"
+ HTMLEntityEncode(rule.getRegex()) + "</code><br>");
s.append("Id: <b>" + rule.getId() + "</b>, ");
s.append("Tags: ");
Iterator<String> it = rule.getTags().iterator();
while (it.hasNext()) {
s.append("<b>" + it.next() + "</b>");
if (it.hasNext())
s.append(", ");
}
s.append("</html>");
setText(s.toString());
setToolTipText(rule.getDescription());
setIcon(WebPolicyEditor
.getIcon("org.jwall.web.filter.ids.IncludeFilterNode"));
return this;