Methods Summary |
---|
public java.lang.Object | clone()
GridsetRecord rec = new GridsetRecord();
rec.field_1_gridset_flag = field_1_gridset_flag;
return rec;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_gridset_flag = in.readShort();
|
public boolean | getGridset()get whether the gridlines are shown during printing.
return (field_1_gridset_flag == 1);
|
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, field_1_gridset_flag);
return getRecordSize();
|
public void | setGridset(boolean gridset)set whether gridlines are visible when printing
if (gridset == true)
{
field_1_gridset_flag = 1;
}
else
{
field_1_gridset_flag = 0;
}
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[GRIDSET]\n");
buffer.append(" .gridset = ").append(getGridset())
.append("\n");
buffer.append("[/GRIDSET]\n");
return buffer.toString();
|
protected void | validateSid(short id)
if (id != sid)
{
throw new RecordFormatException("NOT A Gridset RECORD");
}
|