Interface XlsStyleGenerator<ID extends Serializable,​T extends AbstractEntity<ID>>

  • Type Parameters:
    ID - the type of the primary key
    T - the type of the entity
    All Known Implementing Classes:
    BaseXlsStyleGenerator

    public interface XlsStyleGenerator<ID extends Serializable,​T extends AbstractEntity<ID>>
    An interface for an Excel style generator to be used during export of data sets to Excel
    Author:
    bas.rutten
    • Method Detail

      • getHeaderStyle

        org.apache.poi.ss.usermodel.CellStyle getHeaderStyle​(int index)
        Returns the style to use for a cell in the header row
        Parameters:
        index - the index of the column
        Returns:
      • getCellStyle

        org.apache.poi.ss.usermodel.CellStyle getCellStyle​(int index,
                                                           T entity,
                                                           Object value,
                                                           AttributeModel am)
        Returns the cell style for a certain cell
        Parameters:
        index - the column index of the cell
        entity - the entity for which a value is displayed in the cell
        value - the value of the cell
        attributeModel - the attribute model
        Returns:
      • getTotalsStyle

        org.apache.poi.ss.usermodel.CellStyle getTotalsStyle​(Class<?> type,
                                                             AttributeModel am)
        Parameters:
        type -
        am -
        Returns: