oxbow icon indicating copy to clipboard operation
oxbow copied to clipboard

Support for custom rendering of DistinctColumnItem in TableFilterColumnPopup

Open lucasecardoso opened this issue 9 years ago • 2 comments

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 avatar Sep 21 '16 13:09 lucasecardoso

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.

lucasecardoso avatar Sep 21 '16 17:09 lucasecardoso

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

eugener avatar Sep 21 '16 19:09 eugener