public interface FormatEngine
Modifier and Type | Method and Description |
---|---|
FormatResult |
format(SCell cell,
FormatContext ctx)
Format the cell by it's format
|
FormatResult |
format(String format,
Object value,
FormatContext ctx,
int cellWidth)
Format the value
|
String |
getEditText(SCell cell,
FormatContext ctx)
Get the editText of cell
|
STableStyle |
getExistTableStyle(SBook book,
String name)
Returns TableStyle of the specified name of the specified book if exists;
or return null if not exists.
|
String |
getFormat(SCell cell,
FormatContext ctx)
Get the format of the cell, if
SCellStyle.isDirectDataFormat() if false, the return value will be localized |
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)
|
STableStyle |
getTableStyle(SBook book,
String name)
Returns TableStyle of the specified name of the specified book.
|
STableStyle |
getTableStyle(String name)
Deprecated.
|
String getEditText(SCell cell, FormatContext ctx)
String getFormat(SCell cell, FormatContext ctx)
SCellStyle.isDirectDataFormat()
if false, the return value will be localizedString getLocalizedFormat(String format, FormatContext ctx)
FormatResult format(SCell cell, FormatContext ctx)
getFormat(SCell, FormatContext)
FormatResult format(String format, Object value, FormatContext ctx, int cellWidth)
STableStyle getTableStyle(String name)
name
- STableStyle getTableStyle(SBook book, String name)
name
- STableStyle getExistTableStyle(SBook book, String name)
name
- Copyright © 2020. All rights reserved.