Package io.keikai.model.sys.format
Interface FormatEngine
-
- All Known Implementing Classes:
FormatEngineEx,FormatEngineImpl
public interface FormatEngine- Since:
- 3.5.0
- Author:
- dennis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FormatResultformat(SCell cell, FormatContext ctx)Format the cell by it's formatFormatResultformat(String format, Object value, FormatContext ctx, int cellWidth)Format the valueStringgetEditText(SCell cell, FormatContext ctx)Get the editText of cellSTableStylegetExistTableStyle(SBook book, String name)Returns TableStyle of the specified name of the specified book if exists; or return null if not exists.StringgetFormat(SCell cell, FormatContext ctx)Get the format of the cell, ifSCellStyle.isDirectDataFormat()if false, the return value will be localizedStringgetLocalizedFormat(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)STableStylegetTableStyle(SBook book, String name)Returns TableStyle of the specified name of the specified book.
-
-
-
Method Detail
-
getEditText
String getEditText(SCell cell, FormatContext ctx)
Get the editText of cell
-
getFormat
String getFormat(SCell cell, FormatContext ctx)
Get the format of the cell, ifSCellStyle.isDirectDataFormat()if false, the return value will be localized
-
getLocalizedFormat
String getLocalizedFormat(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)
-
format
FormatResult format(SCell cell, FormatContext ctx)
Format the cell by it's format- See Also:
getFormat(SCell, FormatContext)
-
format
FormatResult format(String format, Object value, FormatContext ctx, int cellWidth)
Format the value
-
getTableStyle
STableStyle getTableStyle(SBook book, String name)
Returns TableStyle of the specified name of the specified book.- Parameters:
name-- Returns:
- Since:
- 3.8.3
-
getExistTableStyle
STableStyle getExistTableStyle(SBook book, String name)
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
-
-