java.lang.Object
org.htmlunit.corejs.javascript.SlotMapOwner<org.htmlunit.corejs.javascript.Scriptable>
org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.javascript.HtmlUnitScriptable
org.htmlunit.javascript.host.event.EventTarget
org.htmlunit.javascript.host.dom.Node
org.htmlunit.javascript.host.Element
org.htmlunit.javascript.host.html.HTMLElement
org.htmlunit.javascript.host.html.HTMLTableCellElement
- All Implemented Interfaces:
Serializable,Cloneable,org.htmlunit.corejs.javascript.ConstProperties<org.htmlunit.corejs.javascript.Scriptable>,org.htmlunit.corejs.javascript.debug.DebuggableObject,org.htmlunit.corejs.javascript.PropHolder<org.htmlunit.corejs.javascript.Scriptable>,org.htmlunit.corejs.javascript.Scriptable,org.htmlunit.corejs.javascript.SymbolScriptable
The JavaScript object representing a TD or TH.
- Author:
- Mark van Leeuwen, Ahmed Ashour, Sudhan Moghe, Daniel Gredler, Ronald Brill, Frank Danek, Lai Quang Duong
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.htmlunit.javascript.host.html.HTMLElement
HTMLElement.ProxyDomNodeNested classes/interfaces inherited from class org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.corejs.javascript.ScriptableObject.DescriptorInfo, org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator, org.htmlunit.corejs.javascript.ScriptableObject.LambdaGetterFunction, org.htmlunit.corejs.javascript.ScriptableObject.LambdaSetterFunction -
Field Summary
Fields inherited from class org.htmlunit.javascript.host.dom.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, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODEFields inherited from class org.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTFields inherited from class org.htmlunit.corejs.javascript.SlotMapOwner
isSealedFields inherited from interface org.htmlunit.corejs.javascript.Scriptable
NOT_FOUND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAbbr()Returns the value of theabbrattribute.getAlign()Returns the value of thealignproperty.getAxis()Returns the value of theaxisattribute.Returns the value of thebgColorattribute.intReturns the index of this cell within the parent row.getCh()Returns the value of thechproperty.getChOff()Returns the value of thechOffproperty.intReturns the value of thecolSpanattribute.Returns theheadersattribute.Returns the value of thewidthproperty.intReturns this element'soffsetHeight, which is the element height plus the element's padding plus the element's border.intReturns this element'soffsetWidth, which is the element width plus the element's padding plus the element's border.intReturns the value of therowSpanattribute.getScope()Returns thescopeattribute.Returns the value of thevAlignproperty.Returns the value of thewidthproperty.booleanisNoWrap()Returns the value of thenoWrapattribute.voidJavaScript constructor.voidSets the value of theabbrattribute.voidSets the value of thealignproperty.voidSets the value of theaxisattribute.voidsetBgColor(String bgColor) Sets the value of thebgColorattribute.voidSets the value of thechproperty.voidSets the value of thechOffproperty.voidsetColSpan(String colSpan) Sets the value of thecolSpanattribute.voidsetHeaders(String headers) Sets theheadersattribute.voidsetHeight_js(String height) Sets the value of theheightproperty.voidsetNoWrap(boolean noWrap) Sets the value of thenoWrapattribute.voidsetOuterHTML(Object value) Overwritten to throw an exception.voidsetRowSpan(String rowSpan) Sets the value of therowSpanattribute.voidSets thescopeattribute.voidSets the value of thevAlignproperty.voidsetWidth_js(String width) Sets the value of thewidthproperty.Methods inherited from class org.htmlunit.javascript.host.html.HTMLElement
blur, click, focus, getAccessKey, getAlign, getAttributeNode, getBoundingClientRect, getContentEditable, getDataset, getDir, getDomNodeOrDie, getDomNodeOrNull, getEnterKeyHint, getForm, getHidden, getInnerText, getLang, getLocalName, getName, getNodeName, getOffsetLeft, getOffsetParent_js, getOffsetTop, 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, 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, toStringMethods inherited from class org.htmlunit.javascript.host.Element
after, append, before, closest, createAttributesObject, createEventHandler, getAttribute, getAttributeNames, 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, moveBefore, 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, setScrollLeft, setScrollTop, toggleAttribute, webkitMatchesSelectorMethods inherited from class org.htmlunit.javascript.host.dom.Node
after, append, appendChild, 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, removeChild, replaceChild, replaceChildren, replaceWith, setNodeValueMethods inherited from class org.htmlunit.javascript.host.event.EventTarget
addEventListener, clearEventListenersContainer, dispatchEvent, executeEventLocally, fireEvent, getEventHandler, getEventListenersContainer, hasEventHandlers, isEventHandlerOnWindow, removeEventListener, setEventHandlerMethods inherited from class org.htmlunit.javascript.HtmlUnitScriptable
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getPrototype, getScriptableFor, getWindow, getWindow, getWindowOrWorkerGlobalScope, getWithPreemption, has, hasInstance, makeScriptableFor, put, setClassName, setDomNode, setupPromise, setupRejectedPromiseMethods inherited from class org.htmlunit.corejs.javascript.ScriptableObject
applyDescriptorToAttributeBitset, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkNotSealed, checkPropertyChangeForSlot, checkPropertyChangeForSlot, checkPropertyDefinition, checkPropertyDefinition, checkSlotRemoval, defineBuiltinProperty, defineBuiltinProperty, defineBuiltInProperty, defineBuiltInProperty, defineBuiltInProperty, defineBuiltInProperty, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureScriptableObjectButNotSymbol, ensureSymbolScriptable, ensureType, get, get, getAllIds, getAncestor, getArrayPrototype, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSuperProperty, getSuperProperty, getSuperProperty, getThis, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, hasProperty, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGenericDescriptor, isGetterOrSetter, isGetterOrSetter, isTrue, preventExtensions, put, put, putConst, putConstProperty, putConstProperty, putOwnProperty, putOwnProperty, putOwnProperty, putProperty, putProperty, putProperty, putProperty, putSuperProperty, putSuperProperty, putSuperProperty, querySlot, redefineProperty, redefineProperty, sameValue, sealObject, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, sizeMethods inherited from class org.htmlunit.corejs.javascript.SlotMapOwner
associateValue, checkNotSealed, copyAssociatedValue, createSlotMap, defineProperty, defineProperty, get, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getIds, has, has, isSealed, readMaps, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, writeMapsMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.htmlunit.corejs.javascript.Scriptable
get, getIds, has, hasMethods inherited from interface org.htmlunit.corejs.javascript.SymbolScriptable
get, has
-
Constructor Details
-
HTMLTableCellElement
public HTMLTableCellElement()
-
-
Method Details
-
jsConstructor
public void jsConstructor()JavaScript constructor.- Overrides:
jsConstructorin classHTMLElement
-
getOffsetHeight
public int getOffsetHeight()Returns this element'soffsetHeight, which is the element height plus the element's padding plus the element's border. This method returns a dummy value compatible with mouse event coordinates during mouse events.- Overrides:
getOffsetHeightin classHTMLElement- Returns:
- this element's
offsetHeight - See Also:
-
getOffsetWidth
public int getOffsetWidth()Returns this element'soffsetWidth, which is the element width plus the element's padding plus the element's border. This method returns a dummy value compatible with mouse event coordinates during mouse events.- Overrides:
getOffsetWidthin classHTMLElement- Returns:
- this element's
offsetWidth - See Also:
-
getCellIndex
public int getCellIndex()Returns the index of this cell within the parent row.- Returns:
- the index of this cell within the parent row
- See Also:
-
getAbbr
Returns the value of theabbrattribute.- Returns:
- the value of the
abbrattribute
-
setAbbr
Sets the value of theabbrattribute.- Parameters:
abbr- the value of theabbrattribute
-
getAxis
Returns the value of theaxisattribute.- Returns:
- the value of the
axisattribute
-
setAxis
Sets the value of theaxisattribute.- Parameters:
axis- the value of theaxisattribute
-
getBgColor
Returns the value of thebgColorattribute.- Returns:
- the value of the
bgColorattribute - See Also:
-
setBgColor
Sets the value of thebgColorattribute.- Parameters:
bgColor- the value of thebgColorattribute- See Also:
-
getColSpan
public int getColSpan()Returns the value of thecolSpanattribute.- Returns:
- the value of the
colSpanattribute
-
setColSpan
Sets the value of thecolSpanattribute.- Parameters:
colSpan- the value of thecolSpanattribute
-
getRowSpan
public int getRowSpan()Returns the value of therowSpanattribute.- Returns:
- the value of the
rowSpanattribute
-
setRowSpan
Sets the value of therowSpanattribute.- Parameters:
rowSpan- the value of therowSpanattribute
-
isNoWrap
public boolean isNoWrap()Returns the value of thenoWrapattribute.- Returns:
- the value of the
noWrapattribute - See Also:
-
setNoWrap
public void setNoWrap(boolean noWrap) Sets the value of thenoWrapattribute.- Parameters:
noWrap- the value of thenoWrapattribute- See Also:
-
getWidth_js
Returns the value of thewidthproperty.- Returns:
- the value of the
widthproperty
-
setWidth_js
Sets the value of thewidthproperty.- Parameters:
width- the value of thewidthproperty
-
getHeight_js
Returns the value of thewidthproperty.- Returns:
- the value of the
widthproperty
-
setHeight_js
Sets the value of theheightproperty.- Parameters:
height- the value of theheightproperty
-
setOuterHTML
Overwritten to throw an exception.- Overrides:
setOuterHTMLin classElement- Parameters:
value- the new value for replacing this node
-
getHeaders
Returns theheadersattribute.- Returns:
- the
headersattribute
-
setHeaders
Sets theheadersattribute.- Parameters:
headers- the new attribute
-
getScope
Returns thescopeattribute.- Returns:
- the
scopeattribute
-
setScope
Sets thescopeattribute.- Parameters:
scope- the new attribute
-
getAlign
Returns the value of thealignproperty.- Returns:
- the value of the
alignproperty
-
setAlign
Sets the value of thealignproperty.- Parameters:
align- the value of thealignproperty
-
getVAlign
Returns the value of thevAlignproperty.- Returns:
- the value of the
vAlignproperty
-
setVAlign
Sets the value of thevAlignproperty.- Parameters:
vAlign- the value of thevAlignproperty
-
getCh
Returns the value of thechproperty.- Overrides:
getChin classHTMLElement- Returns:
- the value of the
chproperty
-
setCh
Sets the value of thechproperty.- Overrides:
setChin classHTMLElement- Parameters:
ch- the value of thechproperty
-
getChOff
Returns the value of thechOffproperty.- Overrides:
getChOffin classHTMLElement- Returns:
- the value of the
chOffproperty
-
setChOff
Sets the value of thechOffproperty.- Overrides:
setChOffin classHTMLElement- Parameters:
chOff- the value of thechOffproperty
-