Class PrometheusSheetFormats
java.lang.Object
io.github.tonywasher.joceanus.prometheus.service.sheet.PrometheusSheetFormats
Excel/Oasis format string builder class.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final intMoney accounting format width.static final intFont Height.static final StringNumeric Font.static final StringValue Font.(package private) static final StringOasis date format.static final intBoolean width.static final intDate width.static final intDilution width.static final intInteger width.static final intMoney width.static final intPrice width.static final intRate width.static final intRatio width.static final intString width.static final intUnits width. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetAlternateFormatName(Object pValue) Obtain currency format name for a cell.static StringgetAlternateFormatString(Object pValue) Obtain alternate data format string for a cell value.static PrometheusSheetCellStyleTypegetCellStyleType(Object pValue) Obtain data format for a value.static StringObtain data format string for a cell type.static StringgetDataFormatString(Object pValue) Obtain data format string for a cell value.static ObjectObtain default value for a cell type.static StringObtain data format string for a cell type.static StringgetFormatName(Object pValue) Obtain format name for a cell.static booleanDetermine whether cell type has data format.
-
Field Details
-
ACCOUNTING_WIDTH
static final int ACCOUNTING_WIDTHMoney accounting format width.- See Also:
-
WIDTH_DATE
public static final int WIDTH_DATEDate width.- See Also:
-
WIDTH_INT
public static final int WIDTH_INTInteger width.- See Also:
-
WIDTH_BOOL
public static final int WIDTH_BOOLBoolean width.- See Also:
-
WIDTH_MONEY
public static final int WIDTH_MONEYMoney width.- See Also:
-
WIDTH_UNITS
public static final int WIDTH_UNITSUnits width.- See Also:
-
WIDTH_RATE
public static final int WIDTH_RATERate width.- See Also:
-
WIDTH_DILUTION
public static final int WIDTH_DILUTIONDilution width.- See Also:
-
WIDTH_RATIO
public static final int WIDTH_RATIORatio width.- See Also:
-
WIDTH_PRICE
public static final int WIDTH_PRICEPrice width.- See Also:
-
WIDTH_STRING
public static final int WIDTH_STRINGString width.- See Also:
-
FONT_HEIGHT
public static final int FONT_HEIGHTFont Height.- See Also:
-
FONT_VALUE
Value Font.- See Also:
-
FONT_NUMERIC
Numeric Font.- See Also:
-
OASIS_DATE
Oasis date format.- See Also:
-
-
Method Details
-
getDataFormatString
Obtain data format string for a cell type.- Parameters:
pType- the cell style type- Returns:
- the format string
-
getDefaultValue
Obtain default value for a cell type.- Parameters:
pType- the cell style type- Returns:
- the format string
-
getDataFormatString
Obtain data format string for a cell value.- Parameters:
pValue- the cell value- Returns:
- the format string
-
getAlternateFormatString
Obtain alternate data format string for a cell value.- Parameters:
pValue- the cell value- Returns:
- the format string
-
getFormatName
Obtain data format string for a cell type.- Parameters:
pType- the cell style type- Returns:
- the format string
-
getFormatName
Obtain format name for a cell.- Parameters:
pValue- the cell value- Returns:
- the format string
-
getAlternateFormatName
Obtain currency format name for a cell.- Parameters:
pValue- the cell value- Returns:
- the format string
-
hasDataFormat
Determine whether cell type has data format.- Parameters:
pType- the cell type- Returns:
- true/false
-
getCellStyleType
Obtain data format for a value.- Parameters:
pValue- the cell value- Returns:
- the cell style type
-