Class 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
    • Constructor Detail

      • HTMLTableCellElement

        public HTMLTableCellElement()
        Creates an instance.
    • Method Detail

      • 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:
        MSDN Documentation, Element Dimensions
      • 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:
        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 the abbr attribute.
        Returns:
        the value of the abbr attribute
      • setAbbr

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

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

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

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

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

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

        public void setColSpan​(java.lang.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​(java.lang.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:
        MSDN Documentation
      • setNoWrap

        public void setNoWrap​(boolean noWrap)
        Sets the value of the noWrap attribute.
        Parameters:
        noWrap - the value of the noWrap attribute
        See Also:
        MSDN Documentation
      • 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 java.lang.String getWidth_js()
        Returns the value of the width property.
        Returns:
        the value of the width property
      • setWidth_js

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

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

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

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

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

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

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

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