|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjxl.biff.RecordData
jxl.biff.WritableRecordData
jxl.biff.FormatRecord
A non-built in format record
| Field Summary | |
static jxl.biff.FormatRecord.BiffType |
biff7
|
static jxl.biff.FormatRecord.BiffType |
biff8
|
static Logger |
logger
The logger |
| Fields inherited from class jxl.biff.WritableRecordData |
maxRecordLength |
| 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,
jxl.biff.FormatRecord.BiffType biffType)
Constructs this object from the raw data. |
| 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 |
int |
hashCode()
Standard hash code method |
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 |
| Methods inherited from class jxl.biff.RecordData |
getCode, getRecord |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static Logger logger
public static final jxl.biff.FormatRecord.BiffType biff8
public static final jxl.biff.FormatRecord.BiffType biff7
| Constructor Detail |
protected FormatRecord()
protected FormatRecord(FormatRecord fr)
fr - the format to copy
public FormatRecord(Record t,
WorkbookSettings ws,
jxl.biff.FormatRecord.BiffType biffType)
t - the raw dataws - the workbook settingsbiffType - biff type dummy overload| Method Detail |
public byte[] getData()
getData in class WritableRecordDatapublic int getFormatIndex()
getFormatIndex in interface DisplayFormatpublic boolean isInitialized()
isInitialized in interface DisplayFormatpublic void initialize(int pos)
initialize in interface DisplayFormatpos - the position of this font in the workbooks font list
protected 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 equivalent
protected final void setFormatString(java.lang.String s)
s - the format stringpublic 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 Formatpublic boolean isBuiltIn()
isBuiltIn in interface DisplayFormatpublic int hashCode()
public boolean equals(java.lang.Object o)
o - the object to compare
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||