|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jxl.biff.RecordData jxl.biff.WritableRecordData jxl.biff.FormatRecord jxl.write.biff.NumberFormatRecord jxl.write.NumberFormat
A custom user defined number format, which may be instantiated within user applications in order to present numerical values to the appropriate level of accuracy. The string format used to create a number format adheres to the standard java specification, and JExcelAPI makes the necessary modifications so that it is rendered in Excel as the nearest possible equivalent. Once created, this may be used within a CellFormat object, which in turn is a parameter passed to the constructor of the Number cell
Field Summary | |
static jxl.write.biff.NumberFormatRecord.NonValidatingFormat |
COMPLEX_FORMAT
Pass in to the constructor to bypass the format validation |
static java.lang.String |
CURRENCY_DOLLAR
Constant format string for the US Dollar sign |
static java.lang.String |
CURRENCY_EURO_PREFIX
Constant format string for the Euro currency symbol where it precedes the format |
static java.lang.String |
CURRENCY_EURO_SUFFIX
Constant format string for the Euro currency symbol where it precedes the format |
static java.lang.String |
CURRENCY_JAPANESE_YEN
Constant format string for the Japanese Yen sign |
static java.lang.String |
CURRENCY_POUND
Constant format string for the UK pound sign |
static java.lang.String |
FRACTION_HALVES
Constant format string for fractions as halves |
static java.lang.String |
FRACTION_HUNDREDTHS
Constant format string for fractions as hundredths |
static java.lang.String |
FRACTION_QUARTERS
Constant format string for fractions as quarter |
static java.lang.String |
FRACTION_SIXTEENTHS
Constant format string for fractions as sixteenths |
static java.lang.String |
FRACTION_TENTHS
Constant format string for fractions as tenths |
static java.lang.String |
FRACTION_THREE_DIGITS
Constant format string for three digit fractions |
static java.lang.String |
FRACTIONS_EIGHTHS
Constant format string for fractions as eighths |
Fields inherited from class jxl.biff.FormatRecord |
biff7, biff8 |
Constructor Summary | |
NumberFormat(java.lang.String format)
Constructor, taking in the Java compliant number format |
|
NumberFormat(java.lang.String format,
jxl.write.biff.NumberFormatRecord.NonValidatingFormat dummy)
Constructor, taking in the non-Java compliant number format. |
Methods inherited from class jxl.biff.FormatRecord |
equals, getData, getDateFormat, getFormatIndex, getFormatString, getIndexCode, getNumberFormat, hashCode, initialize, isBuiltIn, isDate, isInitialized, isNumber |
Methods inherited from class jxl.biff.WritableRecordData |
getBytes |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface jxl.biff.DisplayFormat |
getFormatIndex, initialize, isBuiltIn, isInitialized |
Field Detail |
public static final jxl.write.biff.NumberFormatRecord.NonValidatingFormat COMPLEX_FORMAT
public static final java.lang.String CURRENCY_EURO_PREFIX
public static final java.lang.String CURRENCY_EURO_SUFFIX
public static final java.lang.String CURRENCY_POUND
public static final java.lang.String CURRENCY_JAPANESE_YEN
public static final java.lang.String CURRENCY_DOLLAR
public static final java.lang.String FRACTION_THREE_DIGITS
public static final java.lang.String FRACTION_HALVES
public static final java.lang.String FRACTION_QUARTERS
public static final java.lang.String FRACTIONS_EIGHTHS
public static final java.lang.String FRACTION_SIXTEENTHS
public static final java.lang.String FRACTION_TENTHS
public static final java.lang.String FRACTION_HUNDREDTHS
Constructor Detail |
public NumberFormat(java.lang.String format)
format
- the format stringpublic NumberFormat(java.lang.String format, jxl.write.biff.NumberFormatRecord.NonValidatingFormat dummy)
format
- the format stringdummy
- dummy parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |