-
22 Dec 2011 11:22 PM #1
Unanswered: Masking the viewport or content panel
Unanswered: Masking the viewport or content panel
Hello everyone,
I have a problem with masking the viewport or content panel. Right now in my application, I have a button that when I clicked it, it will call the setUrl method in the content panel (or TabItem). What I want to achieve is, when the TabItem loading the URL, the parent container will set to mask (so the user can't do anything with the application). The problem is I can't find any event to listen when the TabItem loading the URL. Is there anyone who has the same experience / problem? Please kindly advice me.
Thanks.
Regards,
the.wizard
-
26 Dec 2011 5:24 PM #2
Hello...
Merry Christmas Everybody..
Still no one trying to help...
Hope there is someone that will help me...
Thanks...
Regards,
the.wizard
-
27 Dec 2011 11:32 PM #3
Hello...
Nobody can help me with this masking stuff?
Any help or comment will be appreciated.
Thanks.
Regards,
the.wizard
-
3 Jan 2012 1:50 AM #4
Hi.
TabItem.setUrl returns the iFrame and you can add a load handler to that.
Code:panel.mask(); t1.setUrl("http://www.sencha.com").addLoadHandler(new LoadHandler() { @Override public void onLoad(LoadEvent event) { panel.unmask(); } });
-
15 Jan 2012 5:19 PM #5
Hi Ersmarker,
I have tried your solution, but it appears that TabItem doesn't have any method like addLoadHandler. It only had addAttachHandler, AddDOMHandler, and AddHandler. Please explain more detail about your solution. Really thanks a lot for helping me.
Regards,
the.wizard
-
16 Jan 2012 12:15 AM #6
You don't add the LoadHandler directly on the tabItem, But on the Frame returned by tabItem.getUrl(url);
Code:panel.mask(); Frame frame = tab1.setUrl("http://www.sencha.com"); frame.addLoadHandler(new LoadHandler() { @Override public void onLoad(LoadEvent event) { panel.unmask(); } });
-
16 Jan 2012 10:16 PM #7
-
17 Jan 2012 12:17 AM #8
The frame.addLoaderHandler was added in GWT 2.3
-
19 Jan 2012 12:35 AM #9


Reply With Quote