Package org.jwall.web.filter.ids

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


            return this;
        }

        if( arg1.getType() == TreeNode.INCLUDE_FILTER_NODE ){
            IncludeFilterNode include = (IncludeFilterNode) arg1;
            StringBuffer s = new StringBuffer("<html>Filter tags: ");

            for( int i = 0; i < include.getTags().length; i++ ){
                s.append( "<b>" + include.getTags()[i] + "</b>");
                if( i + 1 < include.getTags().length )
                    s.append(", ");
            }

            s.append("</html>");
            setText( s.toString() );
View Full Code Here


      return res;
    }

    if (nodeType == TreeNode.INCLUDE_FILTER_NODE) {
      IncludeFilterNode inc = (IncludeFilterNode) node;
      if (name.getText() != null)
        inc.setTags(name.getText());

      return inc;
    }

    if (nodeType == TreeNode.CHECK_TOKEN_NODE) {
View Full Code Here

        name.setText(ctx.getBase());
      p.add(name);
    }

    if (node.getType() == TreeNode.INCLUDE_FILTER_NODE) {
      IncludeFilterNode inc = (IncludeFilterNode) node;

      JLabel l1 = new JLabel("Include filters: ");
      l1.setFont(f);
      l1.setAlignmentY(Component.CENTER_ALIGNMENT);
      p.add(l1);

      name = new JTextField(10);
      name.addKeyListener(this);
      name.setAlignmentY(Component.CENTER_ALIGNMENT);
      name.setText(inc.getTagsAsString());

      p.add(name);
    }

    if (node.getType() == TreeNode.CHECK_TOKEN_NODE) {
View Full Code Here

        //
      }

      if (AbstractTreeAction.TREE_INSERT_FILTER_TAGS == e
          .getActionCommand()) {
        IncludeFilterNode inc = new IncludeFilterNode();
        node.add(inc);
        rmodel.notify(node);

        Object[] path = PolicyTreeModel.getPath(inc);
        this.jtree.startEditingAtPath(new TreePath(path));
View Full Code Here

        d.setVisible(true);
      }

      if (AbstractTreeAction.TREE_INSERT_FILTER_TAGS == e
          .getActionCommand()) {
        IncludeFilterNode include = new IncludeFilterNode();
        node.add(include);
        treeModel.notify(node);
      }

    } catch (Exception se) {
View Full Code Here

TOP

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

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.