Xander
Xander

Reputation: 9171

How can I tell when my html page has loaded

How can I tell when my html page on loaded in my swt browser? Is there some sort of event I can listen to?

Upvotes: 3

Views: 351

Answers (2)

Mario Marinato
Mario Marinato

Reputation: 4617

Add a ProgressListener to it. It has a method called completed through which you receive notifications that a page has been fully loaded.

Upvotes: 1

bratao
bratao

Reputation: 2070

You need handle the method changed() from LocationListener(http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/swt/browser/ProgressListener.html) and test whether event.top is true

Upvotes: 2

Related Questions