public final class HeaderFooterRecord extends ContinuableRecord
Modifier and Type | Field and Description |
---|---|
static short |
sid |
Constructor and Description |
---|
HeaderFooterRecord() |
HeaderFooterRecord(RecordInputStream in)
construct a HeaderFooterRecord record.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
java.lang.String |
getFooterEven() |
java.lang.String |
getFooterFirst() |
byte[] |
getGuid()
If this header belongs to a specific sheet view , the sheet view?
|
java.lang.String |
getHeaderEven() |
java.lang.String |
getHeaderFirst() |
short |
getSid()
return the non static version of the id for this record.
|
boolean |
isAlignMargins()
Returns whether the left and right edges of the header and footer are
lined up with the left and right margins of the sheet.
|
boolean |
isCurrentSheet() |
boolean |
isDiffFirst()
Returns whether the first page use a different header and footer.
|
boolean |
isDiffOddEven()
Returns whether the odd and even pages use a different header and footer
|
boolean |
isScaleWithDoc()
Returns whether the header and footer is scaled with the sheet.
|
protected void |
serialize(ContinuableRecordOutput out)
Serializes this record's content to the supplied data output.
|
void |
setAlignMargins(boolean flag) |
void |
setDiffFirst(boolean flag)
Sets whether the first page use a different header and footer.
|
void |
setDiffOddEven(boolean flag)
Set whether the odd and even pages use a different header and footer.
|
void |
setFooterEven(java.lang.String str) |
void |
setFooterFirst(java.lang.String str) |
void |
setGuid(byte[] guid) |
void |
setHeaderEven(java.lang.String str) |
void |
setHeaderFirst(java.lang.String str) |
void |
setScaleWithDoc(boolean flag) |
java.lang.String |
toString()
get a string representation of the record (for biffview/debugging)
|
getRecordSize, serialize
cloneViaReserialise, serialize
public static final short sid
public HeaderFooterRecord()
public HeaderFooterRecord(RecordInputStream in)
in
- the RecordInputstream to read the record frompublic short getSid()
Record
public byte[] getGuid()
If it is zero, it means the current sheet. Otherwise, this field MUST match the guid field
of the preceding UserSViewBegin
record.
public void setGuid(byte[] guid)
public boolean isCurrentSheet()
public boolean isDiffOddEven()
public void setDiffOddEven(boolean flag)
flag
- public boolean isDiffFirst()
public void setDiffFirst(boolean flag)
flag
- public boolean isScaleWithDoc()
public void setScaleWithDoc(boolean flag)
public boolean isAlignMargins()
public void setAlignMargins(boolean flag)
public java.lang.String getHeaderEven()
public void setHeaderEven(java.lang.String str)
public java.lang.String getFooterEven()
public void setFooterEven(java.lang.String str)
public java.lang.String getHeaderFirst()
public void setHeaderFirst(java.lang.String str)
public java.lang.String getFooterFirst()
public void setFooterFirst(java.lang.String str)
public java.lang.String toString()
Record
protected void serialize(ContinuableRecordOutput out)
ContinuableRecord
LittleEndianOutput
methods. Methods from ContinuableRecordOutput
can be used to serialize strings (with ContinueRecord
s being written as required).
If necessary, implementors can explicitly start ContinueRecord
s (regardless of the
amount of remaining space).serialize
in class ContinuableRecord
out
- a data output streamCopyright © 2005-2010 Potix Corporation. All Rights Reserved.