Examples of Tree


Examples of com.google.code.lightssh.project.tree.entity.Tree

    if( t.isInsert() ){
      Node root = new Node("root","tree root node!");
      t.setRoot(root);
      dao.create(t);
    }else{
      Tree db_tree = dao.read(t);
      if( db_tree != null){
        db_tree.setName(t.getName());
        db_tree.setDescription(t.getDescription());
        db_tree.setMaxChildren(t.getMaxChildren());
        db_tree.setMaxLayer(t.getMaxLayer());
        dao.update(db_tree);   
      }
    }
  }
View Full Code Here

Examples of com.google.gwt.user.client.ui.Tree

  private Tree publisherTree;
  private PublicationServiceAsync publicationService = (PublicationServiceAsync) GWT.create(PublicationService.class);
  private FindServiceAsync findService = (FindServiceAsync) GWT.create(FindService.class);
 
  public BusinessTreePanel() {
    publisherTree = new Tree(UDDIBrowser.images);
    publisherTree.addTreeListener(this);
    initWidget(publisherTree);
  }
View Full Code Here

Examples of com.intellij.ui.treeStructure.Tree

  public JComponent buildUI()
  {
    if (contentPane == null)
    {
      tree = new Tree();
      tree.setRootVisible(false);
      tree.setShowsRootHandles(true);
      tree.getSelectionModel().addTreeSelectionListener(new TreeSelectionListener()
      {
        public void valueChanged(final TreeSelectionEvent e)
View Full Code Here

Examples of com.intellij.util.ui.Tree

    }

    public SynchronizationResultsPanel(final Project pProject,
                                       final ProblemInfo[] pProblems) {
        project = pProject;
        tree = new Tree();

//        final SynchronizeWithModuleActionGroup rerunAction = new SynchronizeWithModuleActionGroup();
//        rerunAction.getTemplatePresentation().setIcon(Icons.RERUN);

        actionGroup = new DefaultActionGroup();
View Full Code Here

Examples of com.persistit.Tree

    }

    @Override
    public Exchange getExchange(final Session session, final TreeLink link) {
        try {
            final Tree tree = populateTreeCache(link);
            if(!tree.isValid()) {
                throw new IllegalArgumentException("Tree is not valid: " + tree);
            }
            final Exchange exchange = getExchange(session, tree);
            exchange.setAppCache(link);
            return exchange;
View Full Code Here

Examples of com.sishuok.es.common.plugin.entity.Tree

        root = createTree(0, "0/");
    }

    @Test
    public void testMoveAsChildWithNoChild() {
        Tree source = createTree(root.getId(), root.makeSelfAsNewParentIds());
        Tree target = createTree(root.getId(), root.makeSelfAsNewParentIds());
        flush();
        treeService.move(source, target, "inner");
        clear();
        assertEquals(target.getId(), treeService.findOne(source.getId()).getParentId());
        assertEquals(target.makeSelfAsNewParentIds(), treeService.findOne(source.getId()).getParentIds());
        assertEquals(Integer.valueOf(1), treeService.findOne(source.getId()).getWeight());
    }
View Full Code Here

Examples of com.sishuok.es.showcase.tree.entity.Tree


        this.permissionList.assertHasUpdatePermission();

        for (Long id : ids) {
            Tree tree = baseService.findOne(id);
            tree.setShow(newStatus);
            baseService.update(tree);
        }
        redirectAttributes.addFlashAttribute(Constants.MESSAGE, "操作成功!");

        return "redirect:" + request.getAttribute(Constants.BACK_URL);
View Full Code Here

Examples of com.sleepycat.je.tree.Tree

                          BINReference binRef,
                          byte[] idKey,
                          LocalUtilizationTracker localTracker) {

        try {
            Tree tree = dbImpl.getTree();
            tree.delete(idKey, localTracker);
            processedBinsThisRun++;
        } catch (NodeNotEmptyException NNEE) {

            /*
             * Something was added to the node since the point when the
View Full Code Here

Examples of com.smartgwt.client.widgets.tree.Tree

    field.setCanFilter(true);
    field.setName("name");
    field.setTitle("<b>" + I18nProvider.getSampleMessages().sampleTitle("1.8.0") + "</b>");
    setFields(field);

    Tree tree = new Tree();
    tree.setModelType(TreeModelType.PARENT);
    tree.setIdField("nodeId");
    tree.setRootValue("topLevel");
    tree.setData(SampleArray.getSampleArray());

    setData(tree);
    // tree.openAll(tree.getRoot());
    tree.openFolder(tree.getChildren(tree.getRoot())[2]);
  }
View Full Code Here

Examples of com.sun.source.tree.Tree

      private boolean matched = false;

      @Override
      public Void visitAnnotation(AnnotationTree node, VisitorState visitorState) {
        TreePath currPath = getCurrentPath().getParentPath();
        Tree parent = currPath.getLeaf();
        if (parent.getKind() == Kind.MODIFIERS) {
          currPath = currPath.getParentPath();
          parent = currPath.getLeaf();
        }
        if (toMatch.matches(parent, visitorState)) {
          matched = true;
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.