public class WindowOneRecord extends Record
Description: Stores the attributes of the workbook window. This is basically so the gui knows how big to make the window holding the spreadsheet document.
REFERENCE: PG 421 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)
Modifier and Type | Field and Description |
---|---|
static short |
sid |
Constructor and Description |
---|
WindowOneRecord() |
WindowOneRecord(RecordInputStream in)
Constructs a WindowOne record and sets its fields appropriately.
|
Modifier and Type | Method and Description |
---|---|
protected void |
fillFields(RecordInputStream in)
called by the constructor, should set class level fields.
|
short |
getDisplayedTab()
get the displayed tab number
|
boolean |
getDisplayHorizontalScrollbar()
get whether to display the horizontal scrollbar or not
|
boolean |
getDisplayTabs()
get whether to display the tabs or not
|
boolean |
getDisplayVerticalScrollbar()
get whether to display the vertical scrollbar or not
|
short |
getHeight()
get the height of the window
|
boolean |
getHidden()
get whether the window is hidden or not
|
short |
getHorizontalHold()
get the horizontal position of the window (in 1/20ths of a point)
|
boolean |
getIconic()
get whether the window has been iconized or not
|
short |
getNumSelectedTabs()
get the number of selected tabs
|
short |
getOptions()
get the options bitmask (see bit setters)
|
int |
getRecordSize()
gives the current serialized size of the record.
|
short |
getSelectedTab()
get the selected tab number
|
short |
getSid()
return the non static version of the id for this record.
|
short |
getTabWidthRatio()
ratio of the width of the tabs to the horizontal scrollbar
|
short |
getVerticalHold()
get the vertical position of the window (in 1/20ths of a point)
|
short |
getWidth()
get the width of the window
|
int |
serialize(int offset,
byte[] data)
called by the class that is responsible for writing this sucker.
|
void |
setDisplayedTab(short t)
set the displayed tab number
|
void |
setDisplayHorizonalScrollbar(boolean scroll)
set whether to display the horizontal scrollbar or not
|
void |
setDisplayTabs(boolean disptabs)
set whether to display the tabs or not
|
void |
setDisplayVerticalScrollbar(boolean scroll)
set whether to display the vertical scrollbar or not
|
void |
setHeight(short h)
set teh height of the window
|
void |
setHidden(boolean ishidden)
set whether the window is hidden or not
|
void |
setHorizontalHold(short h)
set the horizontal position of the window (in 1/20ths of a point)
|
void |
setIconic(boolean isiconic)
set whether the window has been iconized or not
|
void |
setNumSelectedTabs(short n)
set the number of selected tabs
|
void |
setOptions(short o)
set the options bitmask (see bit setters)
|
void |
setSelectedTab(short s)
set the selected tab number
|
void |
setTabWidthRatio(short r)
ratio of the width of the tabs to the horizontal scrollbar
|
void |
setVerticalHold(short v)
set the vertical position of the window (in 1/20ths of a point)
|
void |
setWidth(short w)
set the width of the window
|
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.
|
clone, isInValueSection, isValue, serialize
public static final short sid
public WindowOneRecord()
public WindowOneRecord(RecordInputStream in)
in
- the RecordInputstream to read the record fromprotected 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 setHorizontalHold(short h)
h
- - horizontal locationpublic void setVerticalHold(short v)
v
- - vertical locationpublic void setWidth(short w)
w
- widthpublic void setHeight(short h)
h
- heightpublic void setOptions(short o)
o
- - the bitmaskpublic void setHidden(boolean ishidden)
ishidden
- or notpublic void setIconic(boolean isiconic)
isiconic
- iconize or notpublic void setDisplayHorizonalScrollbar(boolean scroll)
scroll
- display or notpublic void setDisplayVerticalScrollbar(boolean scroll)
scroll
- display or notpublic void setDisplayTabs(boolean disptabs)
disptabs
- display or notpublic void setSelectedTab(short s)
s
- tab numberpublic void setDisplayedTab(short t)
t
- tab numberpublic void setNumSelectedTabs(short n)
n
- number of tabspublic void setTabWidthRatio(short r)
r
- ratiopublic short getHorizontalHold()
public short getVerticalHold()
public short getWidth()
public short getHeight()
public short getOptions()
public boolean getHidden()
public boolean getIconic()
public boolean getDisplayHorizontalScrollbar()
public boolean getDisplayVerticalScrollbar()
public boolean getDisplayTabs()
public short getSelectedTab()
public short getDisplayedTab()
public short getNumSelectedTabs()
public short getTabWidthRatio()
public String toString()
Record
public int serialize(int offset, byte[] data)
Record
public int getRecordSize()
Record
getRecordSize
in class Record
Copyright © 2014 Open Microscopy Environment