Class WordWrapStringColumn
- java.lang.Object
-
- com.brsanthu.dataexporter.model.Column
-
- com.complexible.common.dataexporter.FormattedColumn
-
- com.complexible.common.dataexporter.WordWrapStringColumn
-
- Direct Known Subclasses:
RDFValueColumn
public class WordWrapStringColumn extends FormattedColumn
A simple extension of StringColumn class that fixes the bug in calculating the max row height when word wrapping introduces new lines.- Author:
- Evren Sirin
-
-
Constructor Summary
Constructors Constructor Description WordWrapStringColumn(java.lang.String name)
WordWrapStringColumn(java.lang.String name, com.brsanthu.dataexporter.model.AlignType align)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
align(com.brsanthu.dataexporter.model.CellDetails cellDetails, java.lang.String cellValue, java.lang.String filler)
int
getMaxRowHeight(com.brsanthu.dataexporter.model.CellDetails cellDetails)
-
Methods inherited from class com.complexible.common.dataexporter.FormattedColumn
format
-
Methods inherited from class com.brsanthu.dataexporter.model.Column
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
-
-
-
-
Method Detail
-
align
public java.util.List<java.lang.String> align(com.brsanthu.dataexporter.model.CellDetails cellDetails, java.lang.String cellValue, java.lang.String filler)
- Overrides:
align
in classcom.brsanthu.dataexporter.model.Column
-
getMaxRowHeight
public int getMaxRowHeight(com.brsanthu.dataexporter.model.CellDetails cellDetails)
- Overrides:
getMaxRowHeight
in classFormattedColumn
-
-