Interface Sheet

    • Method Detail

      • setName

        void setName​(String value)
        Sets the value of the 'Name' attribute.
        Parameters:
        value - the new value of the 'Name' attribute.
        See Also:
        getName()
      • setDefaultRowHeight

        void setDefaultRowHeight​(float value)
        Sets the value of the 'Default Row Height' attribute.
        Parameters:
        value - the new value of the 'Default Row Height' attribute.
        See Also:
        getDefaultRowHeight()
      • setDefaultColumnWidth

        void setDefaultColumnWidth​(float value)
        Sets the value of the 'Default Column Width' attribute.
        Parameters:
        value - the new value of the 'Default Column Width' attribute.
        See Also:
        getDefaultColumnWidth()
      • setWorkbook

        void setWorkbook​(Workbook value)
        Sets the value of the 'Workbook' container reference.
        Parameters:
        value - the new value of the 'Workbook' container reference.
        See Also:
        getWorkbook()
      • addColumns

        void addColumns()
        Creates the necessary columns based on existing rows and cells.

        This method determines the maximum number of cells on each row and then ensures the number of columns matches this number of cells, creating columns as needed. Note this method won't remove existing columns if there are more than required given the number of cells.

        Clients shall call this method once all necessary rows and cells have been created, so that corresponding columns are automatically added to the model.

        Note that column information is not used when writing an Excel workbook. Only rows and cells information is mandatory.

      • addMergedRegion

        CellRegion addMergedRegion​(int firstRow,
                                   int lastRow,
                                   int firstColumn,
                                   int lastColumn)
        Creates a merged region for the specified rows and columns.
        Parameters:
        firstRow - the row at which the merged region starts.
        lastRow - the row at which the merged region ends.
        firstColumn - the column at which the merged region starts.
        lastColumn - the column at which the merged region ends.
        Returns:
        the created merged region.
      • addRow

        Row addRow()
        Creates a new row below the last known row of this sheet.
        Returns:
        the created row.