API Overview API Index Package Overview Direct link to this page
JDK 1.6
  org.w3c.dom.html. HTMLTableElement View Source
Author(s)
Since
Version
Serial
Hierarchy
 Node
      Element
          HTMLElement
              HTMLTableElement
Subinterfaces
Description
public interface HTMLTableElement
  The create* and delete* methods on the table allow authors to construct and modify tables.
See also:   
Methods
Hide/Show inherited methods
public HTMLElement createCaption ()
  Create a new table caption object or return an existing one.
public HTMLElement createTFoot ()
  Create a table footer row or return an existing one.
public HTMLElement createTHead ()
  Create a table header row or return an existing one.
public void deleteCaption ()
Delete the table caption, if one exists.
public void deleteRow (int index) throws DOMException
  Delete a table row.
public void deleteTFoot ()
Delete the footer from the table, if one exists.
public void deleteTHead ()
Delete the header from the table, if one exists.
public String getAlign ()
  Specifies the table's position with respect to the rest of the document.
public String getBgColor ()
  Cell background color.
public String getBorder ()
  The width of the border around the table.
public HTMLTableCaptionElement getCaption ()
Returns the table's CAPTION , or void if none exists.
public String getCellPadding ()
  Specifies the horizontal and vertical space between cell content and cell borders.
public String getCellSpacing ()
  Specifies the horizontal and vertical separation between cells.
public String getFrame ()
  Specifies which external table borders to render.
public HTMLCollection getRows ()
Returns a collection of all the rows in the table, including all in THEAD , TFOOT , all TBODY elements.
public String getRules ()
  Specifies which internal table borders to render.
public String getSummary ()
  Description about the purpose or structure of a table.
public HTMLCollection getTBodies ()
Returns a collection of the defined table bodies.
public HTMLTableSectionElement getTFoot ()
Returns the table's TFOOT , or null if none exists.
public HTMLTableSectionElement getTHead ()
Returns the table's THEAD , or null if none exists.
public String getWidth ()
  Specifies the desired table width.
public HTMLElement insertRow (int index) throws DOMException
  Insert a new empty row in the table.
public void setAlign (String align)
public void setBgColor (String bgColor)
public void setBorder (String border)
public void setCaption (HTMLTableCaptionElement caption)
public void setCellPadding (String cellPadding)
public void setCellSpacing (String cellSpacing)
public void setFrame (String frame)
public void setRules (String rules)
public void setSummary (String summary)
public void setTFoot (HTMLTableSectionElement tFoot)
public void setTHead (HTMLTableSectionElement tHead)
public void setWidth (String width)
Fields
Hide/Show inherited fields
publicfinalstatic short ATTRIBUTE_NODE = "2" [Inherited From HTMLElement]
The node is an Attr.
publicfinalstatic short CDATA_SECTION_NODE = "4" [Inherited From HTMLElement]
The node is a CDATASection.
publicfinalstatic short COMMENT_NODE = "8" [Inherited From HTMLElement]
The node is a Comment.
publicfinalstatic short DOCUMENT_FRAGMENT_NODE = "11" [Inherited From HTMLElement]
The node is a DocumentFragment.
publicfinalstatic short DOCUMENT_NODE = "9" [Inherited From HTMLElement]
The node is a Document.
publicfinalstatic short DOCUMENT_POSITION_CONTAINED_BY = "16" [Inherited From HTMLElement]
  The node is contained by the reference node.
publicfinalstatic short DOCUMENT_POSITION_CONTAINS = "8" [Inherited From HTMLElement]
  The node contains the reference node.
publicfinalstatic short DOCUMENT_POSITION_DISCONNECTED = "1" [Inherited From HTMLElement]
  The two nodes are disconnected.
publicfinalstatic short DOCUMENT_POSITION_FOLLOWING = "4" [Inherited From HTMLElement]
The node follows the reference node.
publicfinalstatic short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = "32" [Inherited From HTMLElement]
The determination of preceding versus following is implementation-specific.
publicfinalstatic short DOCUMENT_POSITION_PRECEDING = "2" [Inherited From HTMLElement]
The second node precedes the reference node.
publicfinalstatic short DOCUMENT_TYPE_NODE = "10" [Inherited From HTMLElement]
The node is a DocumentType.
publicfinalstatic short ELEMENT_NODE = "1" [Inherited From HTMLElement]
The node is an Element.
publicfinalstatic short ENTITY_NODE = "6" [Inherited From HTMLElement]
The node is an Entity.
publicfinalstatic short ENTITY_REFERENCE_NODE = "5" [Inherited From HTMLElement]
The node is an EntityReference.
publicfinalstatic short NOTATION_NODE = "12" [Inherited From HTMLElement]
The node is a Notation.
publicfinalstatic short PROCESSING_INSTRUCTION_NODE = "7" [Inherited From HTMLElement]
The node is a ProcessingInstruction.
publicfinalstatic short TEXT_NODE = "3" [Inherited From HTMLElement]
The node is a Text node.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar