Wednesday, February 6, 2013

How to reset the contents of widgets when revealing a presenter for a second time

Hi,

I have some presenters that are revealed and populated with data when someone clicks on a row in a DataGrid. This satisfies the case where people can view existing data.

What I would now like to happen is to "reset" the contents of the widgets in the views when clicking on a button (so I can add new data).

I have tried calling the unbind() and bind() methods before making a call to the PlaceManager to reveal the presenter however, I think these are only applicable to releasing and binding handlers.

Is there a method available that will force the presenter to be re-loaded (thus resetting the contents of all the widgets) or, is it a matter of iterating through each of the widgets and clearing the contents?

Thanks,
Nik

--
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
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.
 
 

No comments:

Post a Comment