Class HTMLTableCellElement
- java.lang.Object
-
- 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.HTMLTableComponent
-
- org.htmlunit.javascript.host.html.HTMLTableCellElement
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,org.htmlunit.corejs.javascript.ConstProperties
,org.htmlunit.corejs.javascript.debug.DebuggableObject
,org.htmlunit.corejs.javascript.Scriptable
,org.htmlunit.corejs.javascript.SymbolScriptable
public class HTMLTableCellElement extends HTMLTableComponent
The JavaScript object representing a TD or TH.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.htmlunit.javascript.host.html.HTMLElement
HTMLElement.ProxyDomNode
-
-
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_NODE
-
-
Constructor Summary
Constructors Constructor Description HTMLTableCellElement()
Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAbbr()
Returns the value of theabbr
attribute.java.lang.String
getAxis()
Returns the value of theaxis
attribute.java.lang.String
getBgColor()
Returns the value of thebgColor
attribute.int
getCellIndex()
Returns the index of this cell within the parent row.int
getColSpan()
Returns the value of thecolSpan
attribute.java.lang.String
getHeaders()
Returns theheaders
attribute.java.lang.String
getHeight_js()
Returns the value of thewidth
property.int
getOffsetHeight()
Returns this element'soffsetHeight
, which is the element height plus the element's padding plus the element's border.int
getOffsetWidth()
Returns this element'soffsetWidth
, which is the element width plus the element's padding plus the element's border.private HtmlTableRow
getRow()
Returns the row element which contains this cell's HTML element; may returnnull
.int
getRowSpan()
Returns the value of therowSpan
attribute.java.lang.String
getScope()
Returns thescope
attribute.java.lang.String
getWidth_js()
Returns the value of thewidth
property.boolean
isNoWrap()
Returns the value of thenoWrap
attribute.void
jsConstructor()
JavaScript constructor.void
setAbbr(java.lang.String abbr)
Sets the value of theabbr
attribute.void
setAxis(java.lang.String axis)
Sets the value of theaxis
attribute.void
setBgColor(java.lang.String bgColor)
Sets the value of thebgColor
attribute.void
setColSpan(java.lang.String colSpan)
Sets the value of thecolSpan
attribute.void
setHeaders(java.lang.String headers)
Sets theheaders
attribute.void
setHeight_js(java.lang.String height)
Sets the value of theheight
property.void
setNoWrap(boolean noWrap)
Sets the value of thenoWrap
attribute.void
setOuterHTML(java.lang.Object value)
Overwritten to throw an exception.void
setRowSpan(java.lang.String rowSpan)
Sets the value of therowSpan
attribute.void
setScope(java.lang.String scope)
Sets thescope
attribute.void
setWidth_js(java.lang.String width)
Sets the value of thewidth
property.-
Methods inherited from class org.htmlunit.javascript.host.html.HTMLTableComponent
getAlign, getCh, getChOff, getVAlign, setAlign, setCh, setChOff, setVAlign
-
Methods inherited from class org.htmlunit.javascript.host.html.HTMLElement
blur, click, focus, getAccessKey, getAlign, getAttributeNode, getAutofocus, getBoundingClientRect, getContentEditable, getDataset, getDir, getDomNodeOrDie, getDomNodeOrNull, getEnterKeyHint, getForm, 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, isDisabled, isEndTagForbidden, isHidden, 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, toString
-
Methods inherited from class org.htmlunit.javascript.host.Element
after, append, before, closest, createAttributesObject, createEventHandler, getAttribute, getAttributeNodeNS, getAttributeNS, getAttributes, getChildElementCount, getChildren, getClassList, getClassName_js, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getId, getInnerHTML, getInnerHTML, getLastElementChild, getNamespaceURI, getNextElementSibling, getOnbeforecopy, getOnbeforecut, getOnbeforepaste, getOnsearch, getOnwebkitfullscreenchange, getOnwebkitfullscreenerror, getOuterHTML, getParentElement, getPreviousElementSibling, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getTagName, hasAttribute, hasAttributeNS, hasAttributes, innerHTML, 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, setScrollLeft, setScrollTop, toggleAttribute, webkitMatchesSelector
-
Methods 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, normalize, prepend, removeChild, replaceChild, replaceChildren, replaceWith, setNodeValue
-
Methods inherited from class org.htmlunit.javascript.host.event.EventTarget
addEventListener, clearEventListenersContainer, dispatchEvent, executeEventLocally, fireEvent, getEventHandler, getEventListenersContainer, hasEventHandlers, isEventHandlerOnWindow, removeEventListener, setEventHandler
-
Methods inherited from class org.htmlunit.javascript.HtmlUnitScriptable
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setParentScope, setupPromise, setupRejectedPromise
-
Methods inherited from class org.htmlunit.corejs.javascript.ScriptableObject
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, 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, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, size
-
-
-
-
Method Detail
-
jsConstructor
public void jsConstructor()
JavaScript constructor.- Overrides:
jsConstructor
in 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:
getOffsetHeight
in classHTMLElement
- Returns:
- this element's
offsetHeight
- See Also:
- MSDN Documentation, Element Dimensions
-
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:
getOffsetWidth
in classHTMLElement
- Returns:
- this element's
offsetWidth
- See Also:
- MSDN Documentation, Element Dimensions
-
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:
- MSDN Documentation
-
getAbbr
public java.lang.String getAbbr()
Returns the value of theabbr
attribute.- Returns:
- the value of the
abbr
attribute
-
setAbbr
public void setAbbr(java.lang.String abbr)
Sets the value of theabbr
attribute.- Parameters:
abbr
- the value of theabbr
attribute
-
getAxis
public java.lang.String getAxis()
Returns the value of theaxis
attribute.- Returns:
- the value of the
axis
attribute
-
setAxis
public void setAxis(java.lang.String axis)
Sets the value of theaxis
attribute.- Parameters:
axis
- the value of theaxis
attribute
-
getBgColor
public java.lang.String getBgColor()
Returns the value of thebgColor
attribute.- Returns:
- the value of the
bgColor
attribute - See Also:
- MSDN Documentation
-
setBgColor
public void setBgColor(java.lang.String bgColor)
Sets the value of thebgColor
attribute.- Parameters:
bgColor
- the value of thebgColor
attribute- See Also:
- MSDN Documentation
-
getColSpan
public int getColSpan()
Returns the value of thecolSpan
attribute.- Returns:
- the value of the
colSpan
attribute
-
setColSpan
public void setColSpan(java.lang.String colSpan)
Sets the value of thecolSpan
attribute.- Parameters:
colSpan
- the value of thecolSpan
attribute
-
getRowSpan
public int getRowSpan()
Returns the value of therowSpan
attribute.- Returns:
- the value of the
rowSpan
attribute
-
setRowSpan
public void setRowSpan(java.lang.String rowSpan)
Sets the value of therowSpan
attribute.- Parameters:
rowSpan
- the value of therowSpan
attribute
-
isNoWrap
public boolean isNoWrap()
Returns the value of thenoWrap
attribute.- Returns:
- the value of the
noWrap
attribute - See Also:
- MSDN Documentation
-
setNoWrap
public void setNoWrap(boolean noWrap)
Sets the value of thenoWrap
attribute.- Parameters:
noWrap
- the value of thenoWrap
attribute- See Also:
- MSDN Documentation
-
getRow
private HtmlTableRow getRow()
Returns the row element which contains this cell's HTML element; may returnnull
.- Returns:
- the row element which contains this cell's HTML element
-
getWidth_js
public java.lang.String getWidth_js()
Returns the value of thewidth
property.- Returns:
- the value of the
width
property
-
setWidth_js
public void setWidth_js(java.lang.String width)
Sets the value of thewidth
property.- Parameters:
width
- the value of thewidth
property
-
getHeight_js
public java.lang.String getHeight_js()
Returns the value of thewidth
property.- Returns:
- the value of the
width
property
-
setHeight_js
public void setHeight_js(java.lang.String height)
Sets the value of theheight
property.- Parameters:
height
- the value of theheight
property
-
setOuterHTML
public void setOuterHTML(java.lang.Object value)
Overwritten to throw an exception.- Overrides:
setOuterHTML
in classElement
- Parameters:
value
- the new value for replacing this node
-
getHeaders
public java.lang.String getHeaders()
Returns theheaders
attribute.- Returns:
- the
headers
attribute
-
setHeaders
public void setHeaders(java.lang.String headers)
Sets theheaders
attribute.- Parameters:
headers
- the new attribute
-
getScope
public java.lang.String getScope()
Returns thescope
attribute.- Returns:
- the
scope
attribute
-
setScope
public void setScope(java.lang.String scope)
Sets thescope
attribute.- Parameters:
scope
- the new attribute
-
-