Examples of moveNode()


Examples of org.apache.jackrabbit.mk.model.CommitBuilder.moveNode()

                            targetPath = PathUtils.concat(path, targetPath);
                            if (!PathUtils.isAbsolute(targetPath)) {
                                throw new Exception("absolute path expected: " + targetPath + ", pos: " + pos);
                            }
                        }
                        cb.moveNode(srcPath, targetPath);
                        break;
                    }
                    case '*': {
                        pos = t.getLastPos();
                        String subPath = t.readString();
View Full Code Here

Examples of org.apache.jackrabbit.mk.model.CommitBuilder.moveNode()

                            targetPath = PathUtils.concat(path, targetPath);
                            if (!PathUtils.isAbsolute(targetPath)) {
                                throw new Exception("absolute path expected: " + targetPath + ", pos: " + pos);
                            }
                        }
                        cb.moveNode(srcPath, targetPath);
                        break;
                    }
                    case '*': {
                        pos = t.getLastPos();
                        String subPath = t.readString();
View Full Code Here

Examples of org.exoplatform.services.jcr.cluster.JCRWebdavConnection.moveNode()

      }

      // move node
      conn = getConnection();
     
      HTTPResponse response = conn.moveNode(nodeName, newNodeName);
      assertEquals(201, response.getStatusCode());

      // check is node not exist
      for (JCRWebdavConnection connection : getConnections())
      {
View Full Code Here

Examples of org.freeplane.features.map.mindmapmode.MMapController.moveNode()

      MMapController mapController = (MMapController) modeController.getMapController();
      if (selectedsBackup == null) {
        final Collection<NodeModel> selecteds = mapController.getSelectedNodes();
        selectedsBackup = selecteds.toArray(new NodeModel[selecteds.size()]);
      }
      mapController.moveNode(node, node.getParentNode(), newIndex, isLeft, false);
    }
    return selectedsBackup;
  }

  public int getRefX(final NodeView node) {
View Full Code Here

Examples of org.freeplane.features.map.mindmapmode.MMapController.moveNode()

  public void moveTo(final Proxy.Node parentNodeProxy, final int position) {
        final NodeModel parentNode = ((NodeProxy) parentNodeProxy).getDelegate();
        final NodeModel movedNode = getDelegate();
    final MMapController mapController = (MMapController) getModeController().getMapController();
    ((FreeNode)Controller.getCurrentModeController().getExtension(FreeNode.class)).undoableDeactivateHook(movedNode);
    mapController.moveNode(movedNode, parentNode, position, getDelegate().isLeft(), parentNode.isLeft() != movedNode.isLeft());
  }

  // Node: R/W
  public void removeConnector(final Proxy.Connector connectorToBeRemoved) {
    final ConnectorProxy connectorProxy = (ConnectorProxy) connectorToBeRemoved;
View Full Code Here

Examples of org.freeplane.features.map.mindmapmode.MMapController.moveNode()

      final boolean isHtmlNode = HtmlUtils.isHtmlNode(nodeContent);
      joinedContent = addContent(joinedContent, isHtml, nodeContent, isHtmlNode);
      if (node != selectedNode) {
        final MMapController mapController = (MMapController) Controller.getCurrentModeController().getMapController();
        for(final NodeModel child: node.getChildren().toArray(new NodeModel[]{})){
          mapController.moveNode(child, selectedNode, selectedNode.getChildCount());
        }
        mapController.deleteNode(node);
      }
      isHtml = isHtml || isHtmlNode;
    }
View Full Code Here

Examples of org.freeplane.features.map.mindmapmode.MMapController.moveNode()

    Collections.sort(sortVector, new NodeTextComparator());
    final MMapController mapController = (MMapController) Controller.getCurrentModeController().getMapController();
    int i = 0;
    for (final NodeModel child : sortVector) {
      ((FreeNode)Controller.getCurrentModeController().getExtension(FreeNode.class)).undoableDeactivateHook(child);
      mapController.moveNode(child, node, i++);
    }
  }
}
View Full Code Here

Examples of org.freeplane.features.map.mindmapmode.MMapController.moveNode()

    final NodeModel[] selecteds = getSelectedNodes();
    ((MLocationController)LocationController.getController()).moveNodePosition(node, -1, LocationModel.HGAP, 0);
    super.undoableToggleHook(node, extension);
    if(isFreeNode(node)){
      MMapController mapController = (MMapController) Controller.getCurrentModeController().getMapController();
      mapController.moveNode(node, 0);
    }
    Controller.getCurrentController().getSelection().replaceSelection(selecteds);
  }

View Full Code Here

Examples of org.jasig.portal.layout.IUserLayoutManager.moveNode()

      IUserLayoutManager lm=context.getUserLayoutManager();
      if (direction.equals("up")) {
          String prevSiblingId=lm.getPreviousSiblingId(folderID);
          if(prevSiblingId!=null) {
              lm.moveNode(folderID,lm.getParentId(folderID),prevSiblingId);
          }
          //        for (prev = element.getPreviousSibling(); prev != null && prev.getNodeType() != Node.ELEMENT_NODE && (!prev.getNodeName().equals("channel")  || !prev.getNodeName().equals("folder")); prev = prev.getPreviousSibling());
      } else if (direction.equals("down")) {
          String nextSiblingId=lm.getNextSiblingId(folderID);
          if(nextSiblingId!=null) {
View Full Code Here

Examples of org.jasig.portal.layout.IUserLayoutManager.moveNode()

          }
          //        for (prev = element.getPreviousSibling(); prev != null && prev.getNodeType() != Node.ELEMENT_NODE && (!prev.getNodeName().equals("channel")  || !prev.getNodeName().equals("folder")); prev = prev.getPreviousSibling());
      } else if (direction.equals("down")) {
          String nextSiblingId=lm.getNextSiblingId(folderID);
          if(nextSiblingId!=null) {
              lm.moveNode(folderID,lm.getParentId(folderID),nextSiblingId);
          }
          //        for(next = element.getNextSibling(); next != null && next.getNodeType() != Node.ELEMENT_NODE && (!next.getNodeName().equals("channel") || !next.getNodeName().equals("folder")); next = next.getNextSibling());
      }
      context.setModified(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.