Methods Summary |
---|
public java.lang.Object | clone()
ColumnInfoRecord rec = new ColumnInfoRecord();
rec.field_1_first_col = field_1_first_col;
rec.field_2_last_col = field_2_last_col;
rec.field_3_col_width = field_3_col_width;
rec.field_4_xf_index = field_4_xf_index;
rec.field_5_options = field_5_options;
rec.field_6_reserved = field_6_reserved;
return rec;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_first_col = in.readShort();
field_2_last_col = in.readShort();
field_3_col_width = in.readShort();
field_4_xf_index = in.readShort();
field_5_options = in.readShort();
field_6_reserved = in.readShort();
|
public boolean | getCollapsed()get whether the cells are collapsed
return collapsed.isSet(field_5_options);
|
public short | getColumnWidth()get the columns' width in 1/256 of a character width
return field_3_col_width;
|
public short | getFirstColumn()get the first column this record defines formatting info for
return field_1_first_col;
|
public boolean | getHidden()get whether or not these cells are hidden
return hidden.isSet(field_5_options);
|
public short | getLastColumn()get the last column this record defines formatting info for
return field_2_last_col;
|
public short | getOptions()get the options bitfield - use the bitsetters instead
return field_5_options;
|
public short | getOutlineLevel()get the outline level for the cells
return outlevel.getShortValue(field_5_options);
|
public int | getRecordSize()
return 16;
|
public short | getSid()
return sid;
|
public short | getXFIndex()get the columns' default format info
return field_4_xf_index;
|
public int | serialize(int offset, byte[] data)
LittleEndian.putShort(data, 0 + offset, sid);
LittleEndian.putShort(data, 2 + offset, ( short ) 12);
LittleEndian.putShort(data, 4 + offset, getFirstColumn());
LittleEndian.putShort(data, 6 + offset, getLastColumn());
LittleEndian.putShort(data, 8 + offset, getColumnWidth());
LittleEndian.putShort(data, 10 + offset, getXFIndex());
LittleEndian.putShort(data, 12 + offset, getOptions());
LittleEndian.putShort(data, 14 + offset, field_6_reserved);
return getRecordSize();
|
public void | setCollapsed(boolean iscollapsed)set whether the cells are collapsed
field_5_options = collapsed.setShortBoolean(field_5_options,
iscollapsed);
|
public void | setColumnWidth(short cw)set the columns' width in 1/256 of a character width
field_3_col_width = cw;
|
public void | setFirstColumn(short fc)set the first column this record defines formatting info for
field_1_first_col = fc;
|
public void | setHidden(boolean ishidden)set whether or not these cells are hidden
field_5_options = hidden.setShortBoolean(field_5_options, ishidden);
|
public void | setLastColumn(short lc)set the last column this record defines formatting info for
field_2_last_col = lc;
|
public void | setOptions(short options)set the options bitfield - use the bitsetters instead
field_5_options = options;
|
public void | setOutlineLevel(short olevel)set the outline level for the cells
field_5_options = outlevel.setShortValue(field_5_options, olevel);
|
public void | setXFIndex(short xfi)set the columns' default format info
field_4_xf_index = xfi;
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[COLINFO]\n");
buffer.append("colfirst = ").append(getFirstColumn())
.append("\n");
buffer.append("collast = ").append(getLastColumn())
.append("\n");
buffer.append("colwidth = ").append(getColumnWidth())
.append("\n");
buffer.append("xfindex = ").append(getXFIndex()).append("\n");
buffer.append("options = ").append(getOptions()).append("\n");
buffer.append(" hidden = ").append(getHidden()).append("\n");
buffer.append(" olevel = ").append(getOutlineLevel())
.append("\n");
buffer.append(" collapsed = ").append(getCollapsed())
.append("\n");
buffer.append("[/COLINFO]\n");
return buffer.toString();
|
protected void | validateSid(short id)
if (id != sid)
{
throw new RecordFormatException("NOT A COLINFO RECORD!!");
}
|