Package org.jwall.web.policy.abstraction

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


            setText("<html><b>"+type.getName()+"</b><br>Regexp: <code>"+type.getRegexp()+"</code></html>");
            setIcon( Application.getIcon( type ) );
        }
       
        if( arg1.getType() == TreeNode.RESOURCE_CLASS ){
            ResourceClass rc = (ResourceClass) arg1;
            setText("<html>Class <b>" + rc.getName() + "</b></html>");
            setIcon( Application.getIcon( rc ) );
        }

        return this;
    }
View Full Code Here


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

    if (node.getType() == TreeNode.RESOURCE_CLASS) {
      ResourceClass rc = (ResourceClass) node;
      rc.setName(name.getText());

      return rc;
    }

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

  public void createUIComponents(TreeNode node) {
    log.debug("Creating ui components for {}", node.getClass());

    if (node.getType() == TreeNode.RESOURCE_CLASS) {

      ResourceClass rc = (ResourceClass) node;
      JLabel l1 = new JLabel("Resource Class: ");
      l1.setFont(f);
      l1.setAlignmentY(Component.CENTER_ALIGNMENT);
      p.add(l1);

      String v = rc.getName();
      name = new JTextField(v, v.length() + 2);
      name.setFont(f);
      name.addKeyListener(this);
      name.setAlignmentY(Component.CENTER_ALIGNMENT);
      p.add(name);
View Full Code Here

      if (AbstractTreeAction.TREE_INSERT_RESOURCE_CLASS == e
          .getActionCommand()) {

        log.finest("Inserting new resource-class");
        ResourceClass rc = new ResourceClass("rc-0");
        node.add(rc);
        treeModel.getProfile().add(rc);
        treeModel.notify(node);

        if (node.getParent() != null)
View Full Code Here

TOP

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

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.