|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jxl.biff.RecordData | +--jxl.biff.WritableRecordData | +--jxl.biff.FormatRecord
A non-built format record
Inner Class Summary | |
private static class |
FormatRecord.BiffType
|
Field Summary | |
static FormatRecord.BiffType |
biff7
|
static FormatRecord.BiffType |
biff8
|
private byte[] |
data
The raw data |
private boolean |
date
Indicates whether this is a date formatting record |
private static java.lang.String[] |
dateStrings
|
private java.text.Format |
format
The format object |
private java.lang.String |
formatString
The formatting string |
private int |
indexCode
The index code |
private boolean |
initialized
Initialized flag |
private boolean |
number
Indicates whether this a number formatting record |
Fields inherited from class jxl.biff.WritableRecordData |
maxRecordLength |
Fields inherited from class jxl.biff.RecordData |
code, record |
Constructor Summary | |
protected |
FormatRecord()
Constructor used by writable formats |
protected |
FormatRecord(FormatRecord fr)
Copy constructor - can be invoked by public access |
|
FormatRecord(Record t,
WorkbookSettings ws,
FormatRecord.BiffType biffType)
Constructs this object from the raw data. |
(package private) |
FormatRecord(java.lang.String fmt,
int refno)
Constructor invoked when copying sheets |
Method Summary | |
boolean |
equals(java.lang.Object o)
Standard equals method. |
byte[] |
getData()
Used to get the data when writing out the format record |
java.text.DateFormat |
getDateFormat()
Gets the java equivalent date format for the formatString |
int |
getFormatIndex()
Gets the format index of this record |
java.lang.String |
getFormatString()
Gets the formatting string. |
int |
getIndexCode()
Gets the index code, for use as a hash value |
java.text.NumberFormat |
getNumberFormat()
Gets the java equivalent number format for the formatString |
void |
initialize(int pos)
Sets the index of this record. |
boolean |
isBuiltIn()
Indicates whether this formula is a built in |
boolean |
isDate()
Sees if this format is a date format |
boolean |
isInitialized()
Accessor to see whether this object is initialized or not. |
boolean |
isNumber()
Sees if this format is a number format |
protected java.lang.String |
replace(java.lang.String input,
java.lang.String search,
java.lang.String replace)
Replaces all instances of search with replace in the input. |
protected void |
setFormatString(java.lang.String s)
Called by the immediate subclass to set the string once the Java-Excel replacements have been done |
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 |
|
Field Detail |
private boolean initialized
private byte[] data
private int indexCode
private java.lang.String formatString
private boolean date
private boolean number
private java.text.Format format
private static java.lang.String[] dateStrings
public static final FormatRecord.BiffType biff8
public static final FormatRecord.BiffType biff7
Constructor Detail |
FormatRecord(java.lang.String fmt, int refno)
protected FormatRecord()
protected FormatRecord(FormatRecord fr)
public FormatRecord(Record t, WorkbookSettings ws, FormatRecord.BiffType biffType)
t
- the raw dataMethod Detail |
public byte[] getData()
getData
in class WritableRecordData
jxl.biff.WritableRecordData
public int getFormatIndex()
getFormatIndex
in interface DisplayFormat
public boolean isInitialized()
isInitialized
in interface DisplayFormat
public void initialize(int pos)
initialize
in interface DisplayFormat
pos
- the position of this font in the workbooks font listprotected final java.lang.String replace(java.lang.String input, java.lang.String search, java.lang.String replace)
input
- the format stringsearch
- the Excel character to be replacedreplace
- the java equivalentprotected final void setFormatString(java.lang.String s)
public final boolean isDate()
public final boolean isNumber()
public final java.text.NumberFormat getNumberFormat()
public final java.text.DateFormat getDateFormat()
public int getIndexCode()
public java.lang.String getFormatString()
getFormatString
in interface Format
public boolean isBuiltIn()
isBuiltIn
in interface DisplayFormat
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to compare
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |