Package org.jwall.web.policy.abstraction

Examples of org.jwall.web.policy.abstraction.ParameterType


      Properties p = new Properties();
      p.load(in);

      for (Object key : p.keySet()) {
        this.lm.add(new ParameterType(key.toString(), p.getProperty(key
            .toString())));
      }

    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here


        Object o = super.getCellEditorValue();
        if( cancelled )
            return o;

        if( node.getType() == TreeNode.PARAMETER_TYPE ){
            ParameterType param = (ParameterType) node;
            param.setName( name.getText() );
            param.setRegexp( value.getText() );

            return param;
        }

        return o;
View Full Code Here

                up.setBorder( null );
                JPanel up1 = new JPanel( new FlowLayout( FlowLayout.LEFT ) );
                up1.setOpaque( false );
                up1.setBorder( null );
               
                ParameterType param = (ParameterType) node;
                JLabel l1 = new JLabel("Name: ");
                l1.setFont(f);
                l1.setAlignmentY( Component.CENTER_ALIGNMENT );
                //p.add( l1 );

                String v = param.getName();
                name = new JTextField( v, v.length() + 2 );
                name.addKeyListener( this );
                name.setFont( f );
                name.setAlignmentY( Component.CENTER_ALIGNMENT );
                name.setAlignmentX( Component.LEFT_ALIGNMENT );
                //p.add( name );

                up1.add( l1 );
                up1.add( name );
                up.add( up1, BorderLayout.NORTH );
               
                JLabel l2 = new JLabel("Type: ");
                l2.setFont(f);
                l2.setAlignmentY( Component.CENTER_ALIGNMENT );
                //p.add( l2 );
                JPanel up2 = new JPanel( new FlowLayout( FlowLayout.LEFT ) );
                up2.setBorder( null );
                up2.add( l2 );
               
                v = param.getRegexp();
                if( v == null )
                    v = "";
                value = new JTextField( v, v.trim().length() + 2 );
                value.addKeyListener( this );
                value.addFocusListener( this );
View Full Code Here

        oldValue = value.getText();
    }

    public void selectionFinished( Object selected, SelectionDialog dialog ){
        if( selected != null && selected instanceof ParameterType ){
            ParameterType pt = (ParameterType) selected;
            if( !cancelled)
                value.setText( "${" + pt.getName() + "}" );
            else
                value.setText( oldValue );
        } else
            value.setText( oldValue );
       
View Full Code Here

    LinkedList<ParameterType> types = new LinkedList<ParameterType>();
    ListFilter<ParameterType> filter = this.getFilter();

    Iterator<ParameterType> it = profile.getParameterTypes().iterator();
    while (it.hasNext()) {
      ParameterType pt = it.next();
      if (filter.matches(pt))
        types.add(pt);
    }

    return types;
View Full Code Here

TOP

Related Classes of org.jwall.web.policy.abstraction.ParameterType

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.