Search in sources :

Example 1 with NoteStructureSubRecord

use of org.apache.poi.hssf.record.NoteStructureSubRecord in project poi by apache.

the class HSSFComment method createObjRecord.

@Override
protected ObjRecord createObjRecord() {
    ObjRecord obj = new ObjRecord();
    CommonObjectDataSubRecord c = new CommonObjectDataSubRecord();
    c.setObjectType(OBJECT_TYPE_COMMENT);
    c.setLocked(true);
    c.setPrintable(true);
    c.setAutofill(false);
    c.setAutoline(true);
    NoteStructureSubRecord u = new NoteStructureSubRecord();
    EndSubRecord e = new EndSubRecord();
    obj.addSubRecord(c);
    obj.addSubRecord(u);
    obj.addSubRecord(e);
    return obj;
}
Also used : CommonObjectDataSubRecord(org.apache.poi.hssf.record.CommonObjectDataSubRecord) EndSubRecord(org.apache.poi.hssf.record.EndSubRecord) ObjRecord(org.apache.poi.hssf.record.ObjRecord) NoteStructureSubRecord(org.apache.poi.hssf.record.NoteStructureSubRecord)

Aggregations

CommonObjectDataSubRecord (org.apache.poi.hssf.record.CommonObjectDataSubRecord)1 EndSubRecord (org.apache.poi.hssf.record.EndSubRecord)1 NoteStructureSubRecord (org.apache.poi.hssf.record.NoteStructureSubRecord)1 ObjRecord (org.apache.poi.hssf.record.ObjRecord)1