Package org.w3c.dom.html

Examples of org.w3c.dom.html.HTMLTableSectionElement


            public Element getRowContentElement(ElementTable table,int row,Element elem)
            {
                HTMLTableRowElement rowElem = (HTMLTableRowElement)elem;
                HTMLTableCellElement cellElem = (HTMLTableCellElement)ItsNatTreeWalker.getFirstChildElement(rowElem);
                HTMLTableElement tableElem = (HTMLTableElement)ItsNatTreeWalker.getFirstChildElement(cellElem);
                HTMLTableSectionElement tbodyElem = (HTMLTableSectionElement)ItsNatTreeWalker.getFirstChildElement(tableElem);
                rowElem = (HTMLTableRowElement)ItsNatTreeWalker.getFirstChildElement(tbodyElem);
                return rowElem;
            }

            public Element getCellContentElement(ElementTable table,int row,int col,Element elem)
            {
                HTMLTableCellElement cellElem = (HTMLTableCellElement)elem;
                HTMLTableElement tableElem = (HTMLTableElement)ItsNatTreeWalker.getFirstChildElement(cellElem);
                HTMLTableSectionElement tbodyElem = (HTMLTableSectionElement)ItsNatTreeWalker.getFirstChildElement(tableElem);
                HTMLTableRowElement rowElem = (HTMLTableRowElement)ItsNatTreeWalker.getFirstChildElement(tbodyElem);
                cellElem = (HTMLTableCellElement)ItsNatTreeWalker.getFirstChildElement(rowElem);
                return cellElem;
            }
View Full Code Here


  public XTable( String id, String[][] elements )
  {
    super();
    Node text = htmlDoc.getBody().getFirstChild().cloneNode( true );
    HTMLTableElement table = (HTMLTableElement)htmlDoc.createElement( "TABLE" );
    HTMLTableSectionElement body = (HTMLTableSectionElement)htmlDoc.createElement( "TBODY" );
    HTMLTableRowElement row = (HTMLTableRowElement)htmlDoc.createElement( "TR" );
    HTMLTableCellElement cell = (HTMLTableCellElement)htmlDoc.createElement( "TD" );
    table.appendChild( text );
    table.appendChild( body );
    table.setId( id );
    body.appendChild( row );
    body.appendChild( text.cloneNode( true ) );
    row.appendChild( text.cloneNode( true ) );
    row.appendChild( cell );
    row.appendChild( text.cloneNode( true ) );
    cell.appendChild( text.cloneNode( true ) );
    tableElement = table;
View Full Code Here

    return (HTMLElement)localObject;
  }

  public synchronized void deleteTHead()
  {
    HTMLTableSectionElement localHTMLTableSectionElement = getTHead();
    if (localHTMLTableSectionElement != null)
      removeChild(localHTMLTableSectionElement);
  }
View Full Code Here

    return (HTMLElement)localObject;
  }

  public synchronized void deleteTFoot()
  {
    HTMLTableSectionElement localHTMLTableSectionElement = getTFoot();
    if (localHTMLTableSectionElement != null)
      removeChild(localHTMLTableSectionElement);
  }
View Full Code Here

TOP

Related Classes of org.w3c.dom.html.HTMLTableSectionElement

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.