Methods Summary |
---|
public java.lang.Object | clone()
CalcModeRecord rec = new CalcModeRecord();
rec.field_1_calcmode = field_1_calcmode;
return rec;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_calcmode = in.readShort();
|
public short | getCalcMode()get the calc mode flag for formulas
return field_1_calcmode;
|
public int | getRecordSize()
return 6;
|
public short | getSid()
return sid;
|
public int | serialize(int offset, byte[] data)
LittleEndian.putShort(data, 0 + offset, sid);
LittleEndian.putShort(data, 2 + offset, ( short ) 0x2);
LittleEndian.putShort(data, 4 + offset, getCalcMode());
return getRecordSize();
|
public void | setCalcMode(short calcmode)set the calc mode flag for formulas
field_1_calcmode = calcmode;
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[CALCMODE]\n");
buffer.append(" .calcmode = ")
.append(Integer.toHexString(getCalcMode())).append("\n");
buffer.append("[/CALCMODE]\n");
return buffer.toString();
|
protected void | validateSid(short id)
if (id != sid)
{
throw new RecordFormatException("NOT An Calc Mode RECORD");
}
|