Examples of children()


Examples of org.jdesktop.swingx.treetable.TreeTableNode.children()

    }

    private int countAcceptedTables() {
        int count = 0;
        TreeTableNode root = getRoot();
        for (TreeTableNode child : IterableEnumeration.of(root.children())) {
            if (isTableNodeAccepted(child)) {
                ++count;
            }
        }
        return count;
View Full Code Here

Examples of org.jibx.binding.model.CollectionElement.children()

                setElementType(qname, elem, hold);
            }
            addItemDocumentation((ValueElement)comp, elem);
        } else if (comp instanceof CollectionElement) {
            CollectionElement coll = (CollectionElement)comp;
            if (coll.children().size() > 0) {
               
                // collection with children, choice or sequence from order
                ComplexTypeElement type = new ComplexTypeElement();
                if (coll.isOrdered()) {
                   
View Full Code Here

Examples of org.jibx.binding.model.ContainerElementBase.children()

                cdef.getParticleList().add(element);
               
            } else if (comp instanceof ContainerElementBase) {
                ContainerElementBase contain = (ContainerElementBase)comp;
                boolean iscoll = comp instanceof CollectionElement;
                if (contain.children().size() > 0) {
                   
                    // no element name, but children; handle with recursive call
                    CommonCompositorDefinition part = buildCompositor(contain, 0, iscoll, hold);
                    addCompositorPart(part, cdef);
                   
View Full Code Here

Examples of org.jibx.binding.model.MappingElementBase.children()

        assertEquals("child count", 2, childs.size());
        Object child = childs.get(0);
        assertTrue("child type", child instanceof MappingElement);
        MappingElementBase mapping = (MappingElementBase)child;
        assertEquals("mapped class", mapping.getClassName(), "DefaultPackageClass");
        assertEquals("mapped items", 5, mapping.children().size());
    }

    public void testSingleClassBinding() throws Exception {
        GlobalCustom custom = new GlobalCustom();
        custom.initClasses();
View Full Code Here

Examples of org.jibx.binding.model.NestingElementBase.children()

     */
    private void defineEmptyStructureComponent(StructureElementBase comp,
        Element egroup, Element agroup) {
        NestingElementBase parent =
            (NestingElementBase)m_structureStack.peek(0);
        boolean only = parent.children().size() == 1;
        if (comp.type() == ElementBase.COLLECTION_ELEMENT) {
           
            // collection may define type or not
            CollectionElement collection = (CollectionElement)comp;
            String itype = collection.getItemTypeClass().getName();
View Full Code Here

Examples of org.jibx.binding.model.StructureElement.children()

        m_structureStack.push(cname);
        StructureElement element = new StructureElement();
        element.setFieldName(fname);
        element.setName(valueName(fname));
        defineStructure(cf, element);
        if (element.children().isEmpty()) {
            throw new JiBXException("No content found for class " + cname);
        }
        m_structureStack.pop();
        if (m_verbose) {
            nestingIndent(System.out);
View Full Code Here

Examples of org.jitterbit.ui.widget.tree.KongaTreeNode.children()

        setInitialSelectionState();
    }
   
    private void setInitialSelectionState() {
        KongaTreeNode root = tree.getModel().getRoot();
        for (KongaTreeNode child : root.children()) {
            tree.makeNodeExpanded(child);
        }
    }
   
    private KongaTree createTree(IntegrationProject project) {
View Full Code Here

Examples of org.jsoup.nodes.Document.children()

  private String extractFeedUrl(String html, String baseUri) {
    String foundUrl = null;

    Document doc = Jsoup.parse(html, baseUri);
    String root = doc.children().get(0).tagName();
    if ("html".equals(root)) {
      Elements atom = doc.select("link[type=application/atom+xml]");
      Elements rss = doc.select("link[type=application/rss+xml]");
      if (!atom.isEmpty()) {
        foundUrl = atom.get(0).attr("abs:href");
View Full Code Here

Examples of org.jsoup.nodes.Element.children()

  private static void setColumnWidth(HSSFSheet sheet, Element table) {
    Elements colgroups = table.select("colgroup");
    // 首先设置列宽
    if (colgroups.size() > 0) {
      Element colgroup = colgroups.get(0);
      Elements cols = colgroup.children();
      for (int i = 0; i < cols.size(); i++) {
        Element col = cols.get(i);
        int width = DEFAULT_COLUMN_WIDTH;
        try {
          if (col.hasAttr("width")) {
View Full Code Here

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

    for( TreeNode ch : node.children() ){
      if( ch.getType() == TreeNode.RESOURCE_NODE ){
        Resource r = (Resource) ch;
        if( r.getName().matches( exp ) ){
          res.add( r);
          newRes.children().addAll( r.children() );
          //mergeChildren( newRes, r.children() );
          //for( TreeNode c : r.children() )
          //  merge( newRes.children(), c );
        }
      }
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.