Class TableCell


  • @JsType(isNative=true,
            name="HTMLTableCellElement",
            namespace="<global>")
    public final class TableCell
    extends BaseHtmlElement
    Provides special properties and methods for manipulating the layout and presentation of table cells, either header or data cells, in an HTML document.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • getAlign

        @JsProperty
        public String getAlign()
        Returns the alignment of the element's contents with respect to the surrounding context.
        Returns:
        the alignment of the element's contents with respect to the surrounding context
      • setAlign

        @JsProperty
        public void setAlign​(String align)
        Sets the alignment of the element's contents with respect to the surrounding context.
        Parameters:
        align - the alignment of the element's contents with respect to the surrounding context
      • getCellIndex

        @JsProperty
        public int getCellIndex()
        Returns a value representing the cell's position in the cells collection of the <tr> the cell is contained within.
        Returns:
        a value representing the cell's position in the cells collection of the <tr> the cell is contained within
      • getColSpan

        @JsProperty
        public int getColSpan()
        Returns the value indicating the number of columns this cell must span; this lets the cell occupy space across multiple columns of the table.
        Returns:
        the value indicating the number of columns this cell must span; this lets the cell occupy space across multiple columns of the table
      • setColSpan

        @JsProperty
        public void setColSpan​(int colSpan)
        Sets the value indicating the number of columns this cell must span; this lets the cell occupy space across multiple columns of the table.
        Parameters:
        colSpan - the value indicating the number of columns this cell must span; this lets the cell occupy space across multiple columns of the table
      • getHeight

        @JsProperty
        public String getHeight()
        Returns the length of pixel of the hinted height of the cell.
        Returns:
        the length of pixel of the hinted height of the cell
      • setHeight

        @JsProperty
        public void setHeight​(String height)
        Sets the length of pixel of the hinted height of the cell.
        Parameters:
        height - the length of pixel of the hinted height of the cell
      • isNoWrap

        @JsProperty
        public boolean isNoWrap()
        Returns the value reflecting the nowrap attribute and indicating if cell content can be broken in several lines.
        Returns:
        the value reflecting the nowrap attribute and indicating if cell content can be broken in several lines
      • setNoWrap

        @JsProperty
        public void setNoWrap​(boolean noWrap)
        Sets the value reflecting the nowrap attribute and indicating if cell content can be broken in several lines.
        Parameters:
        noWrap - the value reflecting the nowrap attribute and indicating if cell content can be broken in several lines
      • getRowSpan

        @JsProperty
        public int getRowSpan()
        Returns the value indicating the number of rows this cell must span; this lets a cell occupy space across multiple rows of the table.
        Returns:
        the value indicating the number of rows this cell must span; this lets a cell occupy space across multiple rows of the table
      • setRowSpan

        @JsProperty
        public void setRowSpan​(int rowSpan)
        Sets the value indicating the number of rows this cell must span; this lets a cell occupy space across multiple rows of the table.
        Parameters:
        rowSpan - the value indicating the number of rows this cell must span; this lets a cell occupy space across multiple rows of the table
      • getVAlign

        @JsProperty
        public String getVAlign()
        Returns the content of the cell must be vertically aligned.
        Returns:
        the content of the cell must be vertically aligned
      • setVAlign

        @JsProperty
        public void setVAlign​(String vAlign)
        Sets the content of the cell must be vertically aligned.
        Parameters:
        vAlign - the content of the cell must be vertically aligned
      • getWidth

        @JsProperty
        public String getWidth()
        Returns the number of pixels wide the cell should be drawn, if possible.
        Returns:
        the number of pixels wide the cell should be drawn, if possible
      • setWidth

        @JsProperty
        public void setWidth​(String width)
        Sets the number of pixels wide the cell should be drawn, if possible.
        Parameters:
        width - the number of pixels wide the cell should be drawn, if possible