You can create an interface like this
interface Property<T> { String get(T dto); }
initialize a Map<MyDTO, String> for each DTO type
myDtoMap.put("getFilename", new Property() { String get(MyDTO dto) { return
dto.getFilename(); } });
...
and then call
myDtoMap.get(propertyString).get(dto);
to get the property value.
But if you need this feature to display columns in a table, CellTable has
Column class that works similarly.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.