|Re: SWT Browser, silent mode? [message #462783 is a reply to message #462781]
||Wed, 19 October 2005 10:38
| Benjamin Pasero
Registered: July 2009
Mr. Burns wrote:|
> I use the SWT browser widget to display any HTML page to the user.
> Is there any way within the SWT browser widget to detect/trigger when an
> HTML page is loaded completely (including frames, flash animations, etc.)?
Check out the ProgressListener, but I cant tell if it guarantess the call of
completed in any case, like frames and flash.
> Is it possible to avoid popups by some settings of SWT Browser widget?
Popups will trigger show-method in the VisibilityWindowListener. Inside the
WindowEvent you can check if the window is having adressbar, menubar and
stuff like that, which common popups dont have. Checking that, you can react
on a popupwindow and close it directly. But this is not a solution that will
work for any popup. Be carefull, that links wanting to open inside a new
window will trigger the same event.
> If I receive a forign HTML page (mainly Cineese) a message pops up from the
> browser offering to install a language pack.
> Is it possible by the SWT browser widget to avoid this message popping up?
> So basically I want to avoid that the SWT browser window opens any other
> window, even HTML windows or system messages.
> Under C++ Browser component I can activate a so called 'silent mode'
> property, but how to do using JAVA / SWT?
> Any idea?
I guess this is not possible for any dialogs.
> Thanks for any hint!
Powered by FUDForum
. Page generated in 0.04839 seconds