Den 11.07.2011 16:05, skrev Greg Brown:
Sure, but I don't want to have to parameterize my ListView. For the most part,
ListView doesn't care about the data type. That's up to the model (which is
already parameterized).
OK. Out of curiosity, how to you write your code when you want to call
listView.getTableData().add(yourObject)?
You can either cast to a list of the appropriate type or maintain a typed
reference to the list data. If the getListData() method was parameterized, your
code above would also work.
I've been casting it to a list og appropriate type, but it looks so ugly :(
-- Edvin