Re: Synchronise view "loading" and activity start in MVP

2012-02-24 Thread Patrick Tucker
This is what I have done in the past, for similar reasons as you described. On Feb 23, 7:14 am, Thomas Lefort wrote: > Hi Thomas, > > My current idea is to add a whenViewReady(AsyncCallback) to my view in > the activity start. This method will call the callback if the view is > already ready (imm

Re: Synchronise view "loading" and activity start in MVP

2012-02-23 Thread Thomas Lefort
Hi Thomas, Thanks for you suggestion. Not sure that would be enough. This is my use case: - I have 3d applet in my view, it takes a while to load, as well with user authorisation, etc... I am able to detect when the applet has started running though - the view is created once and managed by clien

Re: Synchronise view "loading" and activity start in MVP

2012-02-03 Thread Thomas Broyer
Simply wait for all your code to be "loaded" (could be required scripts, or RPC/RequestFactory calls to the server) before "pushing" your view into the AcceptsOneWidget passed to the Activity#start() method. -- You received this message because you are subscribed to the Google Groups "Google W

Synchronise view "loading" and activity start in MVP

2012-02-03 Thread Thomas Lefort
Hi, Let's say you have a view that needs to load a library, eg the google maps library. Some of the method offered by the view should only be called by the activity when the map is fully loaded otherwise resulting in errors. I need a way to hold off any UI call from the activity until the view is