Sure, that works. You could also extend
org.apache.pivot.wtk.content.ListItem, if you wanted to display icons.
The default list item renderer knows how to display items of that type.
On Aug 5, 2009, at 6:26 PM, Scott Lanham wrote:
I had a go at creating a class containing both the key and the list
item text
to be displayed, overrode the toString method, added a few instances
to the
ListView and it worked.
On Thu, 6 Aug 2009 07:58:39 am Scott Lanham wrote:
Hello,
What would be the best way to associate a non-displayed key value
with a
list item in a ListView?
Thanks,
Scott.