Methods Summary |
---|
public java.lang.Object | clone()
DefaultColWidthRecord rec = new DefaultColWidthRecord();
rec.field_1_col_width = field_1_col_width;
return rec;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_col_width = in.readShort();
|
public short | getColWidth()get the default column width
return field_1_col_width;
|
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, getColWidth());
return getRecordSize();
|
public void | setColWidth(short height)set the default column width
field_1_col_width = height;
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[DEFAULTCOLWIDTH]\n");
buffer.append(" .colwidth = ")
.append(Integer.toHexString(getColWidth())).append("\n");
buffer.append("[/DEFAULTCOLWIDTH]\n");
return buffer.toString();
|
protected void | validateSid(short id)
if (id != sid)
{
throw new RecordFormatException("NOT A DefaultColWidth RECORD");
}
|