|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kde.koala.Node
org.kde.koala.Element
org.kde.koala.HTMLElement
org.kde.koala.HTMLTableElement
public class HTMLTableElement
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.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 |
---|
protected HTMLTableElement(java.lang.Class dummy)
public HTMLTableElement()
public HTMLTableElement(HTMLTableElement other)
public HTMLTableElement(Node other)
Method Detail |
---|
public HTMLTableCaptionElement caption()
CAPTION
, or void if none
exists.
public void setCaption(HTMLTableCaptionElement arg1)
public HTMLTableSectionElement tHead()
THEAD
, or null
if none exists.
public void setTHead(HTMLTableSectionElement arg1)
public HTMLTableSectionElement tFoot()
TFOOT
, or null
if none exists.
public void setTFoot(HTMLTableSectionElement arg1)
public HTMLCollection rows()
THEAD
, TFOOT
, all
TBODY
elements.
public HTMLCollection tBodies()
public java.lang.String align()
public void setAlign(java.lang.String arg1)
public java.lang.String bgColor()
public void setBgColor(java.lang.String arg1)
public java.lang.String border()
public void setBorder(java.lang.String arg1)
public java.lang.String cellPadding()
public void setCellPadding(java.lang.String arg1)
public java.lang.String cellSpacing()
public void setCellSpacing(java.lang.String arg1)
public java.lang.String frame()
public void setFrame(java.lang.String arg1)
public java.lang.String rules()
public void setRules(java.lang.String arg1)
public java.lang.String summary()
public void setSummary(java.lang.String arg1)
public java.lang.String width()
public void setWidth(java.lang.String arg1)
public HTMLElement createTHead()
THEAD
).public void deleteTHead()
public HTMLElement createTFoot()
TFOOT
).public void deleteTFoot()
public HTMLElement createCaption()
CAPTION
element.public void deleteCaption()
public HTMLElement insertRow(long index)
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.
public void deleteRow(long index)
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.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |