I am working with tables, specifically TableView, ListTableModel and ColumnInfo. I love the way these things work together.
Assume I have an Issue class with some String properties and a Date property.
I have some questions about ColumnInfo though:
- Should valueOf() *always* return a String or should it return the original object, for example the Date, and let the TableCellRenderer handle the conversion to String?
- How do I implement a renderer that uses a property of the original Issue object? Because if I have a ColumnInfo<Issue, Date> (Where Issue is my own class containing a Date), then the value that public TableCellRenderer getRenderer(Item) gets is a Date and not an Issue.
I hope this makes sense.