Package javax.swing

Examples of javax.swing.JTree.makeVisible()


                        }
                    }
                    if (pParent.isOpened()) {
                      // CraigM:12/06/2008 - Don't scroll (as Forte didn't), just make visible.
                        // tree.scrollPathToVisible(new TreePath(pChild.getPath()));
                      tree.makeVisible(new TreePath(pChild.getPath()));
                    }
                    handled = true;
                }
                else if (root instanceof OutlineField) {
                    OutlineField of = (OutlineField)root;
View Full Code Here


                        }
                    }
                    if (pParent.isOpened()) {
                      // CraigM:12/06/2008 - Don't scroll (as Forte didn't), just make visible.
                        // tree.scrollPathToVisible(new TreePath(pChild.getPath()));
                      tree.makeVisible(new TreePath(pChild.getPath()));
                    }
                    handled = true;
                }
                else if (root instanceof OutlineField) {
                    OutlineField of = (OutlineField)root;
View Full Code Here

                        }
                    }
                    if (pParent.isOpened()) {
                      // CraigM:12/06/2008 - Don't scroll (as Forte didn't), just make visible.
                        // tree.scrollPathToVisible(new TreePath(pChild.getPath()));
                      tree.makeVisible(new TreePath(pChild.getPath()));
                    }
                    handled = true;
                }
                else if (root instanceof OutlineField) {
                    OutlineField of = (OutlineField)root;
View Full Code Here

    DataView dataView = cayenneProject.createDataView();
    DataViewTreeModel dataViewTreeModel =
        (DataViewTreeModel)dataViewTree.getModel();
    TreePath path = dataViewTreeModel.dataViewAdded(dataView);
    dataViewTree.makeVisible(path);
    dataView.addPropertyChangeListener(propertyChangeMediator);
  }

    private class AddNewObjEntityViewAction extends AbstractAction {
    private AddNewObjEntityViewAction() {
View Full Code Here

    }

    DataViewTreeModel dataViewTreeModel =
        (DataViewTreeModel)dataViewTree.getModel();
    TreePath path = dataViewTreeModel.objEntityViewAdded(view);
    dataViewTree.makeVisible(path);
    DataMapTreeModel dataMapTreeModel =
        (DataMapTreeModel)dataMapTree.getModel();
    path = dataMapTreeModel.objEntityViewAdded(view);
    if (path != null)
      dataMapTree.makeVisible(path);
View Full Code Here

    ObjEntityView objEntityView = (ObjEntityView)selectionPath.getLastPathComponent();
    ObjEntityViewField newField = objEntityView.createObjEntityViewField();
    DataViewTreeModel dataViewTreeModel =
        (DataViewTreeModel)dataViewTree.getModel();
    TreePath path = dataViewTreeModel.fieldAdded(newField);
    dataViewTree.makeVisible(path);
    DataMapTreeModel dataMapTreeModel =
        (DataMapTreeModel)dataMapTree.getModel();
    path = dataMapTreeModel.fieldAdded(newField);
    if (path != null)
      dataMapTree.makeVisible(path);
View Full Code Here

            vpath.copyInto(path);
            Object last = path[vpath.size() - 1];
            path[vpath.size()] = model.getChild(last, index);
            TreePath selectionPath = new TreePath(path);
            tree.setSelectionPath(selectionPath);
            tree.makeVisible(selectionPath);
            tree.scrollPathToVisible(selectionPath);
        }
    }

    public void aboutToStart(Test suite, TestResult result) {
View Full Code Here

      vpath.copyInto(path);
      Object last= path[vpath.size()-1];
      path[vpath.size()]= model.getChild(last, index);
      TreePath selectionPath= new TreePath(path);
      tree.setSelectionPath(selectionPath);
      tree.makeVisible(selectionPath);
    }
  }
 
  public void aboutToStart(Test suite, TestResult result) {
    fTreeBrowser.showTestTree(suite);
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.