Class HTMLTableCellElement

All Implemented Interfaces:
Serializable, 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:
  • Constructor Details

    • HTMLTableCellElement

      public HTMLTableCellElement()
      Creates an instance.
  • Method Details

    • jsConstructor

      public void jsConstructor()
      JavaScript constructor.
      Overrides:
      jsConstructor in class HTMLElement
    • getOffsetHeight

      public int getOffsetHeight()
      Returns this element's offsetHeight, 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 class HTMLElement
      Returns:
      this element's offsetHeight
      See Also:
    • getOffsetWidth

      public int getOffsetWidth()
      Returns this element's offsetWidth, 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 class HTMLElement
      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

      public String getAbbr()
      Returns the value of the abbr attribute.
      Returns:
      the value of the abbr attribute
    • setAbbr

      public void setAbbr(String abbr)
      Sets the value of the abbr attribute.
      Parameters:
      abbr - the value of the abbr attribute
    • getAxis

      public String getAxis()
      Returns the value of the axis attribute.
      Returns:
      the value of the axis attribute
    • setAxis

      public void setAxis(String axis)
      Sets the value of the axis attribute.
      Parameters:
      axis - the value of the axis attribute
    • getBgColor

      public String getBgColor()
      Returns the value of the bgColor attribute.
      Returns:
      the value of the bgColor attribute
      See Also:
    • setBgColor

      public void setBgColor(String bgColor)
      Sets the value of the bgColor attribute.
      Parameters:
      bgColor - the value of the bgColor attribute
      See Also:
    • getColSpan

      public int getColSpan()
      Returns the value of the colSpan attribute.
      Returns:
      the value of the colSpan attribute
    • setColSpan

      public void setColSpan(String colSpan)
      Sets the value of the colSpan attribute.
      Parameters:
      colSpan - the value of the colSpan attribute
    • getRowSpan

      public int getRowSpan()
      Returns the value of the rowSpan attribute.
      Returns:
      the value of the rowSpan attribute
    • setRowSpan

      public void setRowSpan(String rowSpan)
      Sets the value of the rowSpan attribute.
      Parameters:
      rowSpan - the value of the rowSpan attribute
    • isNoWrap

      public boolean isNoWrap()
      Returns the value of the noWrap attribute.
      Returns:
      the value of the noWrap attribute
      See Also:
    • setNoWrap

      public void setNoWrap(boolean noWrap)
      Sets the value of the noWrap attribute.
      Parameters:
      noWrap - the value of the noWrap attribute
      See Also:
    • getRow

      private HtmlTableRow getRow()
      Returns the row element which contains this cell's HTML element; may return null.
      Returns:
      the row element which contains this cell's HTML element
    • getWidth_js

      public String getWidth_js()
      Returns the value of the width property.
      Returns:
      the value of the width property
    • setWidth_js

      public void setWidth_js(String width)
      Sets the value of the width property.
      Parameters:
      width - the value of the width property
    • getHeight_js

      public String getHeight_js()
      Returns the value of the width property.
      Returns:
      the value of the width property
    • setHeight_js

      public void setHeight_js(String height)
      Sets the value of the height property.
      Parameters:
      height - the value of the height property
    • setOuterHTML

      public void setOuterHTML(Object value)
      Overwritten to throw an exception.
      Overrides:
      setOuterHTML in class Element
      Parameters:
      value - the new value for replacing this node
    • getHeaders

      public String getHeaders()
      Returns the headers attribute.
      Returns:
      the headers attribute
    • setHeaders

      public void setHeaders(String headers)
      Sets the headers attribute.
      Parameters:
      headers - the new attribute
    • getScope

      public String getScope()
      Returns the scope attribute.
      Returns:
      the scope attribute
    • setScope

      public void setScope(String scope)
      Sets the scope attribute.
      Parameters:
      scope - the new attribute