Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fallback to Table's Converters to format cell values #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aleprj
Copy link

@aleprj aleprj commented May 22, 2013

Currently, each implementation (Excel, CSV and PDF) decide how to handle each cell value.
If the table has columns with converters, they are ignored and a toString is used.

This change introduces the following behavior:
If the exporter implementation knows how to handle the value class (for example, if it's a Date, ExcelExporter can format the cell as date value), nothing changes and it should still use the original value.
If the implementation has no specific way to handle that class, and the table has converters set for that column, the exporter implementation has the option of using this "presentation value" as converted by the Converter.

fallback to the Table's original converters if available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant