54
54
@ SuppressWarnings ("serial" )
55
55
public class GridExporter <T > implements Serializable {
56
56
57
- private static final Logger LOGGER = LoggerFactory .getLogger (ExcelInputStreamFactory .class );
57
+ private static final Logger LOGGER = LoggerFactory .getLogger (GridExporter .class );
58
58
59
59
private boolean excelExportEnabled = true ;
60
60
private boolean docxExportEnabled = true ;
@@ -167,7 +167,7 @@ public static <T> GridExporter<T> createFor(
167
167
168
168
private JustifyContentMode getJustifyContentMode () {
169
169
JustifyContentMode justifyContentMode ;
170
- if (this . buttonsAlignment == ButtonsAlignment .LEFT ) {
170
+ if (buttonsAlignment == ButtonsAlignment .LEFT ) {
171
171
justifyContentMode = JustifyContentMode .START ;
172
172
} else {
173
173
justifyContentMode = JustifyContentMode .END ;
@@ -193,7 +193,7 @@ Object extractValueFromColumn(T item, Column<T> column) {
193
193
// if there is a key, assume that the property can be retrieved from it
194
194
if (value == null && column .getKey () != null ) {
195
195
Optional <PropertyDefinition <T , ?>> propertyDefinition =
196
- this . propertySet .getProperty (column .getKey ());
196
+ propertySet .getProperty (column .getKey ());
197
197
if (propertyDefinition .isPresent ()) {
198
198
value = propertyDefinition .get ().getGetter ().apply (item );
199
199
} else {
@@ -219,7 +219,7 @@ else if (r.getValueProviders().containsKey("name")) {
219
219
220
220
// at this point if the value is still null then take the only value from ColumPathRenderer VP
221
221
if (value == null && column .getRenderer () instanceof Renderer ) {
222
- Renderer <T > renderer = ( Renderer < T >) column .getRenderer ();
222
+ Renderer <T > renderer = column .getRenderer ();
223
223
if (renderer instanceof ColumnPathRenderer ) {
224
224
try {
225
225
Field provider = ColumnPathRenderer .class .getDeclaredField ("provider" );
@@ -458,7 +458,7 @@ public void setNumberColumnFormat(
458
458
* value of the column so it can be converted to a Double, and then allows to specify the excel
459
459
* format to be applied to the cell when exported to excel with a provider, so the resulting cell
460
460
* is not a string but a number that can be used in formulas.
461
- *
461
+ *
462
462
* @param column
463
463
* @param decimalFormat
464
464
* @param excelFormatProvider
@@ -594,15 +594,15 @@ public void setFooterToolbarItems(List<FooterToolbarItem> footerToolbarItems) {
594
594
595
595
/**
596
596
* Charset to use when exporting the CSV file.
597
- *
597
+ *
598
598
* @return CSV file charset or default one.
599
599
*/
600
600
public Charset getCsvCharset () {
601
601
return csvCharset == null ? Charset .defaultCharset () : csvCharset .get ();
602
602
}
603
603
604
604
public void setCsvCharset (SerializableSupplier <Charset > charset ) {
605
- this . csvCharset = charset ;
605
+ csvCharset = charset ;
606
606
}
607
607
608
608
}
0 commit comments