Class Table

  • All Implemented Interfaces:
    IsJSType

    @JsType(isNative=true,
            name="HTMLTableElement",
            namespace="<global>")
    public final class Table
    extends BaseHtmlElement
    Provides special properties and methods for manipulating the layout and presentation of tables 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
      • getBorder

        @JsProperty
        public String getBorder()
        Returns the width in pixels of the border of the table.
        Returns:
        the width in pixels of the border of the table
      • setBorder

        @JsProperty
        public void setBorder​(String border)
        Sets the width in pixels of the border of the table.
        Parameters:
        border - the width in pixels of the border of the table
      • getCellPadding

        @JsProperty
        public String getCellPadding()
        Returns the width in pixels of the horizontal and vertical sapce between cell content and cell borders.
        Returns:
        the width in pixels of the horizontal and vertical sapce between cell content and cell borders
      • setCellPadding

        @JsProperty
        public void setCellPadding​(String cellPadding)
        Sets the width in pixels of the horizontal and vertical sapce between cell content and cell borders.
        Parameters:
        cellPadding - the width in pixels of the horizontal and vertical sapce between cell content and cell borders
      • getCellSpacing

        @JsProperty
        public String getCellSpacing()
        Returns the width in pixels of the horizontal and vertical separation between cells.
        Returns:
        the width in pixels of the horizontal and vertical separation between cells
      • setCellSpacing

        @JsProperty
        public void setCellSpacing​(String cellSpacing)
        Sets the width in pixels of the horizontal and vertical separation between cells.
        Parameters:
        cellSpacing - the width in pixels of the horizontal and vertical separation between cells
      • getWidth

        @JsProperty
        public String getWidth()
        Returns the length in pixels or in percentage of the desired width fo the entire table.
        Returns:
        the length in pixels or in percentage of the desired width fo the entire table
      • setWidth

        @JsProperty
        public void setWidth​(String width)
        Sets the length in pixels or in percentage of the desired width fo the entire table.
        Parameters:
        width - the length in pixels or in percentage of the desired width fo the entire table