Methods Summary |
---|
public void | deleteRow(int index)
deleteRowX( index );
|
int | deleteRowX(int index)
Node child;
child = getFirstChild();
while ( child != null )
{
if ( child instanceof HTMLTableRowElement )
{
if ( index == 0 )
{
removeChild ( child );
return -1;
}
--index;
}
child = child.getNextSibling();
}
return index;
|
public java.lang.String | getAlign()
return capitalize( getAttribute( "align" ) );
|
public java.lang.String | getCh()
String ch;
// Make sure that the access key is a single character.
ch = getAttribute( "char" );
if ( ch != null && ch.length() > 1 )
ch = ch.substring( 0, 1 );
return ch;
|
public java.lang.String | getChOff()
return getAttribute( "charoff" );
|
public org.w3c.dom.html.HTMLCollection | getRows()
if ( _rows == null )
_rows = new HTMLCollectionImpl( this, HTMLCollectionImpl.ROW );
return _rows;
|
public java.lang.String | getVAlign()
return capitalize( getAttribute( "valign" ) );
|
public org.w3c.dom.html.HTMLElement | insertRow(int index)
HTMLTableRowElementImpl newRow;
newRow = new HTMLTableRowElementImpl( (HTMLDocumentImpl) getOwnerDocument(), "TR" );
newRow.insertCell( 0 );
if ( insertRowX( index, newRow ) >= 0 )
appendChild( newRow );
return newRow;
|
int | insertRowX(int index, HTMLTableRowElementImpl newRow)
Node child;
child = getFirstChild();
while ( child != null )
{
if ( child instanceof HTMLTableRowElement )
{
if ( index == 0 )
{
insertBefore( newRow, child );
return -1;
}
--index;
}
child = child.getNextSibling();
}
return index;
|
public void | setAlign(java.lang.String align)
setAttribute( "align", align );
|
public void | setCh(java.lang.String ch)
// Make sure that the access key is a single character.
if ( ch != null && ch.length() > 1 )
ch = ch.substring( 0, 1 );
setAttribute( "char", ch );
|
public void | setChOff(java.lang.String chOff)
setAttribute( "charoff", chOff );
|
public void | setVAlign(java.lang.String vAlign)
setAttribute( "valign", vAlign );
|