Package org.apache.poi.hssf.record
Class LbsDataSubRecord
- java.lang.Object
-
- org.apache.poi.hssf.record.SubRecord
-
- org.apache.poi.hssf.record.LbsDataSubRecord
-
- All Implemented Interfaces:
Duplicatable,GenericRecord
public class LbsDataSubRecord extends SubRecord
This structure specifies the properties of a list or drop-down list embedded object in a sheet.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLbsDataSubRecord.LbsDropDataThis structure specifies properties of the dropdown list control-
Nested classes/interfaces inherited from class org.apache.poi.hssf.record.SubRecord
SubRecord.SubRecordTypes
-
-
Field Summary
Fields Modifier and Type Field Description static intsid
-
Constructor Summary
Constructors Constructor Description LbsDataSubRecord(LbsDataSubRecord other)LbsDataSubRecord(LittleEndianInput in, int cbFContinued, int cmoOt)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LbsDataSubRecordcopy()protected intgetDataSize()PtggetFormula()Map<String,Supplier<?>>getGenericProperties()SubRecord.SubRecordTypesgetGenericRecordType()intgetNumberOfItems()booleanisTerminating()Whether this record terminates the sub-record stream.static LbsDataSubRecordnewAutoFilterInstance()voidserialize(LittleEndianOutput out)-
Methods inherited from class org.apache.poi.hssf.record.SubRecord
createSubRecord, getMaxRecordLength, serialize, setMaxRecordLength, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren
-
-
-
-
Field Detail
-
sid
public static final int sid
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LbsDataSubRecord
public LbsDataSubRecord(LbsDataSubRecord other)
-
LbsDataSubRecord
public LbsDataSubRecord(LittleEndianInput in, int cbFContinued, int cmoOt)
- Parameters:
in- the stream to read data fromcbFContinued- the seconf short in the record headercmoOt- the containing Obj'sCommonObjectDataSubRecord.field_1_objectType
-
-
Method Detail
-
newAutoFilterInstance
public static LbsDataSubRecord newAutoFilterInstance()
- Returns:
- a new instance of LbsDataSubRecord to construct auto-filters
- See Also:
HSSFCombobox
-
isTerminating
public boolean isTerminating()
Description copied from class:SubRecordWhether this record terminates the sub-record stream. There are two cases when this method must be overridden and returntrue- EndSubRecord (sid = 0x00) - LbsDataSubRecord (sid = 0x12)- Overrides:
isTerminatingin classSubRecord- Returns:
- true as LbsDataSubRecord is always the last sub-record
-
getDataSize
protected int getDataSize()
- Specified by:
getDataSizein classSubRecord- Returns:
- 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.
-
serialize
public void serialize(LittleEndianOutput out)
-
copy
public LbsDataSubRecord copy()
- Specified by:
copyin interfaceDuplicatable- Specified by:
copyin classSubRecord- Returns:
- a deep copy of the implementing class / instance
-
getFormula
public Ptg getFormula()
- Returns:
- the formula that specifies the range of cell values that are the items in this list.
-
getNumberOfItems
public int getNumberOfItems()
- Returns:
- the number of items in the list
-
getGenericRecordType
public SubRecord.SubRecordTypes getGenericRecordType()
- Specified by:
getGenericRecordTypein interfaceGenericRecord- Specified by:
getGenericRecordTypein classSubRecord
-
-