Class 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.
    • 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: SubRecord
        Whether this record terminates the sub-record stream. There are two cases when this method must be overridden and return true - EndSubRecord (sid = 0x00) - LbsDataSubRecord (sid = 0x12)
        Overrides:
        isTerminating in class SubRecord
        Returns:
        true as LbsDataSubRecord is always the last sub-record
      • getDataSize

        protected int getDataSize()
        Specified by:
        getDataSize in class SubRecord
        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.
      • 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