Package io.keikai.model.sys.format
Interface FormatEngine
- All Known Implementing Classes:
FormatEngineImpl
public interface FormatEngine
- Since:
- 3.5.0
- Author:
- dennis
-
Method Summary
Modifier and TypeMethodDescriptionformat(SCell cell, FormatContext ctx) Format the cell by it's formatformat(String format, Object value, FormatContext ctx, int cellWidth) Format the valuegetEditText(SCell cell, FormatContext ctx) 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 ctx) Get the format of the cell, ifSCellStyle.isDirectDataFormat()if false, the return value will be localizedgetLocalizedFormat(String format, FormatContext ctx) 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.
-
Method Details
-
getEditText
Get the editText of cell -
getFormat
Get the format of the cell, ifSCellStyle.isDirectDataFormat()if false, the return value will be localized -
getLocalizedFormat
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) -
format
Format the cell by it's format- See Also:
-
format
Format the value -
getTableStyle
Returns TableStyle of the specified name of the specified book.- Parameters:
name-- Returns:
- Since:
- 3.8.3
-
getExistTableStyle
Returns TableStyle of the specified name of the specified book if exists; or return null if not exists.- Parameters:
name-- Returns:
- Since:
- 3.9.0
-