Package io.keikai.model.impl.sys
Class FormatEngineImpl
java.lang.Object
io.keikai.model.impl.sys.FormatEngineImpl
- All Implemented Interfaces:
FormatEngine
- Since:
- 3.5.0
- Author:
- Hawk
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformat(SCell cell, FormatContext context) Format the cell by it's formatformat(String format, Object value, FormatContext context, int cellWidth) Format the valueprotected org.apache.poi.ss.format.CellFormatgetCellFormat(String formatStr, Locale locale) static intgetCellWidth256(SCell cell) static StringgetDateTimeString(double val, Locale locale) getEditText(SCell cell, FormatContext context) Get the editText of cellgetExistTableStyle(SBook book, String name) Returns TableStyle of the specified name of the specified book if exists; or return null if not exists.getFormat(SCell cell, FormatContext context) Get the format of the cell, ifSCellStyle.isDirectDataFormat()if false, the return value will be localizedprotected StringgetFormulaEditText(SCell cell) getLocalizedFormat(String format, FormatContext context) Get the localized-format , if the format is global-format, it will be transfer it to localized one (for example, m/d/yyyy will becom yyyy/m/d in zh_TW)getTableStyle(SBook book, String name) Returns TableStyle of the specified name of the specified book.
-
Constructor Details
-
FormatEngineImpl
public FormatEngineImpl()
-
-
Method Details
-
format
Description copied from interface:FormatEngineFormat the cell by it's format- Specified by:
formatin interfaceFormatEngine- See Also:
-
format
Description copied from interface:FormatEngineFormat the value- Specified by:
formatin interfaceFormatEngine- See Also:
-
getCellFormat
-
getLocalizedFormat
Description copied from interface:FormatEngineGet the localized-format , if the format is global-format, it will be transfer it to localized one (for example, m/d/yyyy will becom yyyy/m/d in zh_TW)- Specified by:
getLocalizedFormatin interfaceFormatEngine
-
getFormat
Description copied from interface:FormatEngineGet the format of the cell, ifSCellStyle.isDirectDataFormat()if false, the return value will be localized- Specified by:
getFormatin interfaceFormatEngine- See Also:
-
getEditText
Description copied from interface:FormatEngineGet the editText of cell- Specified by:
getEditTextin interfaceFormatEngine
-
getDateTimeString
-
getCellWidth256
-
getFormulaEditText
-
getTableStyle
Description copied from interface:FormatEngineReturns TableStyle of the specified name of the specified book.- Specified by:
getTableStylein interfaceFormatEngine- Returns:
-
getExistTableStyle
Description copied from interface:FormatEngineReturns TableStyle of the specified name of the specified book if exists; or return null if not exists.- Specified by:
getExistTableStylein interfaceFormatEngine- Returns:
-