Class CellFormatHelper

  • All Implemented Interfaces:
    java.io.Serializable

    public class CellFormatHelper
    extends java.lang.Object
    implements java.io.Serializable
    Author:
    Dennis.Chen
    See Also:
    Serialized Form
    • Method Detail

      • getHtmlStyle

        public java.lang.String getHtmlStyle​(java.lang.StringBuffer doubleBorder,
                                             STable table,
                                             SCellStyle tbStyle,
                                             java.util.Map<java.lang.String,​java.lang.String> mergedBorder)
      • getFontCSSStyle

        public static java.lang.String getFontCSSStyle​(SCell cell,
                                                       SFont font)
      • getInnerHtmlStyle

        public java.lang.String getInnerHtmlStyle​(boolean hasMergedBorder)
      • getFontHtmlStyle

        public java.lang.String getFontHtmlStyle()
      • hasRightBorder

        public boolean hasRightBorder​(STable table,
                                      SCellStyle tbStyle)
      • getCellFormattedText

        public java.lang.String getCellFormattedText()
      • getCellEditText

        public java.lang.String getCellEditText()
      • getRichCellHtmlText

        public static java.lang.String getRichCellHtmlText​(SSheet sheet,
                                                           int row,
                                                           int column)
        Gets Cell text by given row and column, it handling
      • getRichTextEditCellHtml

        public static java.lang.String getRichTextEditCellHtml​(SSheet sheet,
                                                               int row,
                                                               int column)
      • appendTextCSSStyle

        public static void appendTextCSSStyle​(java.lang.StringBuilder sb,
                                              SCell cell,
                                              boolean hasMergedBorder)
      • getCellHtmlText

        public static java.lang.String getCellHtmlText​(SSheet sheet,
                                                       int row,
                                                       int column)
        Gets Cell text by given row and column
      • getCellFormattedText

        public java.lang.String getCellFormattedText​(FormatResult ft)
      • getRichCellHtmlText

        public static java.lang.String getRichCellHtmlText​(SSheet sheet,
                                                           int row,
                                                           int column,
                                                           FormatResult ft,
                                                           SCellStyle tbStyle,
                                                           SConditionalStyle cdStyle)
        Gets Cell text by given row and column, it handling
      • getRealHtmlStyle

        public java.lang.String getRealHtmlStyle​(FormatResult ft,
                                                 SCellStyle tbCellStyle,
                                                 boolean hasMergedBorder,
                                                 boolean isTextWrapped)
      • getAutoFilterBorder

        public java.lang.String getAutoFilterBorder()
      • getDependencyBorder

        public java.lang.String getDependencyBorder()
      • withDataBarBorder

        public boolean withDataBarBorder()