Package org.jwall.web.filter.ids

Examples of org.jwall.web.filter.ids.FilterRule


                setBackground( new Color( 0xFF, 0xFF, 0xCC ) );
            else
                setBackground( Color.WHITE );
        }
       
        FilterRule rule = (FilterRule) value;
        if( rule == null )
            return this;
       
        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() );

        return this;
    }
View Full Code Here


    }

    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;
View Full Code Here

TOP

Related Classes of org.jwall.web.filter.ids.FilterRule

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.