Package io.keikai.ui.impl
Class CellFormatHelper
- java.lang.Object
-
- io.keikai.ui.impl.CellFormatHelper
-
- All Implemented Interfaces:
Serializable
public class CellFormatHelper extends Object implements Serializable
- Author:
- Dennis.Chen
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CellFormatHelper(SSheet sheet, int row, int col, MergeMatrixHelper mmhelper, SConditionalStyle cdStyle)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidappendTextCSSStyle(StringBuilder sb, SCell cell, boolean hasMergedBorder)StringgetAutoFilterBorder()StringgetCellEditText()StringgetCellFormattedText()StringgetCellFormattedText(FormatResult ft)static StringgetCellHtmlText(SSheet sheet, int row, int column)Gets Cell text by given row and columnstatic StringgetCellHtmlText(SSheet sheet, int row, int column, FormatResult ft, SCellStyle tbStyle, SConditionalStyle cdStyle)Gets Cell text by given row and columnStringgetDependencyBorder()static StringgetFontCSSStyle(SCell cell, SFont font)StringgetFontHtmlStyle()static StringgetFontHtmlStyle(SSheet sheet, SCell cell, SCellStyle cellStyle, FormatResult ft, SCellStyle tbCellStyle, SConditionalStyle cdStyle)FormatResultgetFormatResult()StringgetHtmlStyle(StringBuffer doubleBorder, STable table, SCellStyle tbStyle, Map<String,String> mergedBorder)StringgetInnerHtmlStyle(boolean hasMergedBorder)static SCellStyle.AlignmentgetRealAlignment(SCell cell)StringgetRealHtmlStyle(FormatResult ft, SCellStyle tbCellStyle, boolean hasMergedBorder, boolean isTextWrapped)static StringgetRichCellHtmlText(SSheet sheet, int row, int column)Gets Cell text by given row and column, it handlingstatic StringgetRichCellHtmlText(SSheet sheet, int row, int column, FormatResult ft, SCellStyle tbStyle, SConditionalStyle cdStyle)Gets Cell text by given row and column, it handlingstatic StringgetRichTextEditCellHtml(SSheet sheet, int row, int column)booleanhasRightBorder(STable table, SCellStyle tbStyle)booleanwithDataBarBorder()
-
-
-
Constructor Detail
-
CellFormatHelper
public CellFormatHelper(SSheet sheet, int row, int col, MergeMatrixHelper mmhelper, SConditionalStyle cdStyle)
-
-
Method Detail
-
getHtmlStyle
public String getHtmlStyle(StringBuffer doubleBorder, STable table, SCellStyle tbStyle, Map<String,String> mergedBorder)
-
getInnerHtmlStyle
public String getInnerHtmlStyle(boolean hasMergedBorder)
-
getFontHtmlStyle
public String getFontHtmlStyle()
-
getRealAlignment
public static SCellStyle.Alignment getRealAlignment(SCell cell)
-
hasRightBorder
public boolean hasRightBorder(STable table, SCellStyle tbStyle)
-
getCellFormattedText
public String getCellFormattedText()
-
getCellEditText
public String getCellEditText()
-
getRichCellHtmlText
public static String getRichCellHtmlText(SSheet sheet, int row, int column)
Gets Cell text by given row and column, it handling
-
getRichTextEditCellHtml
public static String getRichTextEditCellHtml(SSheet sheet, int row, int column)
-
appendTextCSSStyle
public static void appendTextCSSStyle(StringBuilder sb, SCell cell, boolean hasMergedBorder)
-
getCellHtmlText
public static String getCellHtmlText(SSheet sheet, int row, int column)
Gets Cell text by given row and column
-
getFormatResult
public FormatResult getFormatResult()
-
getCellFormattedText
public String getCellFormattedText(FormatResult ft)
-
getFontHtmlStyle
public static String getFontHtmlStyle(SSheet sheet, SCell cell, SCellStyle cellStyle, FormatResult ft, SCellStyle tbCellStyle, SConditionalStyle cdStyle)
-
getRichCellHtmlText
public static String getRichCellHtmlText(SSheet sheet, int row, int column, FormatResult ft, SCellStyle tbStyle, SConditionalStyle cdStyle)
Gets Cell text by given row and column, it handling
-
getCellHtmlText
public static String getCellHtmlText(SSheet sheet, int row, int column, FormatResult ft, SCellStyle tbStyle, SConditionalStyle cdStyle)
Gets Cell text by given row and column
-
getRealHtmlStyle
public String getRealHtmlStyle(FormatResult ft, SCellStyle tbCellStyle, boolean hasMergedBorder, boolean isTextWrapped)
-
getAutoFilterBorder
public String getAutoFilterBorder()
-
getDependencyBorder
public String getDependencyBorder()
-
withDataBarBorder
public boolean withDataBarBorder()
-
-