Class MTRSettingsRecord

  • All Implemented Interfaces:
    Duplicatable, GenericRecord

    public class MTRSettingsRecord
    extends StandardRecord
    [MS-XLS].pdf 2.4.173 MTRSettings page 343 Multithreaded calculation settings.
    Author:
    henrichen@zkoss.org
    • Constructor Detail

      • MTRSettingsRecord

        public MTRSettingsRecord()
    • Method Detail

      • getSid

        public short getSid()
        Description copied from class: Record
        return the non static version of the id for this record.
        Specified by:
        getSid in class Record
        Returns:
        he id for this record
      • getUserThreadCount

        public int getUserThreadCount()
        Returns count of calculation threads. Must between 1 ~ 0x400. If either fMTREnabled or fUserSeetThreadCount is false, ignore this value
        Returns:
      • setUserThreadCount

        public void setUserThreadCount​(int count)
      • isMTREnabled

        public boolean isMTREnabled()
        Returns whether the multi-threaded calculation is enabled.
        Returns:
      • isUserSetThreadCount

        public boolean isUserSetThreadCount()
        Returns whether the thread count was manually specified by the user.
        Returns:
      • setMTREnabled

        public void setMTREnabled​(boolean flag)
      • setUserSetThreadCount

        public void setUserSetThreadCount​(boolean flag)
      • serialize

        public void serialize​(LittleEndianOutput out)
        Description copied from class: StandardRecord
        Write the data content of this BIFF record. The 'ushort sid' and 'ushort size' header fields have already been written by the superclass.

        The number of bytes written must equal the record size reported by RecordBase.getRecordSize()} minus four ( record header consisting of a 'ushort sid' and 'ushort reclength' has already been written by their superclass).

        Specified by:
        serialize in class StandardRecord
        Parameters:
        out - the output object