[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] List widget for non-String objects?

I'm trying to make a simple Composite containing two Lists, and some
buttons
that allow moving items between the lists, as well as up/down within the

lists
My problem is that the List class seems to only handle Strings, whereas
I want the lists to contain some other type of object, and use the
objects'
"toString" method for display purposes.

I considered using the List and keeping track of the underlying objects
with the widget's setData(key, data)  method, but I can't see any nice
ways of manipulating these "data" objects (eg: clearing all all at once,
etc.)

I also looked at the ListViewer class, but in this case I can't see a
nice way to implement the move up, move down buttons, etc.

Any suggestions??

Thanks,
Ryan