Package org.allcolor.html2.parser

Examples of org.allcolor.html2.parser.CHTMLCaptionElement


   * @return DOCUMENT ME!
   */
  public HTMLCollection getAnchors() {
    if (this.isHTMLDocument) {
      if (anchorsCol != null) return anchorsCol;
      return anchorsCol = new CHTMLCollection(createAnchorsCol());
    }
    return new CHTMLCollection(this.getElementsByTagName("a"));
  } // end getAnchors()
View Full Code Here


   * @return DOCUMENT ME!
   */
  public HTMLCollection getApplets() {
    if (this.isHTMLDocument) {
      if (appletsCol != null) return appletsCol;
      return appletsCol = new CHTMLCollection(createAppletsCol());
    }
    return new CHTMLCollection(new CNodeList(true));
  } // end getApplets()
View Full Code Here

   * @return DOCUMENT ME!
   */
  public HTMLCollection getForms() {
    if (this.isHTMLDocument) {
      if (formsCol != null) return formsCol;
      return formsCol = new CHTMLCollection(createFormsCol());
    }
    return new CHTMLCollection(new CNodeList(true));
  } // end getForms()
View Full Code Here

   * @return DOCUMENT ME!
   */
  public HTMLCollection getImages() {
    if (this.isHTMLDocument) {
      if (imagesCol != null) return imagesCol;
      return imagesCol = new CHTMLCollection(this.getElementsByTagName("img"));
    }
    return new CHTMLCollection(new CNodeList(true));
  } // end getImages()
View Full Code Here

   * @return DOCUMENT ME!
   */
  public HTMLCollection getLinks() {
    if (this.isHTMLDocument) {
      if (linksCol != null) return linksCol;
      return linksCol = new CHTMLCollection(createLinksCol());
    }
    return new CHTMLCollection(new CNodeList(true));
  } // end getLinks()
View Full Code Here

        if (nl.getLength() > 0) {
          this.head = (HTMLElement) nl.item(0);
        } // end if
        else {
          this.head = new CHTMLHeadElement(this);
          nl = this.getElementsByTagName("html");

          if (nl.getLength() > 0) {
            HTMLHtmlElement html = (HTMLHtmlElement) nl.item(0);
            html.appendChild(this.head);
View Full Code Here

        if (index == -1) index = nl.getLength();
        if (index < 0 || index > nl.getLength()) {
          throw new DOMException(DOMException.INDEX_SIZE_ERR,index+" > "+nl.getLength()+" ,array index out of bound.");
        }
        if (nl.getLength() == 0) {
          CHTMLTbodyElement body = new CHTMLTbodyElement(ownerDocument);
          appendChild(body);
          body.appendChild(tr);
        } else {
          boolean inserted = false;
          Node lastNode = null;
          for (int i=0;i<nl.getLength();i++) {
            Node n = nl.item(i);
View Full Code Here

      if (nl.getLength() > 0) {
        nTitle = (HTMLTitleElement) nl.item(0);
        nTitle.setTitle(title);
      } // end if
      else {
        nTitle = new CHTMLTitleElement(this);
        nTitle.setTitle(title);
        nl = this.getElementsByTagName("head");

        HTMLHeadElement head = null;
View Full Code Here

TOP

Related Classes of org.allcolor.html2.parser.CHTMLCaptionElement

Copyright © 2018 www.massapicom. 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.