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
ListBox.

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?
Thanks

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment