Monday, May 31, 2010

Analogous of ListCellRenderer

Hello everybody.

I look for the analogous of ListCellRenderer(Java) for GWT.

What I need is the following (example):

I have:
- the class Person:
public class Person{
private String name;
private String surname;

- ArrayList<Person>
- 2 ListBox

I want to add all the item of the arraylist in the two ListBox, but in
the first one I want to display the name and in the second one the
surname. I don't want to give explicity the field name/surname to the

In this way I could then see directly which person the user select
from the List.

In java I've solved with the ListCellRenderer for the JList.

Any help?

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment