Methods Summary |
---|
public org.w3c.dom.Node | cloneNode(boolean deep)Explicit implementation of cloneNode() to ensure that cache used
for getRows() and getTBodies() gets cleared.
HTMLTableElementImpl clonedNode = (HTMLTableElementImpl)super.cloneNode( deep );
clonedNode._rows = null;
clonedNode._bodies = null;
return clonedNode;
|
public synchronized org.w3c.dom.html.HTMLElement | createCaption()
HTMLElement section;
section = getCaption();
if ( section != null )
return section;
section = new HTMLTableCaptionElementImpl( (HTMLDocumentImpl) getOwnerDocument(), "CAPTION" );
appendChild( section );
return section;
|
public synchronized org.w3c.dom.html.HTMLElement | createTFoot()
HTMLElement section;
section = getTFoot();
if ( section != null )
return section;
section = new HTMLTableSectionElementImpl( (HTMLDocumentImpl) getOwnerDocument(), "TFOOT" );
appendChild( section );
return section;
|
public synchronized org.w3c.dom.html.HTMLElement | createTHead()
HTMLElement section;
section = getTHead();
if ( section != null )
return section;
section = new HTMLTableSectionElementImpl( (HTMLDocumentImpl) getOwnerDocument(), "THEAD" );
appendChild( section );
return section;
|
public synchronized void | deleteCaption()
Node old;
old = getCaption();
if ( old != null )
removeChild ( old );
|
public synchronized void | deleteRow(int index)
Node child;
child = getFirstChild();
while ( child != null )
{
if ( child instanceof HTMLTableRowElement )
{
if ( index == 0 )
{
removeChild ( child );
return;
}
--index;
}
else
if ( child instanceof HTMLTableSectionElementImpl )
{
index = ( (HTMLTableSectionElementImpl) child ).deleteRowX( index );
if ( index < 0 )
return;
}
child = child.getNextSibling();
}
|
public synchronized void | deleteTFoot()
Node old;
old = getTFoot();
if ( old != null )
removeChild ( old );
|
public synchronized void | deleteTHead()
Node old;
old = getTHead();
if ( old != null )
removeChild ( old );
|
public java.lang.String | getAlign()
return capitalize( getAttribute( "align" ) );
|
public java.lang.String | getBgColor()
return getAttribute( "bgcolor" );
|
public java.lang.String | getBorder()
return getAttribute( "border" );
|
public synchronized org.w3c.dom.html.HTMLTableCaptionElement | getCaption()
Node child;
child = getFirstChild();
while ( child != null )
{
if ( child instanceof HTMLTableCaptionElement &&
child.getNodeName().equals( "CAPTION" ) )
return (HTMLTableCaptionElement) child;
child = child.getNextSibling();
}
return null;
|
public java.lang.String | getCellPadding()
return getAttribute( "cellpadding" );
|
public java.lang.String | getCellSpacing()
return getAttribute( "cellspacing" );
|
public java.lang.String | getFrame()
return capitalize( getAttribute( "frame" ) );
|
public org.w3c.dom.html.HTMLCollection | getRows()
if ( _rows == null )
_rows = new HTMLCollectionImpl( this, HTMLCollectionImpl.ROW );
return _rows;
|
public java.lang.String | getRules()
return capitalize( getAttribute( "rules" ) );
|
public java.lang.String | getSummary()
return getAttribute( "summary" );
|
public org.w3c.dom.html.HTMLCollection | getTBodies()
if ( _bodies == null )
_bodies = new HTMLCollectionImpl( this, HTMLCollectionImpl.TBODY );
return _bodies;
|
public synchronized org.w3c.dom.html.HTMLTableSectionElement | getTFoot()
Node child;
child = getFirstChild();
while ( child != null )
{
if ( child instanceof HTMLTableSectionElement &&
child.getNodeName().equals( "TFOOT" ) )
return (HTMLTableSectionElement) child;
child = child.getNextSibling();
}
return null;
|
public synchronized org.w3c.dom.html.HTMLTableSectionElement | getTHead()
Node child;
child = getFirstChild();
while ( child != null )
{
if ( child instanceof HTMLTableSectionElement &&
child.getNodeName().equals( "THEAD" ) )
return (HTMLTableSectionElement) child;
child = child.getNextSibling();
}
return null;
|
public java.lang.String | getWidth()
return getAttribute( "width" );
|
public org.w3c.dom.html.HTMLElement | insertRow(int index)
HTMLTableRowElementImpl newRow;
newRow = new HTMLTableRowElementImpl( (HTMLDocumentImpl) getOwnerDocument(), "TR" );
//newRow.insertCell( 0 );
insertRowX( index, newRow );
return newRow;
|
void | insertRowX(int index, HTMLTableRowElementImpl newRow)
Node child;
Node lastSection = null;
child = getFirstChild();
while ( child != null )
{
if ( child instanceof HTMLTableRowElement )
{
if ( index == 0 )
{
insertBefore( newRow, child );
return;
}
}
else
if ( child instanceof HTMLTableSectionElementImpl )
{
lastSection = child;
index = ( (HTMLTableSectionElementImpl) child ).insertRowX( index, newRow );
if ( index < 0 )
return;
}
child = child.getNextSibling();
}
if ( lastSection != null )
lastSection.appendChild( newRow );
else
appendChild( newRow );
|
public void | setAlign(java.lang.String align)
setAttribute( "align", align );
|
public void | setBgColor(java.lang.String bgColor)
setAttribute( "bgcolor", bgColor );
|
public void | setBorder(java.lang.String border)
setAttribute( "border", border );
|
public synchronized void | setCaption(org.w3c.dom.html.HTMLTableCaptionElement caption)
if ( caption != null && ! caption.getTagName().equals( "CAPTION" ) )
throw new IllegalArgumentException( "HTM016 Argument 'caption' is not an element of type <CAPTION>." );
deleteCaption();
if ( caption != null )
appendChild( caption );
|
public void | setCellPadding(java.lang.String cellPadding)
setAttribute( "cellpadding", cellPadding );
|
public void | setCellSpacing(java.lang.String cellSpacing)
setAttribute( "cellspacing", cellSpacing );
|
public void | setFrame(java.lang.String frame)
setAttribute( "frame", frame );
|
public void | setRules(java.lang.String rules)
setAttribute( "rules", rules );
|
public void | setSummary(java.lang.String summary)
setAttribute( "summary", summary );
|
public synchronized void | setTFoot(org.w3c.dom.html.HTMLTableSectionElement tFoot)
if ( tFoot != null && ! tFoot.getTagName().equals( "TFOOT" ) )
throw new IllegalArgumentException( "HTM018 Argument 'tFoot' is not an element of type <TFOOT>." );
deleteTFoot();
if ( tFoot != null )
appendChild( tFoot );
|
public synchronized void | setTHead(org.w3c.dom.html.HTMLTableSectionElement tHead)
if ( tHead != null && ! tHead.getTagName().equals( "THEAD" ) )
throw new IllegalArgumentException( "HTM017 Argument 'tHead' is not an element of type <THEAD>." );
deleteTHead();
if ( tHead != null )
appendChild( tHead );
|
public void | setWidth(java.lang.String width)
setAttribute( "width", width );
|