org.kde.koala
Class HTMLTableElement

java.lang.Object
  extended by org.kde.koala.Node
      extended by org.kde.koala.Element
          extended by org.kde.koala.HTMLElement
              extended by org.kde.koala.HTMLTableElement
All Implemented Interfaces:
org.kde.qt.QtSupport

public class HTMLTableElement
extends HTMLElement

The create and delete methods on the table allow authors to construct and modify tables. HTML 4.0 specifies that only one of each of the CAPTION , THEAD , and TFOOT elements may exist in a table. Therefore, if one exists, and the createTHead() or createTFoot() method is called, the method returns the existing THead or TFoot element. See the TABLE element definition in HTML 4.0.


Constructor Summary
  HTMLTableElement()
           
protected HTMLTableElement(java.lang.Class dummy)
           
  HTMLTableElement(HTMLTableElement other)
           
  HTMLTableElement(Node other)
           
 
Method Summary
 java.lang.String align()
          Specifies the table's position with respect to the rest of the document.
 java.lang.String bgColor()
          Cell background color.
 java.lang.String border()
          The width of the border around the table.
 HTMLTableCaptionElement caption()
          Returns the table's CAPTION , or void if none exists.
 java.lang.String cellPadding()
          Specifies the horizontal and vertical space between cell content and cell borders.
 java.lang.String cellSpacing()
          Specifies the horizontal and vertical separation between cells.
 HTMLElement createCaption()
          Create a new table caption object or return an existing one.
 HTMLElement createTFoot()
          Create a table footer row or return an existing one.
 HTMLElement createTHead()
          Create a table header row or return an existing one.
 void deleteCaption()
          Delete the table caption, if one exists.
 void deleteRow(long index)
          Delete a table row.
 void deleteTFoot()
          Delete the footer from the table, if one exists.
 void deleteTHead()
          Delete the header from the table, if one exists.
 java.lang.String frame()
          Specifies which external table borders to render.
 HTMLElement insertRow(long index)
          Insert a new empty row in the table.
 HTMLCollection rows()
          Returns a collection of all the rows in the table, including all in THEAD , TFOOT , all TBODY elements.
 java.lang.String rules()
          Specifies which internal table borders to render.
 void setAlign(java.lang.String arg1)
          see align
 void setBgColor(java.lang.String arg1)
          see bgColor
 void setBorder(java.lang.String arg1)
          see border
 void setCaption(HTMLTableCaptionElement arg1)
          see caption
 void setCellPadding(java.lang.String arg1)
          see cellPadding
 void setCellSpacing(java.lang.String arg1)
          see cellSpacing
 void setFrame(java.lang.String arg1)
          see frame
 void setRules(java.lang.String arg1)
          see rules
 void setSummary(java.lang.String arg1)
          see summary
 void setTFoot(HTMLTableSectionElement arg1)
          see tFoot
 void setTHead(HTMLTableSectionElement arg1)
          see tHead
 void setWidth(java.lang.String arg1)
          see width
 java.lang.String summary()
          Supplementary description about the purpose or structure of a table.
 HTMLCollection tBodies()
          Returns a collection of the table bodies (including implicit ones).
 HTMLTableSectionElement tFoot()
          Returns the table's TFOOT , or null if none exists.
 HTMLTableSectionElement tHead()
          Returns the table's THEAD , or null if none exists.
 java.lang.String width()
          Specifies the desired table width.
 
Methods inherited from class org.kde.koala.HTMLElement
addCSSProperty, all, assignOther, children, className, dir, id, innerHTML, innerText, lang, removeCSSProperty, setClassName, setDir, setId, setInnerHTML, setInnerText, setLang, setTitle, title
 
Methods inherited from class org.kde.koala.Element
contentEditable, form, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, hasAttribute, hasAttributeNS, isHTMLElement, khtmlMalformedPrefix, khtmlMalformedQualifiedName, khtmlValidAttrName, khtmlValidPrefix, khtmlValidQualifiedName, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setContentEditable, style, tagName
 
Methods inherited from class org.kde.koala.Node
addEventListener, appendChild, applyChanges, attributes, childNodes, cloneNode, dispatchEvent, elementId, firstChild, getRect, hasAttributes, hasChildNodes, index, insertBefore, isNull, isSupported, lastChild, localName, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, normalize, op_equals, op_not_equals, ownerDocument, parentNode, prefix, previousSibling, removeChild, removeEventListener, replaceChild, setNodeValue, setPrefix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLTableElement

protected HTMLTableElement(java.lang.Class dummy)

HTMLTableElement

public HTMLTableElement()

HTMLTableElement

public HTMLTableElement(HTMLTableElement other)

HTMLTableElement

public HTMLTableElement(Node other)
Method Detail

caption

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


setCaption

public void setCaption(HTMLTableCaptionElement arg1)
see caption


tHead

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


setTHead

public void setTHead(HTMLTableSectionElement arg1)
see tHead


tFoot

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


setTFoot

public void setTFoot(HTMLTableSectionElement arg1)
see tFoot


rows

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


tBodies

public HTMLCollection tBodies()
Returns a collection of the table bodies (including implicit ones).


align

public java.lang.String align()
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.


setAlign

public void setAlign(java.lang.String arg1)
see align


bgColor

public java.lang.String bgColor()
Cell background color. See the bgcolor attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.


setBgColor

public void setBgColor(java.lang.String arg1)
see bgColor


border

public java.lang.String border()
The width of the border around the table. See the border attribute definition in HTML 4.0.


setBorder

public void setBorder(java.lang.String arg1)
see border


cellPadding

public java.lang.String cellPadding()
Specifies the horizontal and vertical space between cell content and cell borders. See the cellpadding attribute definition in HTML 4.0.


setCellPadding

public void setCellPadding(java.lang.String arg1)
see cellPadding


cellSpacing

public java.lang.String cellSpacing()
Specifies the horizontal and vertical separation between cells. See the cellspacing attribute definition in HTML 4.0.


setCellSpacing

public void setCellSpacing(java.lang.String arg1)
see cellSpacing


frame

public java.lang.String frame()
Specifies which external table borders to render. See the frame attribute definition in HTML 4.0.


setFrame

public void setFrame(java.lang.String arg1)
see frame


rules

public java.lang.String rules()
Specifies which internal table borders to render. See the rules attribute definition in HTML 4.0.


setRules

public void setRules(java.lang.String arg1)
see rules


summary

public java.lang.String summary()
Supplementary description about the purpose or structure of a table. See the summary attribute definition in HTML 4.0.


setSummary

public void setSummary(java.lang.String arg1)
see summary


width

public java.lang.String width()
Specifies the desired table width. See the width attribute definition in HTML 4.0.


setWidth

public void setWidth(java.lang.String arg1)
see width


createTHead

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

Returns:
A new table header element ( THEAD ).

deleteTHead

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


createTFoot

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

Returns:
A footer element ( TFOOT ).

deleteTFoot

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


createCaption

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

Returns:
A CAPTION element.

deleteCaption

public void deleteCaption()
Delete the table caption, if one exists.


insertRow

public HTMLElement insertRow(long index)
Insert a new empty row in the table. The new row is inserted immediately before and in the same section as the current indexth row in the table. If index is -1 or 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 - The row number where to insert a new row. The index starts from 0 and is relative to the logical order (not document order) of all the rows contained inside the table.
Returns:
The newly created row.

deleteRow

public void deleteRow(long index)
Delete a table row.

Parameters:
index - The index of the row to be deleted. This index starts from 0 and is relative to the logical order (not document order) of all the rows contained inside the table. If the index is -1 the last row in the table is deleted.