public class HTMLTableElement extends HTMLElement
HTMLTableElement.HTMLElement.ProxyDomNodeorg.htmlunit.corejs.javascript.ScriptableObject.DescriptorInfo, org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator, org.htmlunit.corejs.javascript.ScriptableObject.LambdaGetterFunction, org.htmlunit.corejs.javascript.ScriptableObject.LambdaSetterFunctionATTRIBUTE_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_NODECONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTNOT_FOUND| Constructor and Description |
|---|
HTMLTableElement() |
| Modifier and Type | Method and Description |
|---|---|
Node |
appendChild(Object childObject)
Adds a DOM node to the node.
|
HtmlUnitScriptable |
createCaption()
If this table does not have a caption, this method creates an empty table caption,
adds it to the table and then returns it.
|
HtmlUnitScriptable |
createTBody()
If this table does not have a tbody element, this method creates an empty tbody
element, adds it to the table and then returns it.
|
HtmlUnitScriptable |
createTFoot()
If this table does not have a tfoot element, this method creates an empty tfoot
element, adds it to the table and then returns it.
|
HtmlUnitScriptable |
createTHead()
If this table does not have a thead element, this method creates an empty
thead element, adds it to the table and then returns it.
|
void |
deleteCaption()
Deletes this table's caption.
|
void |
deleteRow(int rowIndex)
Deletes the row at the specified index.
|
void |
deleteTFoot()
Deletes this table's tfoot element.
|
void |
deleteTHead()
Deletes this table's thead element.
|
String |
getAlign()
Returns the value of the
align property. |
String |
getBgColor()
Returns the value of the
bgColor property. |
String |
getBorder()
Gets the
border property. |
HtmlUnitScriptable |
getCaption()
Returns the table's caption element, or
null if none exists. |
String |
getCellPadding()
Returns the
cellPadding property. |
String |
getCellSpacing()
Returns the
cellSpacing property. |
HTMLCollection |
getRows()
Returns the rows in the element.
|
String |
getRules()
Gets the
rules property. |
String |
getSummary()
Gets the
summary property. |
HtmlUnitScriptable |
getTBodies()
Returns the tbody's in the table.
|
HtmlUnitScriptable |
getTFoot()
Returns the table's tfoot element, or
null if none exists. |
HtmlUnitScriptable |
getTHead()
Returns the table's thead element, or
null if none exists. |
String |
getWidth_js()
Returns the
width property. |
HtmlUnitScriptable |
insertRow(int index)
Inserts a new row at the given position.
|
HtmlUnitScriptable |
insertRow(Object index)
Inserts a new row at the specified index in the element's row collection.
|
void |
jsConstructor()
JavaScript constructor.
|
Node |
removeChild(Object childObject)
Removes a DOM node from this node.
|
void |
setAlign(String align)
Sets the value of the
align property. |
void |
setBgColor(String bgColor)
Sets the value of the
bgColor property. |
void |
setBorder(String border)
Sets the
border property. |
void |
setCaption(Object o)
Sets the caption.
|
void |
setCellPadding(String cellPadding)
Sets the
cellPadding property. |
void |
setCellSpacing(String cellSpacing)
Sets the
cellSpacing property. |
void |
setRules(String rules)
Sets the
rules property. |
void |
setSummary(String summary)
Sets the
summary property. |
void |
setTFoot(Object o)
Sets the tFoot.
|
void |
setTHead(Object o)
Sets the
tHead. |
void |
setWidth_js(String width)
Sets the
width property. |
blur, click, focus, getAccessKey, getAlign, getAttributeNode, getBoundingClientRect, getCh, getChOff, getContentEditable, getDataset, getDir, getDomNodeOrDie, getDomNodeOrNull, getEnterKeyHint, getForm, getHidden, getInnerText, getLang, getLocalName, getName, getNodeName, getOffsetHeight, getOffsetLeft, getOffsetParent_js, getOffsetTop, getOffsetWidth, getOnabort, getOnanimationcancel, getOnanimationend, getOnanimationiteration, getOnanimationstart, getOnauxclick, getOnblur, getOncancel, getOncanplay, getOncanplaythrough, getOnchange, getOnclick, getOnclose, getOncontextmenu, getOncopy, getOncuechange, getOncut, getOndblclick, getOndrag, getOndragend, getOndragenter, getOndragleave, getOndragover, getOndragstart, getOndrop, getOndurationchange, getOnemptied, getOnended, getOnerror, getOnfocus, getOngotpointercapture, getOninput, getOninvalid, getOnkeydown, getOnkeypress, getOnkeyup, getOnload, getOnloadeddata, getOnloadedmetadata, getOnloadstart, getOnlostpointercapture, getOnmousedown, getOnmouseenter, getOnmouseleave, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnmousewheel, getOnmozfullscreenchange, getOnmozfullscreenerror, getOnpaste, getOnpause, getOnplay, getOnplaying, getOnpointercancel, getOnpointerdown, getOnpointerenter, getOnpointerleave, getOnpointermove, getOnpointerout, getOnpointerover, getOnpointerup, getOnprogress, getOnratechange, getOnreset, getOnresize, getOnscroll, getOnscrollend, getOnseeked, getOnseeking, getOnselect, getOnselectionchange, getOnselectstart, getOnstalled, getOnsubmit, getOnsuspend, getOntimeupdate, getOntoggle, getOntransitioncancel, getOntransitionend, getOntransitionrun, getOntransitionstart, getOnvolumechange, getOnwaiting, getOnwheel, getOuterText, getParentHTMLElement, getPosX, getPosY, getPrefix, getStyle, getTabIndex, getTitle, getVAlign, getValue, getWidthOrHeight, isAncestorOfEventTarget, isAutofocus, isDisabled, isEndTagForbidden, isIsContentEditable, isLowerCaseInOuterHtml, isSpellcheck, setAccessKey, setAlign, setAttribute, setAutofocus, setCh, setChOff, setColorAttribute, setContentEditable, setDir, setDisabled, setDomNode, setEnterKeyHint, setHidden, setInnerText, setLang, setName, setOnabort, setOnanimationcancel, setOnanimationend, setOnanimationiteration, setOnanimationstart, setOnauxclick, setOnblur, setOncancel, setOncanplay, setOncanplaythrough, setOnchange, setOnclick, setOnclose, setOncontextmenu, setOncopy, setOncuechange, setOncut, setOndblclick, setOndrag, setOndragend, setOndragenter, setOndragleave, setOndragover, setOndragstart, setOndrop, setOndurationchange, setOnemptied, setOnended, setOnerror, setOnfocus, setOngotpointercapture, setOninput, setOninvalid, setOnkeydown, setOnkeypress, setOnkeyup, setOnload, setOnloadeddata, setOnloadedmetadata, setOnloadstart, setOnlostpointercapture, setOnmousedown, setOnmouseenter, setOnmouseleave, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnmousewheel, setOnmozfullscreenchange, setOnmozfullscreenerror, setOnpaste, setOnpause, setOnplay, setOnplaying, setOnpointercancel, setOnpointerdown, setOnpointerenter, setOnpointerleave, setOnpointermove, setOnpointerout, setOnpointerover, setOnpointerup, setOnprogress, setOnratechange, setOnreset, setOnresize, setOnscroll, setOnscrollend, setOnseeked, setOnseeking, setOnselect, setOnselectionchange, setOnselectstart, setOnstalled, setOnsubmit, setOnsuspend, setOntimeupdate, setOntoggle, setOntransitioncancel, setOntransitionend, setOntransitionrun, setOntransitionstart, setOnvolumechange, setOnwaiting, setOnwheel, setOuterText, setSpellcheck, setStyle, setTabIndex, setTextContent, setTitle, setVAlign, setValue, setWidthOrHeight, toStringafter, append, before, closest, createAttributesObject, createEventHandler, getAttribute, getAttributeNodeNS, getAttributeNS, getAttributes, getChildElementCount, getChildren, getClassList, getClassName_js, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getHTML, getId, getInnerHTML, getInnerHTML, getLastElementChild, getNamespaceURI, getNextElementSibling, getOnbeforecopy, getOnbeforecut, getOnbeforepaste, getOnsearch, getOnwebkitfullscreenchange, getOnwebkitfullscreenerror, getOuterHTML, getParentElement, getPreviousElementSibling, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getTagName, hasAttribute, hasAttributeNS, hasAttributes, insertAdjacentElement, insertAdjacentHTML, insertAdjacentText, isDisplayNone, matches, mozMatchesSelector, prepend, printChildren, printNode, querySelector, querySelectorAll, releaseCapture, remove, removeAttribute, removeAttributeNode, removeAttributeNS, replaceChildren, replaceWith, scroll, scrollBy, scrollIntoView, scrollIntoViewIfNeeded, scrollTo, setAttributeNode, setAttributeNS, setCapture, setClassName_js, setId, setInnerHTML, setOnbeforecopy, setOnbeforecut, setOnbeforepaste, setOnsearch, setOnwebkitfullscreenchange, setOnwebkitfullscreenerror, setOuterHTML, setScrollLeft, setScrollTop, toggleAttribute, webkitMatchesSelectorafter, append, before, cloneNode, compareDocumentPosition, contains, getBaseURI, getChildNodes, getFirstChild, getJavaScriptNode, getLastChild, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParent, getParentNode, getPreviousSibling, getRootNode, getTextContent, hasChildNodes, insertBefore, insertBeforeImpl, isEqualNode, isSameNode, lookupPrefix, normalize, prepend, replaceChild, replaceChildren, replaceWith, setNodeValueaddEventListener, clearEventListenersContainer, dispatchEvent, executeEventLocally, fireEvent, getEventHandler, getEventListenersContainer, hasEventHandlers, isEventHandlerOnWindow, removeEventListener, setEventHandlerclone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getPrototype, getScriptableFor, getWindow, getWindow, getWindowFromTopCallScope, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setParentScope, setupPromise, setupRejectedPromiseapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkNotSealed, checkPropertyChangeForSlot, checkPropertyChangeForSlot, checkPropertyDefinition, checkSlotRemoval, defineBuiltinProperty, defineBuiltinProperty, defineBuiltInProperty, defineBuiltInProperty, defineBuiltInProperty, defineBuiltInProperty, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureScriptableObjectButNotSymbol, ensureSymbolScriptable, ensureType, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSuperProperty, getSuperProperty, getSuperProperty, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putOwnProperty, putOwnProperty, putOwnProperty, putProperty, putProperty, putProperty, putSuperProperty, putSuperProperty, putSuperProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, sizecreateSlotMappublic void jsConstructor()
jsConstructor in class HTMLElementpublic HtmlUnitScriptable getCaption()
null if none exists. If more than one
caption is declared in the table, this method returns the first one.public void setCaption(Object o)
o - the captionpublic HtmlUnitScriptable getTFoot()
null if none exists. If more than one
tfoot is declared in the table, this method returns the first one.public void setTFoot(Object o)
o - the tFootpublic HtmlUnitScriptable getTHead()
null if none exists. If more than one
thead is declared in the table, this method returns the first one.public void setTHead(Object o)
tHead.o - the tHeadpublic HtmlUnitScriptable getTBodies()
public HtmlUnitScriptable createCaption()
public HtmlUnitScriptable createTFoot()
public HtmlUnitScriptable createTBody()
public HtmlUnitScriptable createTHead()
public void deleteCaption()
public void deleteTFoot()
public void deleteTHead()
public HtmlUnitScriptable insertRow(Object index)
index - specifies where to insert the row in the row's collection.
The default value is -1, which appends the new row to the end of the rows collectionpublic HtmlUnitScriptable insertRow(int index)
index - the index where the row should be inserted (0 <= index <= nbRows)public String getWidth_js()
width property.width propertypublic void setWidth_js(String width)
width property.width - the width propertypublic String getCellSpacing()
cellSpacing property.cellSpacing propertypublic void setCellSpacing(String cellSpacing)
cellSpacing property.cellSpacing - the cellSpacing propertypublic String getCellPadding()
cellPadding property.cellPadding propertypublic void setCellPadding(String cellPadding)
cellPadding property.cellPadding - the cellPadding propertypublic String getBorder()
border property.border propertypublic void setBorder(String border)
border property.border - the border propertypublic String getBgColor()
bgColor property.bgColor propertypublic void setBgColor(String bgColor)
bgColor property.bgColor - the value of the bgColor propertypublic Node appendChild(Object childObject)
appendChild in class NodechildObject - the node to add to this nodepublic Node removeChild(Object childObject)
removeChild in class NodechildObject - the node to remove from this nodepublic String getSummary()
summary property.public void setSummary(String summary)
summary property.summary - the new propertypublic String getRules()
rules property.public void setRules(String rules)
rules property.rules - the new propertypublic String getAlign()
align property.align propertypublic void setAlign(String align)
align property.align - the value of the align propertypublic void deleteRow(int rowIndex)
rowIndex - the zero-based index of the row to deletepublic HTMLCollection getRows()
Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.