Examples of deleteNode()


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

        if (! ((StyleNamedObject)styleNodeGroup.getUserObject()).getObject().equals("styles.user-defined")) {
            UITools.errorMessage(TextUtils.getText("can_not_delete_predefined_style"));
            return;
        }
    final MMapController mapController = (MMapController) modeController.getMapController();
    mapController.deleteNode(selected);
    final IActor actor = new IActor() {
      public void undo() {
        styleModel.addStyleNode(selected);
      }
View Full Code Here

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

          oldUri, LinkController.LINK_ABSOLUTE);
      final int nodePosition = parent.getChildPosition(existingNode);
      final ModeController modeController = Controller.getCurrentModeController();
      modeController.undoableResolveParentExtensions(LogicalStyleKeys.NODE_STYLE, existingNode);
      final MMapController mMapController = (MMapController) modeController.getMapController();
      mMapController.deleteNode(existingNode);
      {
        final IActor actor = new IActor() {
          private final boolean wasFolded = existingNode.isFolded();

          public void undo() {
View Full Code Here

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

      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;
    }
    controller.getSelection().selectAsTheOnlyOneSelected(selectedNode);
    setNodeText(selectedNode, joinedContent);
View Full Code Here

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

      } else if (action.equals("removeElement")) {

        // Delete the requested element node.  This code is the same for
        // all node types, so we can just have a generic action.
        String elementId = request.getParameter("elementID");
        ulm.deleteNode(elementId);
        try {
          saveUserLayoutPreservingTab(ulm, upm, per);
        } catch (Exception e) {
          log.warn("Error saving layout", e);
        }
View Full Code Here

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

         }
        }

        if ((values = req.getParameterValues("uP_remove_target")) != null) {
            for (int i = 0; i < values.length; i++) {
                ulm.deleteNode(values[i]);
            }
           
            ulm.saveUserLayout();
        }
View Full Code Here

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

                removeSubscription(per, elementId, ulm);

            } else {
                // Delete the requested element node.  This code is the same for
                // all node types, so we can just have a generic action.
               ulm.deleteNode(elementId);
            }

            ulm.saveUserLayout();

            return new ModelAndView("jsonView", Collections.EMPTY_MAP);
View Full Code Here

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

                    ulm.addNode(ulm.getNode((String) channels.nextElement()),
                            acceptor, null);
                }

                // delete the column from the user's layout
                ulm.deleteNode(columnId);

                columnList.remove(columnId);
            }
    }
View Full Code Here

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

            Object result = CollectionUtils.find(favoritePortlets, new BeanPredicate("functionalName",nameEqlPredicate));
           
            if(result != null && result instanceof UserLayoutChannelDescription) {
                UserLayoutChannelDescription channelDescription = (UserLayoutChannelDescription)result;
                try {
                    if (!ulm.deleteNode(channelDescription.getChannelSubscribeId())) {
                        log.warn("Error deleting the node" + channelId + "from favorites for user " + (upm.getPerson() == null ? "unknown" : upm.getPerson().getID()));
                        response.setStatus(HttpServletResponse.SC_ACCEPTED);
                        return new ModelAndView("jsonView", Collections.singletonMap("response", getMessage("error.remove.favorite", "Can''t remove favorite", locale)));
                    }
                    // save the user's layout
View Full Code Here

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

            String userFacingNodeName = nodeDescription.getName();
            response.setRenderParameter("nameOfFavoriteActedUpon", userFacingNodeName);

            if (nodeDescription.isDeleteAllowed()) {

                boolean nodeSuccessfullyDeleted = layoutManager.deleteNode(nodeId);

                if (nodeSuccessfullyDeleted) {
                    layoutManager.saveUserLayout();

                    response.setRenderParameter("successMessageCode", "favorites.unfavorite.success.parameterized");
View Full Code Here

Examples of org.openhab.binding.zwave.internal.protocol.initialization.ZWaveNodeSerializer.DeleteNode()

        }
        this.zwaveNodes.remove(incEvent.getNodeId());
       
        // Remove the XML file
        ZWaveNodeSerializer nodeSerializer = new ZWaveNodeSerializer();
        nodeSerializer.DeleteNode(event.getNodeId());
        break;
      default:
        break;
      }
    }
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.