Examples of TCTreeNode


Examples of com.qspin.qtaste.ui.TCTreeNode

            nodeToAdd = checkIfDirectoryContainsTestScriptFile(file);
        }
        if (!nodeToAdd) {
            return;
        }
        TCTreeNode node = new TCTreeNode(fn, !fn.isTestcaseDir());
        final int NON_EXISTENT = -1;
        if (parent.getIndex(node) == NON_EXISTENT &&
                !file.isHidden()) {
            parent.add(node);
        }
View Full Code Here

Examples of com.qspin.qtaste.ui.TCTreeNode

        }

        protected void addNodesToDir(TreePath path) {
            Object obj = path.getLastPathComponent();
            if (obj instanceof TCTreeNode) {
                TCTreeNode tn = (TCTreeNode) obj;
                FileNode fn = (FileNode) tn.getUserObject();
                if (fn.isDir()) {
                    tn.removeAllChildren();
                    addTreeToDir(fn.getFile(), tn);
                    ((DefaultTreeModel) getModel()).reload(tn);
                }
            }
        }
View Full Code Here

Examples of com.qspin.qtaste.ui.TCTreeNode

            if (selectedPath == null) {
                return;
            }
            Object obj = selectedPath.getLastPathComponent();
            if (obj instanceof TCTreeNode) {
                TCTreeNode treeNode = (TCTreeNode) obj;
                int selectedRow = tree.getRowForPath(selectedPath);
                for (int i = 1; i < JTreeTable.this.getColumnCount(); i++) {
                    TristateCheckBox.State state = select ? TristateCheckBox.SELECTED : TristateCheckBox.NOT_SELECTED;
                    mTreeTableModel.setValueAt(state, treeNode, convertColumnIndexToModel(i));
                    // refresh the table content
View Full Code Here

Examples of com.qspin.qtaste.ui.TCTreeNode

    static protected Class<?>[]  cTypes = {TreeTableModel.class, String.class};

   
    public TestCampaignTreeModel(String rootName) {        
  //super(new FileNode(new File(testSuiteDir), testSuiteDir));
        super(new TCTreeNode(rootName,true));

        // check the available test beds
        testbedList = new ArrayList<String>();
        testsuiteDir = new ArrayList<TCTreeNode>();
        metaCampaignSelectionList = new HashMap<String, HashMap<String, TristateCheckBox.State>>();
View Full Code Here

Examples of com.qspin.qtaste.ui.TCTreeNode

   
    public boolean isCellEditable(Object node, int column) {
        return true;
    }
    protected File getTestCase(Object node) {
        TCTreeNode tcNode = (TCTreeNode)node;
       
        if (tcNode.getUserObject() instanceof FileNode) {
            FileNode fileNode = ((FileNode)tcNode.getUserObject());
            return fileNode.getFile();      
        }
        else
        {
            return null;
View Full Code Here

Examples of com.qspin.qtaste.ui.TCTreeNode

    }   

    public void setValueAt(Object aValue, Object node, int column)
    {
        if (column==0) return;
        TCTreeNode tcNode = (TCTreeNode)node;
        if (tcNode.getUserObject() instanceof JTreeNode) {           
            JTreeNode jTreeNode = (JTreeNode)tcNode.getUserObject();           
            this.setNodeState(jTreeNode, getColumnName(column), (TristateCheckBox.State)aValue);
        }
        else {
            this.setNodeState(tcNode.toString(), getColumnName(column), (TristateCheckBox.State)aValue);
           
        }
    }
View Full Code Here

Examples of com.qspin.qtaste.ui.TCTreeNode

// Testsuites root node
        int countChecked=0, countUnchecked=0;
        int childCount = ((TCTreeNode)this.getRoot()).getChildCount();
        Enumeration<?> enumChildren = ((TCTreeNode)this.getRoot()).children();
        while (enumChildren.hasMoreElements()) {
            TCTreeNode childParentNode = (TCTreeNode)enumChildren.nextElement();
            JTreeNode childParentFileNode = (JTreeNode)childParentNode.getUserObject();
            TristateCheckBox.State childState = getNodeState(childParentFileNode, testbedName);
            if (childState==TristateCheckBox.SELECTED)
                countChecked++;
            if (childState==TristateCheckBox.NOT_SELECTED)
                countUnchecked++;
View Full Code Here

Examples of com.qspin.qtaste.ui.TCTreeNode

        if (colIndex!=-1) {           
            if (parentNode==null) {
                setValueAt(parentState, this.getRoot() , colIndex);
            }
            else {
                setValueAt(parentState, new TCTreeNode(parentNode, true) , colIndex);
                updateParent(parentNode, testbedName);
            }
        }
        this.nodeChanged((TreeNode)this.getRoot());
           
View Full Code Here

Examples of com.qspin.qtaste.ui.TCTreeNode

                    return file.getName();
                else
                    return "MetaCampain";
            default:
                //if (file==null) return TristateCheckBox.DONT_CARE;
                TCTreeNode tcNode = (TCTreeNode)node;
                if (tcNode.getUserObject() instanceof JTreeNode) {
                    JTreeNode jTreeNode = (JTreeNode)tcNode.getUserObject();           
                    return this.getNodeState(jTreeNode, getColumnName(column));
                }
                else
                {
                    return this.getNodeState(tcNode.toString(), getColumnName(column));
                }
      }
  }
  catch  (SecurityException se) { }
  
View Full Code Here

Examples of com.qspin.qtaste.ui.TCTreeNode

        }
        return null;
       
    }
    public JTreeNode getTestSuite(String directory) {
        TCTreeNode rootNode = (TCTreeNode)this.getRoot();
        Enumeration<?> childNodes = rootNode.children();
        while (childNodes.hasMoreElements()){
            TCTreeNode childNode = (TCTreeNode)childNodes.nextElement();
            JTreeNode child = (JTreeNode)childNode.getUserObject();
            if (child.getId().equals(directory)) {
                return child;
            }
            JTreeNode chidChild = getTestSuite(child, directory);
            if (chidChild!=null) return chidChild;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.