You will probably use an AbstractDataProvider instance to fill the
CellTable. You have to create a helper method which retrieves the list of
beans based on the flag and sets it in the AbstractDataProvider (or
ListDataProvider).
Something like this:
final ListDataProvider<User> dataProvider = new ListDataProvider<User>();
List<User> listToDisplay = new ArrayList<User>();
for (User user: userList) {
if (user.isActive())
listToDisplay.add(user);
}
dataProvider.setList(listToDisplay);
dataProvider.addDataDisplay(cellList);
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/w5FzaKysbXoJ.
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.