开发者

How can I tell when my html page has loaded

开发者_JAVA技巧

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


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜