Methods Summary |
---|
public java.lang.Object | clone()
PrintGridlinesRecord rec = new PrintGridlinesRecord();
rec.field_1_print_gridlines = field_1_print_gridlines;
return rec;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_print_gridlines = in.readShort();
|
public boolean | getPrintGridlines()get whether or not to print the gridlines (and make your spreadsheet ugly)
return (field_1_print_gridlines == 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_print_gridlines);
return getRecordSize();
|
public void | setPrintGridlines(boolean pg)set whether or not to print the gridlines (and make your spreadsheet ugly)
if (pg == true)
{
field_1_print_gridlines = 1;
}
else
{
field_1_print_gridlines = 0;
}
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[PRINTGRIDLINES]\n");
buffer.append(" .printgridlines = ").append(getPrintGridlines())
.append("\n");
buffer.append("[/PRINTGRIDLINES]\n");
return buffer.toString();
|
protected void | validateSid(short id)
if (id != sid)
{
throw new RecordFormatException("NOT A PrintGridlines RECORD");
}
|