public interface TableElement extends Element
table
objects expose the HTMLTableElement
interface, which provides special properties and methods (beyond the regular element object interface they also have available to them by inheritance) for manipulating the layout and presentation of tables in HTML.ALLOW_KEYBOARD_INPUT
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Modifier and Type | Method and Description |
---|---|
Element |
createCaption()
createCaption creates a new caption for the table.
|
Element |
createTBody() |
Element |
createTFoot()
createTFoot creates a table footer.
|
Element |
createTHead()
createTHead creates a table header.
|
void |
deleteCaption()
deleteCaption removes the table caption.
|
void |
deleteRow(int index)
deleteRow removes a row.
|
void |
deleteTFoot()
deleteTFoot removes a table footer.
|
void |
deleteTHead()
deleteTHead removes the table header.
|
String |
getAlign()
align gets/sets the alignment of the table.
|
String |
getBgColor()
bgColor gets/sets the background color of the table.
|
String |
getBorder()
border gets/sets the table border.
|
TableCaptionElement |
getCaption()
caption returns the table caption.
|
String |
getCellPadding()
cellPadding gets/sets the cell padding.
|
String |
getCellSpacing()
cellSpacing gets/sets the spacing around the table.
|
String |
getFrame()
frame specifies which sides of the table have borders.
|
HTMLCollection |
getRows()
rows returns the rows in the table.
|
String |
getRules()
rules specifies which interior borders are visible.
|
String |
getSummary()
summary gets/sets the table summary.
|
HTMLCollection |
getTBodies()
tBodies returns the table bodies.
|
TableSectionElement |
getTFoot()
tFoot returns the table footer.
|
TableSectionElement |
getTHead()
tHead returns the table head.
|
String |
getWidth()
width gets/sets the width of the table.
|
Element |
insertRow(int index)
insertRow inserts a new row.
|
void |
setAlign(String arg) |
void |
setBgColor(String arg) |
void |
setBorder(String arg) |
void |
setCaption(TableCaptionElement arg) |
void |
setCellPadding(String arg) |
void |
setCellSpacing(String arg) |
void |
setFrame(String arg) |
void |
setRules(String arg) |
void |
setSummary(String arg) |
void |
setTFoot(TableSectionElement arg) |
void |
setTHead(TableSectionElement arg) |
void |
setWidth(String arg) |
blur, click, focus, getAccessKey, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getBoundingClientRect, getChildElementCount, getChildren, getClassList, getClassName, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getContentEditable, getDataset, getDir, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getId, getInnerHTML, getInnerText, getLang, getLastElementChild, getNextElementSibling, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getOnabort, getOnbeforecopy, getOnbeforecut, getOnbeforepaste, getOnblur, getOnchange, getOnclick, getOncontextmenu, getOncopy, getOncut, getOndblclick, getOndrag, getOndragend, getOndragenter, getOndragleave, getOndragover, getOndragstart, getOndrop, getOnerror, getOnfocus, getOninput, getOninvalid, getOnkeydown, getOnkeypress, getOnkeyup, getOnload, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnmousewheel, getOnpaste, getOnreset, getOnscroll, getOnsearch, getOnselect, getOnselectstart, getOnsubmit, getOntouchcancel, getOntouchend, getOntouchmove, getOntouchstart, getOnwebkitfullscreenchange, getOnwebkitfullscreenerror, getOuterHTML, getOuterText, getPreviousElementSibling, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getStyle, getTabIndex, getTagName, getTitle, getWebkitdropzone, getWebkitRegionOverflow, hasAttribute, hasAttributeNS, insertAdjacentElement, insertAdjacentHTML, insertAdjacentText, isContentEditable, isDraggable, isHidden, isSpellcheck, isTranslate, querySelector, querySelectorAll, removeAttribute, removeAttributeNode, removeAttributeNS, scrollByLines, scrollByPages, scrollIntoView, scrollIntoView, scrollIntoViewIfNeeded, scrollIntoViewIfNeeded, setAccessKey, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setClassName, setContentEditable, setDir, setDraggable, setHidden, setId, setInnerHTML, setInnerText, setLang, setOnabort, setOnbeforecopy, setOnbeforecut, setOnbeforepaste, setOnblur, setOnchange, setOnclick, setOncontextmenu, setOncopy, setOncut, setOndblclick, setOndrag, setOndragend, setOndragenter, setOndragleave, setOndragover, setOndragstart, setOndrop, setOnerror, setOnfocus, setOninput, setOninvalid, setOnkeydown, setOnkeypress, setOnkeyup, setOnload, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnmousewheel, setOnpaste, setOnreset, setOnscroll, setOnsearch, setOnselect, setOnselectstart, setOnsubmit, setOntouchcancel, setOntouchend, setOntouchmove, setOntouchstart, setOnwebkitfullscreenchange, setOnwebkitfullscreenerror, setOuterHTML, setOuterText, setScrollLeft, setScrollTop, setSpellcheck, setTabIndex, setTitle, setTranslate, setWebkitdropzone, webkitMatchesSelector, webkitRequestFullscreen, webkitRequestFullScreen
addEventListener, addEventListener, appendChild, cloneNode, compareDocumentPosition, contains, dispatchEvent, getAttributes, getBaseURI, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, getTextContent, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, removeEventListener, removeEventListener, replaceChild, setNodeValue, setPrefix, setTextContent
String getAlign()
void setAlign(String arg)
String getBgColor()
void setBgColor(String arg)
String getBorder()
void setBorder(String arg)
TableCaptionElement getCaption()
void setCaption(TableCaptionElement arg)
String getCellPadding()
void setCellPadding(String arg)
String getCellSpacing()
void setCellSpacing(String arg)
String getFrame()
void setFrame(String arg)
HTMLCollection getRows()
String getRules()
void setRules(String arg)
String getSummary()
void setSummary(String arg)
HTMLCollection getTBodies()
TableSectionElement getTFoot()
void setTFoot(TableSectionElement arg)
TableSectionElement getTHead()
void setTHead(TableSectionElement arg)
String getWidth()
void setWidth(String arg)
Element createCaption()
Element createTBody()
Element createTFoot()
Element createTHead()
void deleteCaption()
void deleteRow(int index)
void deleteTFoot()
void deleteTHead()
Element insertRow(int index)
Copyright © 2018. All rights reserved.