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

Support for custom rendering of DistinctColumnItem in TableFilterColumnPopup #48

Open
lucasecardoso opened this issue Sep 21, 2016 · 2 comments

Comments

@lucasecardoso
Copy link

Currently the rendering of values in the Checklist popup when you right click over a column renders the text by calling Object.toString(). This is not very useful for tables that use, for example, columns that contain Date objects, since you rarely ever want the toString() representation in your table. Is it possible to implement a custom way of rendering that? I am not entirely sure where to start touching the code. I've managed to make it do what I want by directly changing the method CheckListRenderer.getObjectAsText but that's certainly not a good solution.

Would adding a custom CheckListRenderer to TableRowFilterSupport be a good solution?

@lucasecardoso
Copy link
Author

I've done a quick and dirty addition to allow for a custom ListCellRenderer on the popup. Would you like me to make a pull request? I'm not sure it's the solution you'd like to implement.

@eugener
Copy link
Owner

eugener commented Sep 21, 2016

Pull Request is the way to go. I'm at JavaOne this week, but will look into it as soon as I can

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

No branches or pull requests

2 participants