Top Description Fields Constructors Methods
org.apache.poi.hssf.record

public final Class CommonObjectDataSubRecord

extends SubRecord
Class Inheritance
Static Imports
org.apache.poi.util.GenericRecordUtil.getBitsAsString

The common object data record is used to store all common preferences for an excel object.

Field Summary

Modifier and TypeField and Description
private static final BitField
private static final BitField
private short
private int
private short
private int
private int
private int
private static final BitField
public static final short
public static final short
public static final short
public static final short
public static final short
public static final short
public static final short
public static final short
public static final short
public static final short
public static final short
public static final short
public static final short
public static final short
public static final short
public static final short
public static final short
public static final short
public static final short
public static final short
public static final short
public static final short
public static final short
public static final short
public static final short
public static final short
public static final short
public static final short
public static final short
public static final short
public static final short
private static final BitField
public static final short

Constructor Summary

AccessConstructor and Description
public
public
public
pack-priv

Method Summary

Modifier and TypeMethod and Description
public CommonObjectDataSubRecord
protected int
public Map<String, Supplier<?>>
public SubRecord.SubRecordTypes
public int

Returns:

the object id field
getObjectId
()

Get the object id field for the CommonObjectData record.

public short

Returns:

One of OBJECT_TYPE_GROUP OBJECT_TYPE_LINE OBJECT_TYPE_RECTANGLE OBJECT_TYPE_OVAL OBJECT_TYPE_ARC OBJECT_TYPE_CHART OBJECT_TYPE_TEXT OBJECT_TYPE_BUTTON OBJECT_TYPE_PICTURE OBJECT_TYPE_POLYGON OBJECT_TYPE_RESERVED1 OBJECT_TYPE_CHECKBOX OBJECT_TYPE_OPTION_BUTTON OBJECT_TYPE_EDIT_BOX OBJECT_TYPE_LABEL OBJECT_TYPE_DIALOG_BOX OBJECT_TYPE_SPINNER OBJECT_TYPE_SCROLL_BAR OBJECT_TYPE_LIST_BOX OBJECT_TYPE_GROUP_BOX OBJECT_TYPE_COMBO_BOX OBJECT_TYPE_RESERVED2 OBJECT_TYPE_RESERVED3 OBJECT_TYPE_RESERVED4 OBJECT_TYPE_RESERVED5 OBJECT_TYPE_COMMENT OBJECT_TYPE_RESERVED6 OBJECT_TYPE_RESERVED7 OBJECT_TYPE_RESERVED8 OBJECT_TYPE_RESERVED9 OBJECT_TYPE_MICROSOFT_OFFICE_DRAWING
getObjectType
()

Get the object type field for the CommonObjectData record.

public short

Returns:

the option field
getOption
()

Get the option field for the CommonObjectData record.

public int

Returns:

the reserved1 field
getReserved1
()

Get the reserved1 field for the CommonObjectData record.

public int

Returns:

the reserved2 field
getReserved2
()

Get the reserved2 field for the CommonObjectData record.

public int

Returns:

the reserved3 field
getReserved3
()

Get the reserved3 field for the CommonObjectData record.

public short

Returns:

the record sid
getSid
()

public boolean

Returns:

the autofill field value.
isAutofill
()

whether object uses an automatic fill style

public boolean

Returns:

the autoline field value.
isAutoline
()

whether object uses an automatic line style

public boolean

Returns:

the locked field value.
isLocked
()

true if object is locked when sheet has been protected

public boolean

Returns:

the printable field value.
isPrintable
()

object appears when printed

public void
public void
setAutofill(boolean
true if object uses an automatic fill style
value
)

Sets the autofill field value.

public void
setAutoline(boolean
true if object uses an automatic line style
value
)

Sets the autoline field value.

public void
setLocked(boolean
true if object is locked when sheet has been protected
value
)

Sets the locked field value.

public void
setObjectId(int
the object id field
field_2_objectId
)

Set the object id field for the CommonObjectData record.

public void
setObjectType(short
One of OBJECT_TYPE_GROUP OBJECT_TYPE_LINE OBJECT_TYPE_RECTANGLE OBJECT_TYPE_OVAL OBJECT_TYPE_ARC OBJECT_TYPE_CHART OBJECT_TYPE_TEXT OBJECT_TYPE_BUTTON OBJECT_TYPE_PICTURE OBJECT_TYPE_POLYGON OBJECT_TYPE_RESERVED1 OBJECT_TYPE_CHECKBOX OBJECT_TYPE_OPTION_BUTTON OBJECT_TYPE_EDIT_BOX OBJECT_TYPE_LABEL OBJECT_TYPE_DIALOG_BOX OBJECT_TYPE_SPINNER OBJECT_TYPE_SCROLL_BAR OBJECT_TYPE_LIST_BOX OBJECT_TYPE_GROUP_BOX OBJECT_TYPE_COMBO_BOX OBJECT_TYPE_RESERVED2 OBJECT_TYPE_RESERVED3 OBJECT_TYPE_RESERVED4 OBJECT_TYPE_RESERVED5 OBJECT_TYPE_COMMENT OBJECT_TYPE_RESERVED6 OBJECT_TYPE_RESERVED7 OBJECT_TYPE_RESERVED8 OBJECT_TYPE_RESERVED9 OBJECT_TYPE_MICROSOFT_OFFICE_DRAWING
field_1_objectType
)

Set the object type field for the CommonObjectData record.

public void
setOption(short
the option field
field_3_option
)

Set the option field for the CommonObjectData record.

public void
setPrintable(boolean
true if object appears when printed
value
)

Sets the printable field value.

public void
setReserved1(int
the reserved1 field
field_4_reserved1
)

Set the reserved1 field for the CommonObjectData record.

public void
setReserved2(int
the reserved2 field
field_5_reserved2
)

Set the reserved2 field for the CommonObjectData record.

public void
setReserved3(int
the reserved3 field
field_6_reserved3
)

Set the reserved3 field for the CommonObjectData record.

Inherited from org.apache.poi.hssf.record.SubRecord:
createSubRecordgetMaxRecordLengthisTerminatingserializesetMaxRecordLengthtoString

Field Detail

autofillback to summary
private static final BitField autofill
autolineback to summary
private static final BitField autoline
field_1_objectTypeback to summary
private short field_1_objectType
field_2_objectIdback to summary
private int field_2_objectId
field_3_optionback to summary
private short field_3_option
field_4_reserved1back to summary
private int field_4_reserved1
field_5_reserved2back to summary
private int field_5_reserved2
field_6_reserved3back to summary
private int field_6_reserved3
lockedback to summary
private static final BitField locked
OBJECT_TYPE_ARCback to summary
public static final short OBJECT_TYPE_ARC
OBJECT_TYPE_BUTTONback to summary
public static final short OBJECT_TYPE_BUTTON
OBJECT_TYPE_CHARTback to summary
public static final short OBJECT_TYPE_CHART
OBJECT_TYPE_CHECKBOXback to summary
public static final short OBJECT_TYPE_CHECKBOX
OBJECT_TYPE_COMBO_BOXback to summary
public static final short OBJECT_TYPE_COMBO_BOX
OBJECT_TYPE_COMMENTback to summary
public static final short OBJECT_TYPE_COMMENT
OBJECT_TYPE_DIALOG_BOXback to summary
public static final short OBJECT_TYPE_DIALOG_BOX
OBJECT_TYPE_EDIT_BOXback to summary
public static final short OBJECT_TYPE_EDIT_BOX
OBJECT_TYPE_GROUPback to summary
public static final short OBJECT_TYPE_GROUP
OBJECT_TYPE_GROUP_BOXback to summary
public static final short OBJECT_TYPE_GROUP_BOX
OBJECT_TYPE_LABELback to summary
public static final short OBJECT_TYPE_LABEL
OBJECT_TYPE_LINEback to summary
public static final short OBJECT_TYPE_LINE
OBJECT_TYPE_LIST_BOXback to summary
public static final short OBJECT_TYPE_LIST_BOX
OBJECT_TYPE_MICROSOFT_OFFICE_DRAWINGback to summary
public static final short OBJECT_TYPE_MICROSOFT_OFFICE_DRAWING
OBJECT_TYPE_OPTION_BUTTONback to summary
public static final short OBJECT_TYPE_OPTION_BUTTON
OBJECT_TYPE_OVALback to summary
public static final short OBJECT_TYPE_OVAL
OBJECT_TYPE_PICTUREback to summary
public static final short OBJECT_TYPE_PICTURE
OBJECT_TYPE_POLYGONback to summary
public static final short OBJECT_TYPE_POLYGON
OBJECT_TYPE_RECTANGLEback to summary
public static final short OBJECT_TYPE_RECTANGLE
OBJECT_TYPE_RESERVED1back to summary
public static final short OBJECT_TYPE_RESERVED1
OBJECT_TYPE_RESERVED2back to summary
public static final short OBJECT_TYPE_RESERVED2
OBJECT_TYPE_RESERVED3back to summary
public static final short OBJECT_TYPE_RESERVED3
OBJECT_TYPE_RESERVED4back to summary
public static final short OBJECT_TYPE_RESERVED4
OBJECT_TYPE_RESERVED5back to summary
public static final short OBJECT_TYPE_RESERVED5
OBJECT_TYPE_RESERVED6back to summary
public static final short OBJECT_TYPE_RESERVED6
OBJECT_TYPE_RESERVED7back to summary
public static final short OBJECT_TYPE_RESERVED7
OBJECT_TYPE_RESERVED8back to summary
public static final short OBJECT_TYPE_RESERVED8
OBJECT_TYPE_RESERVED9back to summary
public static final short OBJECT_TYPE_RESERVED9
OBJECT_TYPE_SCROLL_BARback to summary
public static final short OBJECT_TYPE_SCROLL_BAR
OBJECT_TYPE_SPINNERback to summary
public static final short OBJECT_TYPE_SPINNER
OBJECT_TYPE_TEXTback to summary
public static final short OBJECT_TYPE_TEXT
printableback to summary
private static final BitField printable
sidback to summary
public static final short sid

Constructor Detail

CommonObjectDataSubRecordback to summary
public CommonObjectDataSubRecord()
CommonObjectDataSubRecordback to summary
public CommonObjectDataSubRecord(CommonObjectDataSubRecord other)
CommonObjectDataSubRecordback to summary
public CommonObjectDataSubRecord(LittleEndianInput in, int size)
CommonObjectDataSubRecordback to summary
pack-priv CommonObjectDataSubRecord(LittleEndianInput in, int size, int cmoOt)

Method Detail

copyback to summary
public CommonObjectDataSubRecord copy()

Implements abstract org.apache.poi.hssf.record.SubRecord.copy.

Implements org.apache.poi.common.Duplicatable.copy.

Returns:CommonObjectDataSubRecord

Doc from org.apache.poi.common.Duplicatable.copy.

a deep copy of the implementing class / instance

Annotations
@Override
getDataSizeback to summary
protected int getDataSize()

Implements abstract org.apache.poi.hssf.record.SubRecord.getDataSize.

Returns:int

Doc from org.apache.poi.hssf.record.SubRecord.getDataSize.

the size of the data for this record (which is always 4 bytes less than the total record size). Note however, that ushort encoded after the record sid is usually but not always the data size.

Annotations
@Override
getGenericPropertiesback to summary
public Map<String, Supplier<?>> getGenericProperties()

Implements org.apache.poi.common.usermodel.GenericRecord.getGenericProperties.

Annotations
@Override
getGenericRecordTypeback to summary
public SubRecord.SubRecordTypes getGenericRecordType()

Overrides default org.apache.poi.common.usermodel.GenericRecord.getGenericRecordType.

Implements abstract org.apache.poi.hssf.record.SubRecord.getGenericRecordType.

Annotations
@Override
getObjectIdback to summary
public int getObjectId()

Get the object id field for the CommonObjectData record.

Returns:int

the object id field

getObjectTypeback to summary
public short getObjectType()

Get the object type field for the CommonObjectData record.

Returns:short

One of OBJECT_TYPE_GROUP OBJECT_TYPE_LINE OBJECT_TYPE_RECTANGLE OBJECT_TYPE_OVAL OBJECT_TYPE_ARC OBJECT_TYPE_CHART OBJECT_TYPE_TEXT OBJECT_TYPE_BUTTON OBJECT_TYPE_PICTURE OBJECT_TYPE_POLYGON OBJECT_TYPE_RESERVED1 OBJECT_TYPE_CHECKBOX OBJECT_TYPE_OPTION_BUTTON OBJECT_TYPE_EDIT_BOX OBJECT_TYPE_LABEL OBJECT_TYPE_DIALOG_BOX OBJECT_TYPE_SPINNER OBJECT_TYPE_SCROLL_BAR OBJECT_TYPE_LIST_BOX OBJECT_TYPE_GROUP_BOX OBJECT_TYPE_COMBO_BOX OBJECT_TYPE_RESERVED2 OBJECT_TYPE_RESERVED3 OBJECT_TYPE_RESERVED4 OBJECT_TYPE_RESERVED5 OBJECT_TYPE_COMMENT OBJECT_TYPE_RESERVED6 OBJECT_TYPE_RESERVED7 OBJECT_TYPE_RESERVED8 OBJECT_TYPE_RESERVED9 OBJECT_TYPE_MICROSOFT_OFFICE_DRAWING

getOptionback to summary
public short getOption()

Get the option field for the CommonObjectData record.

Returns:short

the option field

getReserved1back to summary
public int getReserved1()

Get the reserved1 field for the CommonObjectData record.

Returns:int

the reserved1 field

getReserved2back to summary
public int getReserved2()

Get the reserved2 field for the CommonObjectData record.

Returns:int

the reserved2 field

getReserved3back to summary
public int getReserved3()

Get the reserved3 field for the CommonObjectData record.

Returns:int

the reserved3 field

getSidback to summary
public short getSid()
Returns:short

the record sid

isAutofillback to summary
public boolean isAutofill()

whether object uses an automatic fill style

Returns:boolean

the autofill field value.

isAutolineback to summary
public boolean isAutoline()

whether object uses an automatic line style

Returns:boolean

the autoline field value.

isLockedback to summary
public boolean isLocked()

true if object is locked when sheet has been protected

Returns:boolean

the locked field value.

isPrintableback to summary
public boolean isPrintable()

object appears when printed

Returns:boolean

the printable field value.

serializeback to summary
public void serialize(LittleEndianOutput out)

Implements abstract org.apache.poi.hssf.record.SubRecord.serialize.

Annotations
@Override
setAutofillback to summary
public void setAutofill(boolean value)

Sets the autofill field value. whether object uses an automatic fill style

Parameters
value:boolean

true if object uses an automatic fill style

setAutolineback to summary
public void setAutoline(boolean value)

Sets the autoline field value. whether object uses an automatic line style

Parameters
value:boolean

true if object uses an automatic line style

setLockedback to summary
public void setLocked(boolean value)

Sets the locked field value. true if object is locked when sheet has been protected

Parameters
value:boolean

true if object is locked when sheet has been protected

setObjectIdback to summary
public void setObjectId(int field_2_objectId)

Set the object id field for the CommonObjectData record.

Parameters
field_2_objectId:int

the object id field

setObjectTypeback to summary
public void setObjectType(short field_1_objectType)

Set the object type field for the CommonObjectData record.

Parameters
field_1_objectType:short

One of OBJECT_TYPE_GROUP OBJECT_TYPE_LINE OBJECT_TYPE_RECTANGLE OBJECT_TYPE_OVAL OBJECT_TYPE_ARC OBJECT_TYPE_CHART OBJECT_TYPE_TEXT OBJECT_TYPE_BUTTON OBJECT_TYPE_PICTURE OBJECT_TYPE_POLYGON OBJECT_TYPE_RESERVED1 OBJECT_TYPE_CHECKBOX OBJECT_TYPE_OPTION_BUTTON OBJECT_TYPE_EDIT_BOX OBJECT_TYPE_LABEL OBJECT_TYPE_DIALOG_BOX OBJECT_TYPE_SPINNER OBJECT_TYPE_SCROLL_BAR OBJECT_TYPE_LIST_BOX OBJECT_TYPE_GROUP_BOX OBJECT_TYPE_COMBO_BOX OBJECT_TYPE_RESERVED2 OBJECT_TYPE_RESERVED3 OBJECT_TYPE_RESERVED4 OBJECT_TYPE_RESERVED5 OBJECT_TYPE_COMMENT OBJECT_TYPE_RESERVED6 OBJECT_TYPE_RESERVED7 OBJECT_TYPE_RESERVED8 OBJECT_TYPE_RESERVED9 OBJECT_TYPE_MICROSOFT_OFFICE_DRAWING

setOptionback to summary
public void setOption(short field_3_option)

Set the option field for the CommonObjectData record.

Parameters
field_3_option:short

the option field

setPrintableback to summary
public void setPrintable(boolean value)

Sets the printable field value. object appears when printed

Parameters
value:boolean

true if object appears when printed

setReserved1back to summary
public void setReserved1(int field_4_reserved1)

Set the reserved1 field for the CommonObjectData record.

Parameters
field_4_reserved1:int

the reserved1 field

setReserved2back to summary
public void setReserved2(int field_5_reserved2)

Set the reserved2 field for the CommonObjectData record.

Parameters
field_5_reserved2:int

the reserved2 field

setReserved3back to summary
public void setReserved3(int field_6_reserved3)

Set the reserved3 field for the CommonObjectData record.

Parameters
field_6_reserved3:int

the reserved3 field