|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.hssf.record.Record org.apache.poi.hssf.record.WindowTwoRecord
public class WindowTwoRecord
Title: Window Two Record
Description: sheet window settings
REFERENCE: PG 422 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)
Field Summary | |
---|---|
static short |
sid
|
Constructor Summary | |
---|---|
WindowTwoRecord()
|
|
WindowTwoRecord(RecordInputStream in)
Constructs a WindowTwo record and sets its fields appropriately. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
protected void |
fillFields(RecordInputStream in)
called by the constructor, should set class level fields. |
boolean |
getArabic()
is this arabic? |
boolean |
getDefaultHeader()
get whether the window should display a default header |
boolean |
getDisplayFormulas()
get whether the window should display formulas |
boolean |
getDisplayGridlines()
get whether the window should display gridlines |
boolean |
getDisplayGuts()
get whether the outline symbols are displaed |
boolean |
getDisplayRowColHeadings()
get whether the window should display row and column headings |
boolean |
getDisplayZeros()
get whether the window should display zero values |
boolean |
getFreezePanes()
get whether the window should freeze panes |
boolean |
getFreezePanesNoSplit()
freeze unsplit panes or not |
int |
getHeaderColor()
get the palette index for the header color |
short |
getLeftCol()
get the leftmost column displayed in the window |
short |
getNormalZoom()
get the zoom magnification in normal view |
short |
getOptions()
get the options bitmask or just use the bit setters. |
short |
getPageBreakZoom()
zoom magification in page break view |
boolean |
getPaged()
Deprecated. use isActive() |
int |
getRecordSize()
gives the current serialized size of the record. |
int |
getReserved()
get the reserved bits - why would you do this? |
boolean |
getSavedInPageBreakPreview()
was the sheet saved in page break view |
boolean |
getSelected()
sheet tab is selected |
short |
getSid()
return the non static version of the id for this record. |
short |
getTopRow()
get the top row visible in the window |
boolean |
isActive()
is the sheet currently displayed in the window |
int |
serialize(int offset,
byte[] data)
called by the class that is responsible for writing this sucker. |
void |
setActive(boolean p)
is the sheet currently displayed in the window |
void |
setArabic(boolean isarabic)
is this arabic? |
void |
setDefaultHeader(boolean header)
set whether the window should display a default header |
void |
setDisplayFormulas(boolean formulas)
set whether the window should display formulas |
void |
setDisplayGridlines(boolean gridlines)
set whether the window should display gridlines |
void |
setDisplayGuts(boolean guts)
set whether the outline symbols are displaed |
void |
setDisplayRowColHeadings(boolean headings)
set whether the window should display row and column headings |
void |
setDisplayZeros(boolean zeros)
set whether the window should display zero values |
void |
setFreezePanes(boolean freezepanes)
set whether the window should freeze panes |
void |
setFreezePanesNoSplit(boolean freeze)
freeze unsplit panes or not |
void |
setHeaderColor(int color)
set the palette index for the header color |
void |
setLeftCol(short leftCol)
set the leftmost column displayed in the window |
void |
setNormalZoom(short zoom)
set the zoom magnification in normal view |
void |
setOptions(short options)
set the options bitmask or just use the bit setters. |
void |
setPageBreakZoom(short zoom)
zoom magification in page break view |
void |
setPaged(boolean p)
Deprecated. use setActive() |
void |
setReserved(int reserved)
set the reserved (don't do this) value |
void |
setSavedInPageBreakPreview(boolean p)
was the sheet saved in page break view |
void |
setSelected(boolean sel)
sheet tab is selected |
void |
setTopRow(short topRow)
set the top row visible in the window |
java.lang.String |
toString()
get a string representation of the record (for biffview/debugging) |
protected void |
validateSid(short id)
called by constructor, should throw runtime exception in the event of a record passed with a differing ID. |
Methods inherited from class org.apache.poi.hssf.record.Record |
---|
cloneViaReserialise, isInValueSection, isValue, serialize |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final short sid
Constructor Detail |
---|
public WindowTwoRecord()
public WindowTwoRecord(RecordInputStream in)
in
- the RecordInputstream to read the record fromMethod Detail |
---|
protected void validateSid(short id)
Record
validateSid
in class Record
id
- alleged id for this recordprotected void fillFields(RecordInputStream in)
Record
fillFields
in class Record
in
- the RecordInputstream to read the record frompublic void setOptions(short options)
options
- public void setDisplayFormulas(boolean formulas)
formulas
- or notpublic void setDisplayGridlines(boolean gridlines)
gridlines
- or notpublic void setDisplayRowColHeadings(boolean headings)
headings
- or notpublic void setFreezePanes(boolean freezepanes)
freezepanes
- freeze panes or notpublic void setDisplayZeros(boolean zeros)
zeros
- or notpublic void setDefaultHeader(boolean header)
header
- or notpublic void setArabic(boolean isarabic)
isarabic
- arabic or notpublic void setDisplayGuts(boolean guts)
guts
- symbols or notpublic void setFreezePanesNoSplit(boolean freeze)
freeze
- or notpublic void setSelected(boolean sel)
sel
- selected or notpublic void setActive(boolean p)
p
- displayed or notpublic void setPaged(boolean p)
public void setSavedInPageBreakPreview(boolean p)
p
- pagebreaksaved or notpublic void setTopRow(short topRow)
topRow
- top row visiblepublic void setLeftCol(short leftCol)
leftCol
- leftmost columnpublic void setHeaderColor(int color)
color
- public void setPageBreakZoom(short zoom)
zoom
- public void setNormalZoom(short zoom)
zoom
- public void setReserved(int reserved)
public short getOptions()
public boolean getDisplayFormulas()
public boolean getDisplayGridlines()
public boolean getDisplayRowColHeadings()
public boolean getFreezePanes()
public boolean getDisplayZeros()
public boolean getDefaultHeader()
public boolean getArabic()
public boolean getDisplayGuts()
public boolean getFreezePanesNoSplit()
public boolean getSelected()
public boolean isActive()
public boolean getPaged()
public boolean getSavedInPageBreakPreview()
public short getTopRow()
public short getLeftCol()
public int getHeaderColor()
public short getPageBreakZoom()
public short getNormalZoom()
public int getReserved()
public java.lang.String toString()
Record
toString
in class Record
public int serialize(int offset, byte[] data)
Record
serialize
in class Record
offset
- to begin writing atdata
- byte array containing instance data
public int getRecordSize()
Record
getRecordSize
in class Record
public short getSid()
Record
getSid
in class Record
public java.lang.Object clone()
clone
in class Record
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |