Examples of removeChild()


Examples of com.calclab.emite.base.xml.XMLPacket.removeChild()

  }

  private static void shouldRemoveChildIfPresent(final HelperExtended helper) {
    helper.log("- shouldRemoveChildIfPresent");
    final XMLPacket root = helper.createPacket("packet");
    helper.assertFalse(root.removeChild(helper.createPacket("otherPacket")));
    final XMLPacket child = root.addChild("child", null);
    helper.assertEquals(1, root.getChildren().size());
    helper.assertTrue(root.removeChild(child));
    helper.assertEquals(0, root.getChildren().size());
    helper.log("- test ends");
View Full Code Here

Examples of com.clearnlp.constituent.CTNode.removeChild()

    else if (ante.hasFTag(CTLibEn.FTAG_TPC))
    {
      if (!ante.hasFTag(CTLibEn.FTAG_SBJ))
      {
        CTNode parent = ec.getParent();
        parent.removeChild(ec);
        replaceEC(parent, ante);
      }
      else
        removeCTNode(ec);
    }
View Full Code Here

Examples of com.dotmarketing.portlets.categories.business.CategoryAPI.removeChild()

   
    CategoryAPI categoryAPI = APILocator.getCategoryAPI();
    List<Category> myUserCategories = categoryAPI.getChildren(userProxy, APILocator.getUserAPI().getSystemUser(), false);
    for (Object object: myUserCategories) {
      if ((object instanceof Category) && categoryAPI.canUseCategory((Category) object, APILocator.getUserAPI().getSystemUser(), false)) {
        categoryAPI.removeChild(userProxy, (Category) object, APILocator.getUserAPI().getSystemUser(), false);
      }
    }

    if (UtilMethods.isSet(form.getCategory())) {
      Category category;
View Full Code Here

Examples of com.dragome.compiler.ast.Block.removeChild()

    if (typeDecl.getClassName().equals("java.lang.String") && method.isInstanceConstructor())
    {

      Block body= method.getBody();

      body.removeChild(body.getFirstChild());

      MethodInvocation consume= (MethodInvocation) body.getLastChild();
      body.removeChild(consume);

      ReturnStatement r= new ReturnStatement(0, 0);
View Full Code Here

Examples of com.dthielke.starburst.User.removeChild()

        User user = set.getUser(op);

        if (set.hasGroup(group)) {
            Group g = set.getGroup(group);
            if (user.hasChild(g, false)) {
                user.removeChild(g, true);

                if (user.isActive()) {
                    user.applyPermissions(perms.getGroupManager().getFactory());
                }
                return true;
View Full Code Here

Examples of com.eastidea.qaforum.model.MyTreeNode.removeChild()

    }
   
    if (sNode.getNodeid() > 0 && sNode.getNodeDepth() > 0) {

      MyTreeNode pNode = (MyTreeNode) selectedNode.getParent();
      pNode.removeChild(sNode.getNodeid());

      funcPointMaintService.delete(sNode);

    }
View Full Code Here

Examples of com.edgytech.swingfast.TreeNodeLabel.removeChild()

    protected abstract void populateChildren();

    public void removeNode() {
        TreeNodeLabel parent = getParentNode();
        parent.removeChild(this);
        parent.structureComponent();
    }

    @Override
    public void handleNodeSelection() {
View Full Code Here

Examples of com.epicsagaonline.bukkit.EpicZones.objects.EpicZone.removeChild()

                                    {
                                        zone.addChildTag(tag);
                                    }
                                    else if (cmd.equalsIgnoreCase("remove"))
                                    {
                                        zone.removeChild(tag);
                                    }
                                }
                            }
                        }
                        Message.Send(sender, Message_ID.Info_00027_ParentsUpdated);
View Full Code Here

Examples of com.google.caja.parser.js.Declaration.removeChild()

            s = new ExpressionStmt(
                Operation.createInfix(
                    Operator.ASSIGN, new Reference(d.getIdentifier()),
                    d.getInitializer()));
            getRewriter().markTreeForSideEffect(s);
            d.removeChild(d.getInitializer());
          }
          scope.addStartOfScopeStatement(d);
          return s;
        }
        return NONE;
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gwtext.model.widgets.ContainerInfo.removeChild()

            "public class Test extends Panel {",
            "  public Test() {",
            "  }",
            "}");
    // remove Layout (using ObjectInfo, to prevent implicit layout creation)
    frame.removeChild(frame.getLayout());
    try {
      frame.getLayout();
      fail();
    } catch (IllegalStateException e) {
    }
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.