Examples of children()


Examples of org.jwall.web.policy.TreeNode.children()

  public int getChildCount(Object parent) {

    if (parent instanceof TreeNode) {

      TreeNode node = (TreeNode) parent;
      return node.children().size();
    }

    return 0;
  }
View Full Code Here

Examples of org.locationtech.geogig.api.RevTree.children()

            } else {
                RevTree leftTree = (RevTree) bucketTrees.get(leftBucket.id());
                if (leftTree.buckets().isPresent()) {
                    traverseBucketLeaf(consumer, leftTree, rightNodes.iterator(), bucketDepth + 1);
                } else {
                    traverseLeafLeaf(consumer, leftTree.children(), rightNodes.iterator());
                }
            }
        }
    }
View Full Code Here

Examples of org.locationtech.udig.project.internal.render.impl.CompositeRendererImpl.children()

    public void testRefreshLayer() throws Exception {
        final RenderExecutor renderExecutor = map.getRenderManagerInternal().getRenderExecutor();
        renderExecutor.setState(IRenderer.NEVER);
        final CompositeRendererImpl impl=(CompositeRendererImpl) renderExecutor.getRenderer();
        impl.setState(IRenderer.NEVER);
        for( Renderer renderer: impl.children() ) {
            renderer.setState(IRenderer.NEVER);
        }
        for( Renderer renderer: impl.children() ) {
            renderer.setState(IRenderer.NEVER);
            assertEquals(IRenderer.NEVER, renderer.getState());
View Full Code Here

Examples of org.nasutekds.guitools.controlpanel.ui.nodes.BasicNode.children()

      if ((oldState != NodeRefresher.State.SEARCHING_CHILDREN) &&
          (newState == NodeRefresher.State.SEARCHING_CHILDREN)) {
        // The children search is going to start
        if (canDoDifferentialUpdate(task)) {
          Enumeration<?> e = node.children();
          while (e.hasMoreElements()) {
            BasicNode child = (BasicNode)e.nextElement();
            child.setObsolete(true);
          }
        }
View Full Code Here

Examples of org.openide.loaders.DataFolder.children()

    private ComboBoxModel createLicensesModel () {
        DefaultComboBoxModel mdl = new DefaultComboBoxModel();
        FileObject fo = FileUtil.getConfigFile( "Templates/Licenses" );
        DataFolder dob = DataFolder.findFolder( fo );
        mdl.addElement( NbBundle.getMessage( ProjectWizardPanel.class, "NONE" ) );
        for (DataObject ob : NbCollections.iterable( dob.children() )) {
            mdl.addElement( new License( ob ) );
        }
        return mdl;
    }
View Full Code Here

Examples of org.parosproxy.paros.model.SiteNode.children()

  @SuppressWarnings("unchecked")
  private void sessionChangedEventHandler(Session session) {
    // clear all scans and add new hosts
    this.getPortScanPanel().reset();
    SiteNode root = (SiteNode)session.getSiteTree().getRoot();
    Enumeration<SiteNode> en = root.children();
    while (en.hasMoreElements()) {
      String site = en.nextElement().getNodeName();
      if (site.indexOf("//") >= 0) {
        site = site.substring(site.indexOf("//") + 2);
      }
View Full Code Here

Examples of org.sbml.jsbml.ext.SBasePlugin.children()

    }
    else if (sbase instanceof SBasePlugin)
    {
      SBasePlugin elementPlugin = (SBasePlugin) sbase;
     
      children = elementPlugin.children();
    }
    else if (sbase instanceof TreeNode)
    {
      children = ((TreeNode) sbase).children();
     
View Full Code Here

Examples of org.sbml.jsbml.ext.qual.QualitativeModel.children()

    List<Object> listOfElementsToWrite = new ArrayList<Object>();

    if (sbase instanceof Model) {
      QualitativeModel modelGE = (QualitativeModel) ((Model) sbase).getExtension(QualConstants.namespaceURI);

      Enumeration<TreeNode> children = modelGE.children();

      while (children.hasMoreElements()) {
        listOfElementsToWrite.add(children.nextElement());
      }
    }
View Full Code Here

Examples of org.sonar.api.technicaldebt.batch.internal.DefaultCharacteristic.children()

    DefaultCharacteristic resultRootCharacteristic = sqaleModel.rootCharacteristics().get(0);
    assertThat(resultRootCharacteristic.id()).isEqualTo(1);
    assertThat(resultRootCharacteristic.key()).isEqualTo("MEMORY_EFFICIENCY");
    assertThat(resultRootCharacteristic.name()).isEqualTo("Memory use");
    assertThat(resultRootCharacteristic.order()).isEqualTo(1);
    assertThat(resultRootCharacteristic.children()).hasSize(1);
    assertThat(resultRootCharacteristic.parent()).isNull();
    assertThat(resultRootCharacteristic.root()).isNull();
  }

  @Test
View Full Code Here

Examples of org.terasology.logic.behavior.tree.ParallelNode.children()

            }
        });

        ParallelNode move = new ParallelNode(ParallelNode.Policy.RequireOne, ParallelNode.Policy.RequireOne);

        move.children().add(new DebugNode(3));
        move.children().add(mock);
        Task task = interpreter.start(move);
        interpreter.tick(0);
        Assert.assertEquals(Status.RUNNING, task.getStatus());
        interpreter.tick(0);
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.