Package io.keikai.ui.impl
Class CellFormatHelper
- java.lang.Object
-
- io.keikai.ui.impl.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
-
-
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(java.lang.StringBuilder sb, SCell cell, boolean hasMergedBorder)java.lang.StringgetAutoFilterBorder()java.lang.StringgetCellEditText()java.lang.StringgetCellFormattedText()java.lang.StringgetCellFormattedText(FormatResult ft)static java.lang.StringgetCellHtmlText(SSheet sheet, int row, int column)Gets Cell text by given row and columnstatic java.lang.StringgetCellHtmlText(SSheet sheet, int row, int column, FormatResult ft, SCellStyle tbStyle, SConditionalStyle cdStyle)Gets Cell text by given row and columnjava.lang.StringgetDependencyBorder()static java.lang.StringgetFontCSSStyle(SCell cell, SFont font)java.lang.StringgetFontHtmlStyle()static java.lang.StringgetFontHtmlStyle(SSheet sheet, SCell cell, SCellStyle cellStyle, FormatResult ft, SCellStyle tbCellStyle, SConditionalStyle cdStyle)FormatResultgetFormatResult()java.lang.StringgetHtmlStyle(java.lang.StringBuffer doubleBorder, STable table, SCellStyle tbStyle, java.util.Map<java.lang.String,java.lang.String> mergedBorder)java.lang.StringgetInnerHtmlStyle(boolean hasMergedBorder)static SCellStyle.AlignmentgetRealAlignment(SCell cell)java.lang.StringgetRealHtmlStyle(FormatResult ft, SCellStyle tbCellStyle, boolean hasMergedBorder, boolean isTextWrapped)static java.lang.StringgetRichCellHtmlText(SSheet sheet, int row, int column)Gets Cell text by given row and column, it handlingstatic java.lang.StringgetRichCellHtmlText(SSheet sheet, int row, int column, FormatResult ft, SCellStyle tbStyle, SConditionalStyle cdStyle)Gets Cell text by given row and column, it handlingstatic java.lang.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 java.lang.String getHtmlStyle(java.lang.StringBuffer doubleBorder, STable table, SCellStyle tbStyle, java.util.Map<java.lang.String,java.lang.String> mergedBorder)
-
getInnerHtmlStyle
public java.lang.String getInnerHtmlStyle(boolean hasMergedBorder)
-
getFontHtmlStyle
public java.lang.String getFontHtmlStyle()
-
getRealAlignment
public static SCellStyle.Alignment getRealAlignment(SCell cell)
-
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
-
getFormatResult
public FormatResult getFormatResult()
-
getCellFormattedText
public java.lang.String getCellFormattedText(FormatResult ft)
-
getFontHtmlStyle
public static java.lang.String getFontHtmlStyle(SSheet sheet, SCell cell, SCellStyle cellStyle, FormatResult ft, SCellStyle tbCellStyle, SConditionalStyle cdStyle)
-
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
-
getCellHtmlText
public static java.lang.String getCellHtmlText(SSheet sheet, int row, int column, FormatResult ft, SCellStyle tbStyle, SConditionalStyle cdStyle)
Gets Cell text by given row and column
-
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()
-
-