Examples of expandRow()


Examples of com.eteks.sweethome3d.swing.FurnitureCatalogTree.expandRow()

    assertActionsEnabled(controller, false, false, false, false);
   
    // 2. Select the first piece of furniture in catalog
    tester.invokeAndWait(new Runnable() {
      public void run() {
        catalogTree.expandRow(0);
        catalogTree.addSelectionInterval(1, 1);
      }
    });
    // Check only Copy action is enabled
    assertActionsEnabled(controller, false, true, false, false);
View Full Code Here

Examples of edu.mit.csail.sdg.alloy4.OurTree.expandRow()

         @Override public Object do_root() { return ROOT; }
      };
      // Pre-expand the entire tree.
      TreePath last = null;
      for(int i=0; i<tree.getRowCount(); i++) {
         tree.expandRow(i);
         if (lastElement!=null && last==null) {last=tree.getPathForRow(i); if (lastElement!=last.getLastPathComponent()) last=null;}
      }
      // Show the current element if found, else show the GENERAL OPTIONS
      if (last!=null) { zoom(lastElement); } else { last = tree.getPathForRow(0); zoom(GENERAL); }
      tree.scrollPathToVisible(last);
View Full Code Here

Examples of javax.swing.JTree.expandRow()

    // 3. Use SELECTION mode
    tester.click(frame.selectButton);
    // Select the first piece in catalog tree
    JTree catalogTree = (JTree)
        frame.homeController.getFurnitureCatalogController().getView();
    catalogTree.expandRow(0);
    catalogTree.addSelectionInterval(1, 1);
    // Click on Add furniture button
    tester.click(frame.addButton);
    // Check home contains one selected piece
    tester.waitForIdle();
View Full Code Here

Examples of javax.swing.JTree.expandRow()

        while (true) {
            int rows = jTree.getRowCount();
            if (i >= rows || rows >= max) {
                break;
            }
            jTree.expandRow(i++);
        }
    }

    @SwingThread
    boolean leavesShown() {
View Full Code Here

Examples of javax.swing.JTree.expandRow()

            TreePath treePath = jTree.getPathForRow(i);
            Object lastPathComponent = treePath.getLastPathComponent();
            if (lastPathComponent instanceof BugLeafNode) {
                return;
            }
            jTree.expandRow(i++);
        }
    }

    void setupTreeListeners() {
        // noinspection ConstantIfStatement
View Full Code Here

Examples of javax.swing.JTree.expandRow()

            JTree groupTree = new JTree(rootNode);
            groupTree.setRootVisible(false);
            groupTree.setCellRenderer(new ReportTreeCellRenderer());

            for (int i = 0; i < groupTree.getRowCount(); i++) {
                groupTree.expandRow(i);
            }

            add(new JScrollPane(groupTree), BorderLayout.CENTER);

            final JPanel reportPanel = new JPanel();
View Full Code Here

Examples of javax.swing.JTree.expandRow()

            groupTree.setCellEditor(new TestTreeNodeEditor());
            groupTree.setEditable(true);
            ToolTipManager.sharedInstance().registerComponent(groupTree);

            for (int i = 0; i < groupTree.getRowCount(); i++) {
                groupTree.expandRow(i);
            }

            final JPopupMenu treePopup = new JPopupMenu();

            final JMenuItem selectItem = new JMenuItem("Select all");
View Full Code Here

Examples of javax.swing.JTree.expandRow()

                 jTree.collapseRow(i);
            }
            return;
        }
       for(int i = 0; i < jTree.getRowCount(); i++) {
               jTree.expandRow(i);
       }
    }
}
View Full Code Here

Examples of javax.swing.JTree.expandRow()

        ActionRouter.getInstance().actionPerformed(actionEvent);
        final JTree jTree = guiInstance.getMainFrame().getTree();
        if (expandTree && !merging) { // don't automatically expand when merging
            for(int i = 0; i < jTree.getRowCount(); i++) {
                jTree.expandRow(i);
            }
        } else {
            jTree.expandRow(0);
        }
        jTree.setSelectionPath(jTree.getPathForRow(1));
View Full Code Here

Examples of javax.swing.JTree.expandRow()

        if (expandTree && !merging) { // don't automatically expand when merging
            for(int i = 0; i < jTree.getRowCount(); i++) {
                jTree.expandRow(i);
            }
        } else {
            jTree.expandRow(0);
        }
        jTree.setSelectionPath(jTree.getPathForRow(1));
        FocusRequester.requestFocus(jTree);
        return isTestPlan;
    }
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.