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 void
appendTextCSSStyle(StringBuilder sb, SCell cell, boolean hasMergedBorder)
String
getAutoFilterBorder()
String
getCellEditText()
String
getCellFormattedText()
String
getCellFormattedText(FormatResult ft)
static String
getCellHtmlText(SSheet sheet, int row, int column)
Gets Cell text by given row and columnstatic String
getCellHtmlText(SSheet sheet, int row, int column, FormatResult ft, SCellStyle tbStyle, SConditionalStyle cdStyle)
Gets Cell text by given row and columnString
getDependencyBorder()
static String
getFontCSSStyle(SCell cell, SFont font)
String
getFontHtmlStyle()
static String
getFontHtmlStyle(SSheet sheet, SCell cell, SCellStyle cellStyle, FormatResult ft, SCellStyle tbCellStyle, SConditionalStyle cdStyle)
FormatResult
getFormatResult()
String
getHtmlStyle(StringBuffer doubleBorder, STable table, SCellStyle tbStyle, Map<String,String> mergedBorder)
String
getInnerHtmlStyle(boolean hasMergedBorder)
static SCellStyle.Alignment
getRealAlignment(SCell cell)
String
getRealHtmlStyle(FormatResult ft, SCellStyle tbCellStyle, boolean hasMergedBorder, boolean isTextWrapped)
static String
getRichCellHtmlText(SSheet sheet, int row, int column)
Gets Cell text by given row and column, it handlingstatic String
getRichCellHtmlText(SSheet sheet, int row, int column, FormatResult ft, SCellStyle tbStyle, SConditionalStyle cdStyle)
Gets Cell text by given row and column, it handlingstatic String
getRichTextEditCellHtml(SSheet sheet, int row, int column)
boolean
hasRightBorder(STable table, SCellStyle tbStyle)
boolean
withDataBarBorder()
-
-
-
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()
-
-