Class StyleTable.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • columnWidths

        public StyleTable.Builder columnWidths​(LengthUnit unit,
                                               double... widths)
        Specify the widths for the columns
        Parameters:
        unit - Unit that the widths are specified in
        widths - Width values for the columns
      • borderWidth

        public StyleTable.Builder borderWidth​(int borderWidthPx)
        Parameters:
        borderWidthPx - Width of the border, in px
      • headerColor

        public StyleTable.Builder headerColor​(Color color)
        Parameters:
        color - Background color for the header row
      • headerColor

        public StyleTable.Builder headerColor​(String color)
        Parameters:
        color - Background color for the header row
      • whitespaceMode

        public StyleTable.Builder whitespaceMode​(String whitespaceMode)
        Set the whitespace mode (CSS style tag). For example, "pre" to maintain current formatting with no wrapping, "pre-wrap" to wrap (but otherwise take into account new line characters in text, etc)
        Parameters:
        whitespaceMode - CSS whitespace mode