|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HTMLTableElement
The create* and delete* methods on the table allow authors to constructand
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 thecreateTHead() or
createTFoot() method is called, the method returnsthe existing THead or
TFoot element. See the TABLE element definition in HTML 4.0.
Field Summary |
---|
Method Summary | |
---|---|
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(int 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 |
getAlign()
Specifies the table's position with respect to the rest of the document. |
java.lang.String |
getBgColor()
Cell background color. |
java.lang.String |
getBorder()
The width of the border around the table. |
HTMLTableCaptionElement |
getCaption()
Returns the table's CAPTION , or void if none exists. |
java.lang.String |
getCellPadding()
Specifies the horizontal and vertical space between cell content andcell borders. |
java.lang.String |
getCellSpacing()
Specifies the horizontal and vertical separation between cells. |
java.lang.String |
getFrame()
Specifies which external table borders to render. |
HTMLCollection |
getRows()
Returns a collection of all the rows in the table, including all in THEAD , TFOOT , all TBODY elements. |
java.lang.String |
getRules()
Specifies which internal table borders to render. |
java.lang.String |
getSummary()
Supplementary description about the purpose or structureof a table. |
HTMLCollection |
getTBodies()
Returns a collection of the defined table bodies. |
HTMLTableSectionElement |
getTFoot()
Returns the table's TFOOT , or null if none
exists. |
HTMLTableSectionElement |
getTHead()
Returns the table's THEAD , or null if none
exists. |
java.lang.String |
getWidth()
Specifies the desired table width. |
HTMLElement |
insertRow(int index)
Insert a new empty row in the table.Note. |
void |
setAlign(java.lang.String align)
|
void |
setBgColor(java.lang.String bgColor)
|
void |
setBorder(java.lang.String border)
|
void |
setCaption(HTMLTableCaptionElement caption)
|
void |
setCellPadding(java.lang.String cellPadding)
|
void |
setCellSpacing(java.lang.String cellSpacing)
|
void |
setFrame(java.lang.String frame)
|
void |
setRules(java.lang.String rules)
|
void |
setSummary(java.lang.String summary)
|
void |
setTFoot(HTMLTableSectionElement tFoot)
|
void |
setTHead(HTMLTableSectionElement tHead)
|
void |
setWidth(java.lang.String width)
|
Methods inherited from interface org.w3c.dom.html.HTMLElement |
---|
getClassName, getDir, getId, getLang, getTitle, setClassName, setDir, setId, setLang, setTitle |
Methods inherited from interface org.w3c.dom.Element |
---|
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS |
Methods inherited from interface org.w3c.dom.Node |
---|
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
Method Detail |
---|
HTMLTableCaptionElement getCaption()
CAPTION
, or void if none exists.
void setCaption(HTMLTableCaptionElement caption)
HTMLTableSectionElement getTHead()
THEAD
, or null
if none
exists.
void setTHead(HTMLTableSectionElement tHead)
HTMLTableSectionElement getTFoot()
TFOOT
, or null
if none
exists.
void setTFoot(HTMLTableSectionElement tFoot)
HTMLCollection getRows()
THEAD
, TFOOT
, all TBODY
elements.
HTMLCollection getTBodies()
java.lang.String getAlign()
void setAlign(java.lang.String align)
java.lang.String getBgColor()
void setBgColor(java.lang.String bgColor)
java.lang.String getBorder()
void setBorder(java.lang.String border)
java.lang.String getCellPadding()
void setCellPadding(java.lang.String cellPadding)
java.lang.String getCellSpacing()
void setCellSpacing(java.lang.String cellSpacing)
java.lang.String getFrame()
void setFrame(java.lang.String frame)
java.lang.String getRules()
void setRules(java.lang.String rules)
java.lang.String getSummary()
void setSummary(java.lang.String summary)
java.lang.String getWidth()
void setWidth(java.lang.String width)
HTMLElement createTHead()
THEAD
).void deleteTHead()
HTMLElement createTFoot()
TFOOT
).void deleteTFoot()
HTMLElement createCaption()
CAPTION
element.void deleteCaption()
HTMLElement insertRow(int index)
index
- The row number where to insert a new row.
void deleteRow(int index)
index
- The index of the row to be deleted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |