jxl.biff
Class WorkspaceInformationRecord

java.lang.Object
  |
  +--jxl.biff.RecordData
        |
        +--jxl.biff.WritableRecordData
              |
              +--jxl.biff.WorkspaceInformationRecord
All Implemented Interfaces:
ByteData

public class WorkspaceInformationRecord
extends WritableRecordData

A record detailing whether the sheet is protected


Field Summary
private static int defaultOptions
           
private static int fitToPages
           
private  int wsoptions
          The options byte
 
Fields inherited from class jxl.biff.WritableRecordData
maxRecordLength
 
Fields inherited from class jxl.biff.RecordData
code, record
 
Constructor Summary
WorkspaceInformationRecord()
          Constructs this object from the raw data
WorkspaceInformationRecord(Record t)
          Constructs this object from the raw data
 
Method Summary
 byte[] getData()
          Gets the binary data for output to file
 boolean getFitToPages()
          Gets the fit to pages flag
 void setFitToPages(boolean b)
          Sets the fit to page flag
 
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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

wsoptions

private int wsoptions
The options byte

fitToPages

private static final int fitToPages

defaultOptions

private static final int defaultOptions
Constructor Detail

WorkspaceInformationRecord

public WorkspaceInformationRecord(Record t)
Constructs this object from the raw data
Parameters:
t - the raw data

WorkspaceInformationRecord

public WorkspaceInformationRecord()
Constructs this object from the raw data
Method Detail

getFitToPages

public boolean getFitToPages()
Gets the fit to pages flag
Returns:
TRUE if fit to pages is set

setFitToPages

public void setFitToPages(boolean b)
Sets the fit to page flag
Parameters:
b - fit to page indicator

getData

public byte[] getData()
Gets the binary data for output to file
Overrides:
getData in class WritableRecordData
Returns:
the binary data