Class FormattedColumn

  • Direct Known Subclasses:
    MergedColumn, WordWrapStringColumn

    public class FormattedColumn
    extends com.brsanthu.dataexporter.model.Column
    Column that foramts values using String.format(String, Object...).
    Author:
    Evren Sirin
    • Field Summary

      • Fields inherited from class com.brsanthu.dataexporter.model.Column

        aligner, headerCellCssClass, headerCellCssId, headerCellCssStyle, rowCellCssClass, rowCellCssId, rowCellCssStyle
    • Constructor Summary

      Constructors 
      Constructor Description
      FormattedColumn​(java.lang.String name, java.lang.String format, com.brsanthu.dataexporter.model.AlignType align)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String format​(com.brsanthu.dataexporter.model.CellDetails cellDetails)  
      int getMaxRowHeight​(com.brsanthu.dataexporter.model.CellDetails cellDetails)  
      • Methods inherited from class com.brsanthu.dataexporter.model.Column

        align, align, align, align, getAlign, getCellValueGenerator, getHeaderCellCssClass, getHeaderCellCssId, getHeaderCellCssStyle, getMaxRowHeight, getMaxRowHeight, getName, getRowCellCssClass, getRowCellCssId, getRowCellCssStyle, getTitle, getTitle2, getTitle3, getWidth, isGeneratesOwnData, isNillable, setAlign, setCellValueGenerator, setGeneratesOwnData, setHeaderCellCssClass, setHeaderCellCssId, setHeaderCellCssStyle, setName, setNillable, setRowCellCssClass, setRowCellCssId, setRowCellCssStyle, setTitle, setTitle2, setTitle3, setWidth
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FormattedColumn

        public FormattedColumn​(java.lang.String name,
                               java.lang.String format,
                               com.brsanthu.dataexporter.model.AlignType align)
    • Method Detail

      • getMaxRowHeight

        public int getMaxRowHeight​(com.brsanthu.dataexporter.model.CellDetails cellDetails)
        Specified by:
        getMaxRowHeight in class com.brsanthu.dataexporter.model.Column
      • format

        public java.lang.String format​(com.brsanthu.dataexporter.model.CellDetails cellDetails)
        Specified by:
        format in class com.brsanthu.dataexporter.model.Column