Package org.loboevolution.html.dom
Interface HTMLTableElement
- All Superinterfaces:
Element,EventTarget,HTMLElement,InnerHTML,ModelNode,Node,NonDocumentTypeChildNode,ParentNode
- All Known Implementing Classes:
HTMLTableElementImpl
Provides special properties and methods (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an HTML document.
-
Field Summary
Fields inherited from interface org.loboevolution.html.node.Node
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, NONE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE -
Method Summary
Modifier and TypeMethodDescriptionCreates an empty caption element in the table.Creates an empty tBody element in the table.Creates an empty tFoot element in the table.Returns the tHead element object if successful, or null otherwise.voidDeletes the caption element and its contents from the table.voiddeleteRow(int index) Removes the specified row (tr) from the element and from the rows collection.voidDeletes the tBody element and its contents from the table.voidDeletes the tFoot element and its contents from the table.voidDeletes the tHead element and its contents from the table.getAlign()Deprecated.Deprecated.Deprecated.Retrieves the caption object of a table.Deprecated.Deprecated.getFrame()Deprecated.getRows()Sets or retrieves the number of horizontal rows contained in the object.getRules()Deprecated.Deprecated.Retrieves a collection of all tBody objects in the table.getTfoot()Retrieves the tFoot object of the table.getThead()Retrieves the tHead object of the table.getWidth()Deprecated.insertRow.insertRow(int index) Creates a new row (tr) in the table, and adds the row to the rows collection.voidsetAlign.voidsetBgColor(String bgColor) setBgColor.voidsetBorder.voidsetCaption(HTMLTableCaptionElement caption) setCaption.voidsetCellPadding(String cellPadding) setCellPadding.voidsetCellSpacing(String cellSpacing) setCellSpacing.voidsetFrame.voidsetRules.voidsetSummary(String summary) setSummary.voidsettFoot(HTMLTableSectionElement tFoot) settFoot.voidsettHead(HTMLTableSectionElement tHead) settHead.voidsetWidth.Methods inherited from interface org.loboevolution.html.node.Element
closest, getAttribute, getAttributeNames, getAttributeNode, getAttributeNodeNS, getAttributeNS, getBoundingClientRect, getClassList, getClassName, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getId, getInnerHTML, getLocalName, getNamespaceURI, getOuterHTML, getPrefix, getSchemaTypeInfo, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getSlot, getTagName, hasAttribute, hasAttributeNS, hasPointerCapture, insertAdjacentElement, insertAdjacentHTML, matches, releasePointerCapture, removeAttribute, removeAttributeNode, removeAttributeNS, requestPointerLock, scroll, scrollBy, scrollIntoView, scrollIntoView, scrollTo, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setClassName, setId, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOuterHTML, setPointerCapture, setScrollLeft, setScrollTop, setSlot, toggleAttribute, toggleAttributeMethods inherited from interface org.loboevolution.events.EventTarget
addEventListener, addEventListener, dispatchEvent, dispatchEvent, removeEventListener, removeEventListenerMethods inherited from interface org.loboevolution.html.dom.HTMLElement
click, getAccessKey, getAccessKeyLabel, getAutocapitalize, getContentEditable, getCurrentStyle, getDir, getInnerText, getLang, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getStyle, getTitle, isDraggable, isHidden, isSpellcheck, isTranslate, setAccessKey, setAutocapitalize, setContentEditable, setDir, setDraggable, setHidden, setInnerText, setLang, setSpellcheck, setTitle, setTranslateMethods inherited from interface org.loboevolution.html.node.InnerHTML
setInnerHTMLMethods inherited from interface org.loboevolution.html.node.ModelNode
getDocumentItem, getFullURL, getParentModelNode, getRenderState, isEqualOrDescendentOf, setDocumentItem, warnMethods inherited from interface org.loboevolution.html.node.Node
appendChild, appendChildrenToCollectionImpl, cloneNode, cloneNode, compareDocumentPosition, contains, extractDescendentsArrayImpl, findUINode, forgetRenderState, getAttributes, getBaseURI, getChildNodes, getDocumentNode, getFeature, getFirstChild, getLastChild, getNextSibling, getNextTo, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, getPreviousTo, getRootNode, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isIsConnected, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, prepend, prependChild, removeChild, replaceChild, setNamespaceURI, setNodeValue, setOwnerDocument, setOwnerDocument, setParentImpl, setPrefix, setTextContent, setUserData, visitMethods inherited from interface org.loboevolution.html.node.NonDocumentTypeChildNode
getNextElementSibling, getPreviousElementSiblingMethods inherited from interface org.loboevolution.html.node.ParentNode
getChildElementCount, getChildren, getFirstElementChild, getLastElementChild, querySelector, querySelectorAll
-
Method Details
-
getAlign
Deprecated.Sets or retrieves a value that indicates the table alignment.- Returns:
- a
Stringobject.
-
setAlign
setAlign.
- Parameters:
align- aStringobject.
-
getBgColor
Deprecated.getBgColor.
- Returns:
- a
Stringobject.
-
setBgColor
setBgColor.
- Parameters:
bgColor- aStringobject.
-
getBorder
Deprecated.Sets or retrieves the width of the border to draw around the object.- Returns:
- a
Stringobject.
-
setBorder
setBorder.
- Parameters:
border- aStringobject.
-
getCaption
HTMLTableCaptionElement getCaption()Retrieves the caption object of a table.- Returns:
- a
HTMLTableCaptionElementobject.
-
setCaption
setCaption.
- Parameters:
caption- aHTMLTableCaptionElementobject.
-
getCellPadding
Deprecated.Sets or retrieves the amount of space between the border of the cell and the content of the cell.- Returns:
- a
Stringobject.
-
setCellPadding
setCellPadding.
- Parameters:
cellPadding- aStringobject.
-
getCellSpacing
Deprecated.Sets or retrieves the amount of space between cells in a table.- Returns:
- a
Stringobject.
-
setCellSpacing
setCellSpacing.
- Parameters:
cellSpacing- aStringobject.
-
getFrame
Deprecated.Sets or retrieves the way the border frame around the table is displayed.- Returns:
- a
Stringobject.
-
setFrame
setFrame.
- Parameters:
frame- aStringobject.
-
getRows
HTMLCollection getRows()Sets or retrieves the number of horizontal rows contained in the object.- Returns:
- a
HTMLCollectionobject.
-
getRules
Deprecated.Sets or retrieves which dividing lines (inner borders) are displayed.- Returns:
- a
Stringobject.
-
setRules
setRules.
- Parameters:
rules- aStringobject.
-
getSummary
Deprecated.Sets or retrieves a description and/or structure of the object.- Returns:
- a
Stringobject.
-
setSummary
setSummary.
- Parameters:
summary- aStringobject.
-
getTbodies
HTMLCollection getTbodies()Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order.- Returns:
- a
HTMLCollectionobject.
-
getTfoot
HTMLTableSectionElement getTfoot()Retrieves the tFoot object of the table.- Returns:
- a
HTMLTableSectionElementobject.
-
settFoot
settFoot.
- Parameters:
tFoot- aHTMLTableSectionElementobject.
-
getThead
HTMLTableSectionElement getThead()Retrieves the tHead object of the table.- Returns:
- a
HTMLTableSectionElementobject.
-
settHead
settHead.
- Parameters:
tHead- aHTMLTableSectionElementobject.
-
getWidth
Deprecated.Sets or retrieves the width of the object.- Returns:
- a
Stringobject.
-
setWidth
setWidth.
- Parameters:
width- aStringobject.
-
createCaption
HTMLElement createCaption()Creates an empty caption element in the table.- Returns:
- a
HTMLElementobject.
-
createTBody
HTMLElement createTBody()Creates an empty tBody element in the table.- Returns:
- a
HTMLElementobject.
-
createTFoot
HTMLElement createTFoot()Creates an empty tFoot element in the table.- Returns:
- a
HTMLElementobject.
-
createTHead
HTMLElement createTHead()Returns the tHead element object if successful, or null otherwise.- Returns:
- a
HTMLElementobject.
-
deleteCaption
void deleteCaption()Deletes the caption element and its contents from the table. -
deleteRow
void deleteRow(int index) Removes the specified row (tr) from the element and from the rows collection.- Parameters:
index- Number that specifies the zero-based position in the rows collection of the row to remove.
-
deleteTFoot
void deleteTFoot()Deletes the tFoot element and its contents from the table. -
deleteTHead
void deleteTHead()Deletes the tHead element and its contents from the table. -
deleteTBody
void deleteTBody()Deletes the tBody element and its contents from the table. -
insertRow
Creates a new row (tr) in the table, and adds the row to the rows collection.- Parameters:
index- Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.- Returns:
- a
HTMLTableRowElementobject. - Throws:
Exception- if any.
-
insertRow
HTMLTableRowElement insertRow()insertRow.
- Returns:
- a
HTMLTableRowElementobject.
-