Class FormattedColumn

java.lang.Object
com.brsanthu.dataexporter.model.Column
com.complexible.common.dataexporter.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(String name, String format, com.brsanthu.dataexporter.model.AlignType align)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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 Details

    • FormattedColumn

      public FormattedColumn(String name, String format, com.brsanthu.dataexporter.model.AlignType align)
  • Method Details

    • getMaxRowHeight

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

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