|Export mechanism modifications [message #1109408]
||Sun, 15 September 2013 06:41
| Dirk Fauth
Registered: July 2012
while inspecting several functions of NatTable in more detail to be able to write the documentation I noticed some issues regarding the export functionality in terms of consistency of configuration and functionality. Therefore I decided to modify the export stuff in order to add consistency.
The following changes will cause issues regarding backwards compatibility and will force users of NatTable to modify their code slightly:
I noticed that the configurations for Excel exports are split into several places. I decided to put them together to have one place for export configuration rather than checking several default configurations for custom modifications.
I created a new interface ExportConfigAttributes that now specifies all export related configuration attributes and moved the existing configuration attributes there. These are
ILayerExporter.CONFIG_ATTRIBUTE -> ExportConfigAttributes.EXPORTER
CellConfigAttributesEXPORT_FORMATTER -> ExportConfigAttributes.EXPORT_FORMATTER
I also moved the default configuration for the export formatter from DefaultNatTableStyleConfiguration to DefaultExportBindings as the configuration is export specific and does only work in combination with the configurations made in the DefaultExportBindings.
Also I did modifications and improvements mentioned in the following Bugzilla tickets:
The changes are included in the latest development SNAPSHOTS and will be part of the next NatTable release.
As these are some minor API changes that improve the consistency of NatTable configuration, I hope you don't suffer too much from that changes.
Powered by FUDForum
. Page generated in 0.04111 seconds