Examples of NodeList


Examples of org.eclipse.draw2d.graph.NodeList

        }
    }

    protected void applyResults(ElementConnectionEditPart connectionPart)    {
        Edge e = (Edge) partToNodesMap.get(connectionPart);
        NodeList nodes = e.vNodes;
        PolylineConnection conn = (PolylineConnection) connectionPart.getConnectionFigure();
        conn.setTargetDecoration(new PolygonDecoration());
        if (nodes != null) {
            List<Bendpoint> bends = new ArrayList<Bendpoint>();
            for (int i = 0; i < nodes.size(); i++) {
                Node vn = nodes.getNode(i);
                int x = vn.x;
                int y = vn.y;
                if (e.isFeedback()) {
                    bends.add(new AbsoluteBendpoint(x, y + vn.height));
                    bends.add(new AbsoluteBendpoint(x, y));
View Full Code Here

Examples of org.freeplane.view.swing.features.time.mindmapmode.nodelist.NodeList

     */
    private final NodeList timeList;

    public TimeListAction() {
      super("TimeListAction");
      timeList = new NodeList(false, false);
    }
View Full Code Here

Examples of org.htmlparser.util.NodeList

    StringBuffer text = new StringBuffer();
    Parser parser = new Parser();
    parser.setInputHTML(html);
    parser.setEncoding(Globals.ENC_8859_1);
    //�������еĽڵ�
    NodeList nodes;
    try {
      nodes = parser.extractAllNodesThatMatch(nfilter);
    } catch (ParserException e) {
      return html;
    }
    for(int i=0;i<nodes.size();i++){
      TextNode node = (TextNode)nodes.elementAt(i);
      text.append(node.getText());
    }
    return StringUtils.remove(text.toString(),"&nbsp;");
  }
View Full Code Here

Examples of org.htmlparser.util.NodeList

    Parser parser = new Parser();
    StringBuffer prvContent = new StringBuffer();
    try {
      parser.setEncoding(Globals.ENC_8859_1);
      parser.setInputHTML(html);
      NodeList nodes = parser.extractAllNodesThatMatch(nfilter);
      Node node = null;
      for(int i=0;i<nodes.size();i++){
        if(prvContent.length() >= max_count){
          if(node instanceof TagNode){
            TagNode tmp_node = (TagNode)node;
            boolean isEnd = tmp_node.isEndTag();
            if(!isEnd){
              prvContent.setLength(prvContent.length()-tmp_node.getText().length()-2);
            }
          }
          //��������δ�رյı�ǩ
          Node parent = node;
          //System.out.println("current node is . "+parent.getText());
          do{
            parent = parent.getParent()
            //System.out.println("parent = "+parent);         
            if(parent==null) break;
            if(!(parent instanceof TagNode)) continue;
            //System.out.println("Parent node is no ended. "+parent.getText());
            prvContent.append(((TagNode)parent).getEndTag().toHtml());
          }while(true);
          break;
        }
        node = nodes.elementAt(i);
        if(node instanceof TagNode){
          TagNode tag = (TagNode)node;
          prvContent.append('<');
          prvContent.append(tag.getText());
          prvContent.append('>');
View Full Code Here

Examples of org.htmlparser.util.NodeList

    StringBuffer text = new StringBuffer();
    Parser parser = new Parser();
    parser.setInputHTML(new String(inputHtml.getBytes(),ISO8859_1));
    //Parser parser = Parser.createParser(new String(inputHtml.getBytes(),ISO8859_1));
    //�������еĽڵ�
    NodeList nodes = parser.extractAllNodesThatMatch(nodeFilter);
    for(int i=0;i<nodes.size();i++){
      Node node = nodes.elementAt(i);
      text.append(new String(node.toPlainTextString().getBytes(ISO8859_1)));
    }
    return text.toString();
  }
View Full Code Here

Examples of org.htmlparser.util.NodeList

      StringBuffer text = new StringBuffer();
      Parser parser = new Parser();
      parser.setEncoding("8859_1");
      parser.setInputHTML(html);
      //�������еĽڵ�
      NodeList nodes = parser.extractAllNodesThatMatch(scriptFilter);     
      for(int i=0;i<nodes.size();i++){
        Node node = nodes.elementAt(i);
        if(node instanceof TextNode)
          text.append(node.getText());
        else{
          text.append('<');
          text.append(node.getText());
View Full Code Here

Examples of org.sgx.yuigwt.yui.node.NodeList

    }

    // else if (n.hasClass(CLASS_BUTTON)) {
    else if (yuiWidget != null && yuiWidget.equals("button")) {
      Element e = n.getDOMNode();
      NodeList prevChildren = n.children();
     
      String prevId = n.get("id");
      String prevClass = e.getClassName();
     
      WidgetConfig config = ButtonConfig.create().srcNode(n);
      config = y.merge(config, nodeConfig).cast();
      w = y.newButton(config).render();
      e = w.contentBox().getDOMNode();
     
      //fix - re set previous id and class attributes - http://jsfiddle.net/cancerbero_sgx/MPc4g/3/
      e.setClassName(e.getClassName()+" "+prevClass);
      y.one(e).prepend(prevChildren);
      n.set("id", prevId);
    }
   
    else if (yuiWidget != null && yuiWidget.equals("togglebutton")) {
      Element e = n.getDOMNode();
      NodeList prevChildren = n.children();
     
      String prevId = n.get("id");
      String prevClass = e.getClassName();
     
      WidgetConfig config = ButtonConfig.create().srcNode(n);
View Full Code Here

Examples of org.w3c.dom.NodeList

    }


    // recursive travel through all childs
    NodeList childs = element.getChildNodes();

    for (int i=0; i<childs.getLength(); i++) {
      if (childs.item(i) instanceof Element) {
  collectInputFields((Element)childs.item(i),fh);
      }
    }
   
  }
View Full Code Here

Examples of org.w3c.dom.NodeList

                    Object obj4 = it4.next();
                    if (obj4 instanceof SOAPBodyElement) {
                      SOAPBodyElement soapBodyElement = (SOAPBodyElement) obj4;
                      System.out.println("5: \t" + soapBodyElement.getNodeName());
                      Iterator it5 = soapBodyElement.getChildElements();
                      NodeList nl =  soapBodyElement.getChildNodes();
                      if (nl != null) {
                        for (int i = 0; i < nl.getLength(); i++) {
                          System.out.println("6: \t\t" + nl.item(i).getNodeName());
                        }
                      }
                      /*Object obj5 = it5.next();
                      SOAPElement element = (SOAPElement) obj5;
                      String name = element.getNodeName();
View Full Code Here

Examples of org.w3c.dom.NodeList

      log.info("Ignore tag name: "+name);
    }
   
   
    // recursive travel through all childs
    NodeList childs = element.getChildNodes();
   
    for (int i=0; i<childs.getLength(); i++) {
      if (childs.item(i) instanceof Element) {
        extractLinks((Element)childs.item(i),links);
      }
    }
   
  }
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.