Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Browser, silent mode?
SWT Browser, silent mode? [message #462781] Wed, 19 October 2005 10:22 Go to next message
mr. burns is currently offline mr. burnsFriend
Messages: 402
Registered: July 2009
Senior Member
Hello,


I use the SWT browser widget to display any HTML page to the user.

1.
Is there any way within the SWT browser widget to detect/trigger when an
HTML page is loaded completely (including frames, flash animations, etc.)?

2.
Is it possible to avoid popups by some settings of SWT Browser widget?

3.
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?

Thanks for any hint!
Re: SWT Browser, silent mode? [message #462783 is a reply to message #462781] Wed, 19 October 2005 10:38 Go to previous messageGo to next message
Benjamin Pasero is currently offline Benjamin PaseroFriend
Messages: 337
Registered: July 2009
Senior Member
Mr. Burns wrote:
> Hello,
>
>
> I use the SWT browser widget to display any HTML page to the user.
>
> 1.
> 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.

>
> 2.
> 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.

>
> 3.
> 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!
>
>
Re: SWT Browser, silent mode? [message #462792 is a reply to message #462783] Wed, 19 October 2005 14:23 Go to previous messageGo to next message
mr. burns is currently offline mr. burnsFriend
Messages: 402
Registered: July 2009
Senior Member
Thanks, will try that!
Re: SWT Browser, silent mode? [message #462798 is a reply to message #462783] Wed, 19 October 2005 15:05 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
The Completed event should only fire once the top-level frame has completed,
which includes all contained frames, etc.

Grant

> > 1.
> > 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.
Previous Topic:org.eclipse.swt.widgets.TreeItem.setGrayed(boolean grayed)
Next Topic:No SelectionEvent when right-clicking Tree
Goto Forum:
  


Current Time: Thu Apr 25 07:23:03 GMT 2024

Powered by FUDForum. Page generated in 0.03000 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top