format
Sets the format. The available formats are shown below:
StyleConstant.DATE_FORMAT for date display
StyleConstant.DECIMAL_FORMAT for number display
StyleConstant.MESSAGE_FORMAT for text display
StyleConstant.PERCENT_FORMAT for fraction display
StyleConstant.CURRENCY_FORMAT for locale-adapting currency display
To format cells or columns of a Table, use the tablelens property.
For the Date, Decimal, and Message formats, use the formatSpec property to assign a format specification using the appropriate masks.
Example (Number Format)
format = StyleConstant.DECIMAL_FORMAT;
formatSpec = "#,###.00";
Example (Text Format)
format = StyleConstant.MESSAGE_FORMAT;
formatSpec = "{0} Inc."
| << foreground | © 1996-2013 InetSoft Technology Corporation (v11.4) | formatSpec >> |