jxl.write.biff
Class NumberFormatRecord

java.lang.Object
  |
  +--jxl.biff.RecordData
        |
        +--jxl.biff.WritableRecordData
              |
              +--jxl.biff.FormatRecord
                    |
                    +--jxl.write.biff.NumberFormatRecord
All Implemented Interfaces:
ByteData, DisplayFormat, Format
Direct Known Subclasses:
NumberFormat

public class NumberFormatRecord
extends FormatRecord

A class which contains a number format


Inner classes inherited from class jxl.biff.FormatRecord
FormatRecord.BiffType
 
Fields inherited from class jxl.biff.FormatRecord
biff7, biff8, data, date, dateStrings, format, formatString, indexCode, initialized, number
 
Fields inherited from class jxl.biff.WritableRecordData
maxRecordLength
 
Fields inherited from class jxl.biff.RecordData
code, record
 
Constructor Summary
protected NumberFormatRecord(java.lang.String fmt)
          Constructor.
 
Method Summary
private  java.lang.String trimInvalidChars(java.lang.String fs)
          Remove all but the first characters preceding the # or the 0.
 
Methods inherited from class jxl.biff.FormatRecord
equals, getData, getDateFormat, getFormatIndex, getFormatString, getIndexCode, getNumberFormat, initialize, isBuiltIn, isDate, isInitialized, isNumber, replace, setFormatString
 
Methods inherited from class jxl.biff.WritableRecordData
getBytes, handleContinueRecords
 
Methods inherited from class jxl.biff.RecordData
getCode, getRecord
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

NumberFormatRecord

protected NumberFormatRecord(java.lang.String fmt)
Constructor. Replaces some of the characters in the java number format string with the appropriate excel format characters
Parameters:
fmt - the number format
Method Detail

trimInvalidChars

private java.lang.String trimInvalidChars(java.lang.String fs)
Remove all but the first characters preceding the # or the 0. Remove all characters after the # or the 0, unless it is a )
Parameters:
fs - the candidate number format
Returns:
the string with spurious characters removed