Top Fields Constructors Methods
org.apache.html.dom

public Class HTMLTableElementImpl

extends HTMLElementImpl
implements HTMLTableElement
Class Inheritance
All Implemented Interfaces
org.w3c.dom.html.HTMLTableElement, org.w3c.dom.html.HTMLElement, org.w3c.dom.Element, org.w3c.dom.Node
Imports
org.w3c.dom.Node, org.w3c.dom.html.HTMLCollection, .HTMLElement, .HTMLTableCaptionElement, .HTMLTableElement, .HTMLTableRowElement, .HTMLTableSectionElement

Author
Assaf Arkin
Version
$Revision: 1029415 $ $Date: 2010-10-31 22:32:22 +0530 (Sun, 31 Oct 2010) $
See Also
org.w3c.dom.html.HTMLAnchorElement, org.apache.xerces.dom.ElementImpl

Field Summary

Modifier and TypeField and Description
private HTMLCollectionImpl
private HTMLCollectionImpl
private static final long

Constructor Summary

AccessConstructor and Description
public
HTMLTableElementImpl(HTMLDocumentImpl
The owner HTML document
owner
,
String name)

Constructor requires owner document.

Method Summary

Modifier and TypeMethod and Description
public Node
cloneNode(boolean
If true, recursively clone the subtree under the specified node; if false, clone only the node itself (and its attributes, if it is an Element).
deep
)

Overrides org.apache.xerces.dom.ElementImpl.cloneNode.

Implements org.w3c.dom.Node.cloneNode.

Explicit implementation of cloneNode() to ensure that cache used for getRows() and getTBodies() gets cleared.
public synchronized HTMLElement
createCaption()

Implements org.w3c.dom.html.HTMLTableElement.createCaption.

Create a new table caption object or return an existing one.
public synchronized HTMLElement
createTFoot()

Implements org.w3c.dom.html.HTMLTableElement.createTFoot.

Create a table footer row or return an existing one.
public synchronized HTMLElement
createTHead()

Implements org.w3c.dom.html.HTMLTableElement.createTHead.

Create a table header row or return an existing one.
public synchronized void
deleteCaption()

Implements org.w3c.dom.html.HTMLTableElement.deleteCaption.

Delete the table caption, if one exists.
public synchronized void
deleteRow(int
The index of the row to be deleted. This index starts from 0 and is relative to all the rows contained inside the table, regardless of section parentage.
index
)

Implements org.w3c.dom.html.HTMLTableElement.deleteRow.

Delete a table row.
public synchronized void
deleteTFoot()

Implements org.w3c.dom.html.HTMLTableElement.deleteTFoot.

Delete the footer from the table, if one exists.
public synchronized void
deleteTHead()

Implements org.w3c.dom.html.HTMLTableElement.deleteTHead.

Delete the header from the table, if one exists.
public String
getAlign()

Implements org.w3c.dom.html.HTMLTableElement.getAlign.

Specifies the table's position with respect to the rest of the document.
public String
getBgColor()

Implements org.w3c.dom.html.HTMLTableElement.getBgColor.

Cell background color.
public String
getBorder()

Implements org.w3c.dom.html.HTMLTableElement.getBorder.

The width of the border around the table.
public synchronized HTMLTableCaptionElement
getCaption()

Implements org.w3c.dom.html.HTMLTableElement.getCaption.

Returns the table's CAPTION , or void if none exists.
public String
getCellPadding()

Implements org.w3c.dom.html.HTMLTableElement.getCellPadding.

Specifies the horizontal and vertical space between cell content and cell borders.
public String
getCellSpacing()

Implements org.w3c.dom.html.HTMLTableElement.getCellSpacing.

Specifies the horizontal and vertical separation between cells.
public String
getFrame()

Implements org.w3c.dom.html.HTMLTableElement.getFrame.

Specifies which external table borders to render.
public HTMLCollection
getRows()

Implements org.w3c.dom.html.HTMLTableElement.getRows.

Returns a collection of all the rows in the table, including all in THEAD , TFOOT , all TBODY elements.
public String
getRules()

Implements org.w3c.dom.html.HTMLTableElement.getRules.

Specifies which internal table borders to render.
public String
getSummary()

Implements org.w3c.dom.html.HTMLTableElement.getSummary.

Description about the purpose or structure of a table.
public HTMLCollection
getTBodies()

Implements org.w3c.dom.html.HTMLTableElement.getTBodies.

Returns a collection of the defined table bodies.
public synchronized HTMLTableSectionElement
getTFoot()

Implements org.w3c.dom.html.HTMLTableElement.getTFoot.

Returns the table's TFOOT , or null if none exists.
public synchronized HTMLTableSectionElement
getTHead()

Implements org.w3c.dom.html.HTMLTableElement.getTHead.

Returns the table's THEAD , or null if none exists.
public String
getWidth()

Implements org.w3c.dom.html.HTMLTableElement.getWidth.

Specifies the desired table width.
public HTMLElement
insertRow(int
The row number where to insert a new row. This index starts from 0 and is relative to all the rows contained inside the table, regardless of section parentage.
index
)

Implements org.w3c.dom.html.HTMLTableElement.insertRow.

Insert a new empty row in the table.
pack-priv void
public void
public void
public void
public synchronized void
public void
public void
public void
public void
public void
public synchronized void
public synchronized void
public void
Inherited from org.apache.html.dom.HTMLElementImpl:
capitalizegetAttributegetAttributeNodegetAttributeNodeNSgetAttributeNSgetBinarygetCapitalizedgetClassNamegetDirgetElementsByTagNamegetElementsByTagNameNSgetFormgetIdgetIntegergetLanggetTitlesetAttributesetClassNamesetDirsetIdsetLangsetTitle

Field Detail

_bodiesback to summary
private HTMLCollectionImpl _bodies
_rowsback to summary
private HTMLCollectionImpl _rows
serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.apache.html.dom.HTMLElementImpl.serialVersionUID.

Constructor Detail

HTMLTableElementImplback to summary
public HTMLTableElementImpl(HTMLDocumentImpl owner, String name)

Constructor requires owner document.

Parameters
owner:HTMLDocumentImpl

The owner HTML document

Method Detail

cloneNodeback to summary
public Node cloneNode(boolean deep)

Overrides org.apache.xerces.dom.ElementImpl.cloneNode.

Implements org.w3c.dom.Node.cloneNode.

Explicit implementation of cloneNode() to ensure that cache used for getRows() and getTBodies() gets cleared.

Parameters
deep:boolean

Doc from org.w3c.dom.Node.cloneNode.

If true, recursively clone the subtree under the specified node; if false, clone only the node itself (and its attributes, if it is an Element).

Returns:Node

Doc from org.w3c.dom.Node.cloneNode.

The duplicate node.

createCaptionback to summary
public synchronized HTMLElement createCaption()

Implements org.w3c.dom.html.HTMLTableElement.createCaption.

Doc from org.w3c.dom.html.HTMLTableElement.createCaption.

Create a new table caption object or return an existing one.

Returns:HTMLElement

A CAPTION element.

createTFootback to summary
public synchronized HTMLElement createTFoot()

Implements org.w3c.dom.html.HTMLTableElement.createTFoot.

Doc from org.w3c.dom.html.HTMLTableElement.createTFoot.

Create a table footer row or return an existing one.

Returns:HTMLElement

A footer element (TFOOT ).

createTHeadback to summary
public synchronized HTMLElement createTHead()

Implements org.w3c.dom.html.HTMLTableElement.createTHead.

Doc from org.w3c.dom.html.HTMLTableElement.createTHead.

Create a table header row or return an existing one.

Returns:HTMLElement

A new table header element (THEAD ).

deleteCaptionback to summary
public synchronized void deleteCaption()

Implements org.w3c.dom.html.HTMLTableElement.deleteCaption.

Doc from org.w3c.dom.html.HTMLTableElement.deleteCaption.

Delete the table caption, if one exists.

deleteRowback to summary
public synchronized void deleteRow(int index)

Implements org.w3c.dom.html.HTMLTableElement.deleteRow.

Doc from org.w3c.dom.html.HTMLTableElement.deleteRow.

Delete a table row.

Parameters
index:int

The index of the row to be deleted. This index starts from 0 and is relative to all the rows contained inside the table, regardless of section parentage.

deleteTFootback to summary
public synchronized void deleteTFoot()

Implements org.w3c.dom.html.HTMLTableElement.deleteTFoot.

Doc from org.w3c.dom.html.HTMLTableElement.deleteTFoot.

Delete the footer from the table, if one exists.

deleteTHeadback to summary
public synchronized void deleteTHead()

Implements org.w3c.dom.html.HTMLTableElement.deleteTHead.

Doc from org.w3c.dom.html.HTMLTableElement.deleteTHead.

Delete the header from the table, if one exists.

getAlignback to summary
public String getAlign()

Implements org.w3c.dom.html.HTMLTableElement.getAlign.

Doc from org.w3c.dom.html.HTMLTableElement.getAlign.

Specifies the table's position with respect to the rest of the document. See the align attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.

getBgColorback to summary
public String getBgColor()

Implements org.w3c.dom.html.HTMLTableElement.getBgColor.

Doc from org.w3c.dom.html.HTMLTableElement.getBgColor.

Cell background color. See the bgcolor attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.

getBorderback to summary
public String getBorder()

Implements org.w3c.dom.html.HTMLTableElement.getBorder.

Doc from org.w3c.dom.html.HTMLTableElement.getBorder.

The width of the border around the table. See the border attribute definition in HTML 4.0.

getCaptionback to summary
public synchronized HTMLTableCaptionElement getCaption()

Implements org.w3c.dom.html.HTMLTableElement.getCaption.

Doc from org.w3c.dom.html.HTMLTableElement.getCaption.

Returns the table's CAPTION , or void if none exists.

getCellPaddingback to summary
public String getCellPadding()

Implements org.w3c.dom.html.HTMLTableElement.getCellPadding.

Doc from org.w3c.dom.html.HTMLTableElement.getCellPadding.

Specifies the horizontal and vertical space between cell content and cell borders. See the cellpadding attribute definition in HTML 4.0.

getCellSpacingback to summary
public String getCellSpacing()

Implements org.w3c.dom.html.HTMLTableElement.getCellSpacing.

Doc from org.w3c.dom.html.HTMLTableElement.getCellSpacing.

Specifies the horizontal and vertical separation between cells. See the cellspacing attribute definition in HTML 4.0.

getFrameback to summary
public String getFrame()

Implements org.w3c.dom.html.HTMLTableElement.getFrame.

Doc from org.w3c.dom.html.HTMLTableElement.getFrame.

Specifies which external table borders to render. See the frame attribute definition in HTML 4.0.

getRowsback to summary
public HTMLCollection getRows()

Implements org.w3c.dom.html.HTMLTableElement.getRows.

Doc from org.w3c.dom.html.HTMLTableElement.getRows.

Returns a collection of all the rows in the table, including all in THEAD , TFOOT , all TBODY elements.

getRulesback to summary
public String getRules()

Implements org.w3c.dom.html.HTMLTableElement.getRules.

Doc from org.w3c.dom.html.HTMLTableElement.getRules.

Specifies which internal table borders to render. See the rules attribute definition in HTML 4.0.

getSummaryback to summary
public String getSummary()

Implements org.w3c.dom.html.HTMLTableElement.getSummary.

Doc from org.w3c.dom.html.HTMLTableElement.getSummary.

Description about the purpose or structure of a table. See the summary attribute definition in HTML 4.0.

getTBodiesback to summary
public HTMLCollection getTBodies()

Implements org.w3c.dom.html.HTMLTableElement.getTBodies.

Doc from org.w3c.dom.html.HTMLTableElement.getTBodies.

Returns a collection of the defined table bodies.

getTFootback to summary
public synchronized HTMLTableSectionElement getTFoot()

Implements org.w3c.dom.html.HTMLTableElement.getTFoot.

Doc from org.w3c.dom.html.HTMLTableElement.getTFoot.

Returns the table's TFOOT , or null if none exists.

getTHeadback to summary
public synchronized HTMLTableSectionElement getTHead()

Implements org.w3c.dom.html.HTMLTableElement.getTHead.

Doc from org.w3c.dom.html.HTMLTableElement.getTHead.

Returns the table's THEAD , or null if none exists.

getWidthback to summary
public String getWidth()

Implements org.w3c.dom.html.HTMLTableElement.getWidth.

Doc from org.w3c.dom.html.HTMLTableElement.getWidth.

Specifies the desired table width. See the width attribute definition in HTML 4.0.

insertRowback to summary
public HTMLElement insertRow(int index)

Implements org.w3c.dom.html.HTMLTableElement.insertRow.

Doc from org.w3c.dom.html.HTMLTableElement.insertRow.

Insert a new empty row in the table. The new row is inserted immediately before and in the same section as the current index th row in the table. If index is equal to the number of rows, the new row is appended. In addition, when the table is empty the row is inserted into a TBODY which is created and inserted into the table. Note. A table row cannot be empty according to HTML 4.0 Recommendation.

Parameters
index:int

The row number where to insert a new row. This index starts from 0 and is relative to all the rows contained inside the table, regardless of section parentage.

Returns:HTMLElement

The newly created row.

insertRowXback to summary
pack-priv void insertRowX(int index, HTMLTableRowElementImpl newRow)
setAlignback to summary
public void setAlign(String align)

Implements org.w3c.dom.html.HTMLTableElement.setAlign.

setBgColorback to summary
public void setBgColor(String bgColor)

Implements org.w3c.dom.html.HTMLTableElement.setBgColor.

setBorderback to summary
public void setBorder(String border)

Implements org.w3c.dom.html.HTMLTableElement.setBorder.

setCaptionback to summary
public synchronized void setCaption(HTMLTableCaptionElement caption)

Implements org.w3c.dom.html.HTMLTableElement.setCaption.

setCellPaddingback to summary
public void setCellPadding(String cellPadding)

Implements org.w3c.dom.html.HTMLTableElement.setCellPadding.

setCellSpacingback to summary
public void setCellSpacing(String cellSpacing)

Implements org.w3c.dom.html.HTMLTableElement.setCellSpacing.

setFrameback to summary
public void setFrame(String frame)

Implements org.w3c.dom.html.HTMLTableElement.setFrame.

setRulesback to summary
public void setRules(String rules)

Implements org.w3c.dom.html.HTMLTableElement.setRules.

setSummaryback to summary
public void setSummary(String summary)

Implements org.w3c.dom.html.HTMLTableElement.setSummary.

setTFootback to summary
public synchronized void setTFoot(HTMLTableSectionElement tFoot)

Implements org.w3c.dom.html.HTMLTableElement.setTFoot.

setTHeadback to summary
public synchronized void setTHead(HTMLTableSectionElement tHead)

Implements org.w3c.dom.html.HTMLTableElement.setTHead.

setWidthback to summary
public void setWidth(String width)

Implements org.w3c.dom.html.HTMLTableElement.setWidth.