I have multiple ListDataProviders, in which I store in a table to access them later. The problem is finding what is the efficient way to access and update each ListDataProvider and update it in order to see the changes? Here is what I am currently doing:
// a Guava table to store the data providers// i get the data provider by Row and ColumnTable<Row, Column, ListDataProvider> REGISTER = createTable(); // I create a copy of the data provider that i want to updateListDataProvider<T> prevDataProvider = getDataProvider(Row,Column);ListDataProvider<T> newDataProvider = getDataProvider(ROW_1, Colummn_1); // I make changes on the copies newDataProvider.getList().remove(e_1); prevDataProvider.getList().add(e_1); // Then i refresh the copies newDataProvider.refresh(); prevDataProvider.refresh(); I can see the changes, but sometimes the element is added to the new data provider but still exists in the previous one, so it not remove or the previous data provider didn't have a chance to remove the element. Is this a good way to do it? Thanks. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
