Top Description Fields Constructors Methods
org.apache.poi.hssf.record

public final Class CalcModeRecord

extends StandardRecord
Class Inheritance
Imports
java.util.Map, java.util.function.Supplier, org.apache.poi.util.GenericRecordUtil, .LittleEndianOutput

Tells the gui whether to calculate formulas automatically, manually or automatically except for tables.
Version
2.0-pre
See Also
CalcCountRecord

Field Summary

Modifier and TypeField and Description
public static final short
AUTOMATIC

automatically calculate formulas (1)

public static final short
AUTOMATIC_EXCEPT_TABLES

automatically calculate formulas except for tables (-1)

private short
public static final short
MANUAL

manually calculate formulas (0)

public static final short

Constructor Summary

AccessConstructor and Description
public
public
public

Method Summary

Modifier and TypeMethod and Description
public CalcModeRecord
public short

Returns:

calcmode one of the three flags above
getCalcMode
()

get the calc mode flag for formulas

protected int
public Map<String, Supplier<?>>
public HSSFRecordTypes
public short
getSid()

Implements abstract org.apache.poi.hssf.record.Record.getSid.

return the non static version of the id for this record.

public void
serialize(LittleEndianOutput
the output object
out
)

Implements abstract org.apache.poi.hssf.record.StandardRecord.serialize.

Write the data content of this BIFF record.

public void
setCalcMode(short
one of the three flags above
calcmode
)

set the calc mode flag for formulas

Inherited from org.apache.poi.hssf.record.StandardRecord:
getRecordSizeserialize

Field Detail

AUTOMATICback to summary
public static final short AUTOMATIC

automatically calculate formulas (1)

AUTOMATIC_EXCEPT_TABLESback to summary
public static final short AUTOMATIC_EXCEPT_TABLES

automatically calculate formulas except for tables (-1)

field_1_calcmodeback to summary
private short field_1_calcmode
MANUALback to summary
public static final short MANUAL

manually calculate formulas (0)

sidback to summary
public static final short sid

Constructor Detail

CalcModeRecordback to summary
public CalcModeRecord()
CalcModeRecordback to summary
public CalcModeRecord(CalcModeRecord other)
CalcModeRecordback to summary
public CalcModeRecord(RecordInputStream in)

Method Detail

copyback to summary
public CalcModeRecord copy()

Implements abstract org.apache.poi.hssf.record.StandardRecord.copy.

Implements org.apache.poi.common.Duplicatable.copy.

Returns:CalcModeRecord

Doc from org.apache.poi.common.Duplicatable.copy.

a deep copy of the implementing class / instance

Annotations
@Override
getCalcModeback to summary
public short getCalcMode()

get the calc mode flag for formulas

Returns:short

calcmode one of the three flags above

See Also
MANUAL, AUTOMATIC, AUTOMATIC_EXCEPT_TABLES
getDataSizeback to summary
protected int getDataSize()

Implements abstract org.apache.poi.hssf.record.StandardRecord.getDataSize.

getGenericPropertiesback to summary
public Map<String, Supplier<?>> getGenericProperties()

Implements org.apache.poi.common.usermodel.GenericRecord.getGenericProperties.

Annotations
@Override
getGenericRecordTypeback to summary
public HSSFRecordTypes getGenericRecordType()

Overrides default org.apache.poi.common.usermodel.GenericRecord.getGenericRecordType.

Implements abstract org.apache.poi.hssf.record.Record.getGenericRecordType.

Annotations
@Override
getSidback to summary
public short getSid()

Implements abstract org.apache.poi.hssf.record.Record.getSid.

Doc from org.apache.poi.hssf.record.Record.getSid.

return the non static version of the id for this record.

Returns:short

he id for this record

serializeback to summary
public void serialize(LittleEndianOutput out)

Implements abstract org.apache.poi.hssf.record.StandardRecord.serialize.

Doc from org.apache.poi.hssf.record.StandardRecord.serialize.

Write the data content of this BIFF record. The 'ushort sid' and 'ushort size' header fields have already been written by the superclass.

The number of bytes written must equal the record size reported by org.apache.poi.hssf.record.Record#getRecordSize()} minus four ( record header consisting of a 'ushort sid' and 'ushort reclength' has already been written by their superclass).

Parameters
out:LittleEndianOutput

the output object

setCalcModeback to summary
public void setCalcMode(short calcmode)

set the calc mode flag for formulas

Parameters
calcmode:short

one of the three flags above

See Also
MANUAL, AUTOMATIC, AUTOMATIC_EXCEPT_TABLES