The HssfTableScrollPaneUtils is a very nifty class to get table data into Excel. However - I lack the possibility to convert column names, i.e. is is the column names from the table model that are used but I'd like to translate them into current user's language before they're xported. I can see that in the super class
HssfTableUtils there are some methods where you can specify a "columnNameConverter" which is an instanceof "StringConverter". It would be great if you could add another method to
HssfTableScrollPaneUtils to accomplish this, e.g.
- Code: Select all
public static boolean export(TableScrollPane table,
String fileName,
String sheetName,
boolean append,
StringConverter columnNameConverter)
throws IOException
This would be
exactly what I need. Perhaps there is a way to accomplish this already?