|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NavigationEventListener
The listener interface for receiving event notifications from a WebBrowser control or from the Microsoft Internet Explorer application.
Method Summary | |
---|---|
void |
documentCompleted(WebBrowser webBrowser,
java.lang.String url)
Fires when a document has been completely loaded and initialized. |
void |
downloadBegin()
Fires when a navigation operation is beginning. |
void |
downloadCompleted()
Fires when a navigation operation finishes, is halted, or fails. |
void |
entireDocumentCompleted(WebBrowser webBrowser,
java.lang.String url)
Fires when a document has been completely loaded and initialized. |
void |
navigationCompleted(WebBrowser webBrowser,
java.lang.String url)
Invoked when navigation operation has been completed. |
void |
onRefresh()
Fires when the web page that is currently displayed is refreshed. |
void |
progressChanged(int progress,
int progressMax)
Invoked when the progress of download operation has been updated. |
Method Detail |
---|
void downloadBegin()
WebBrowserEventsHandler.beforeNavigate
event, unless the
navigation is canceled. Any animation or "busy" indication that
the container needs to display should be connected to this event.
Each downloadBegin
event will have a corresponding
downloadCompleted
event.
void downloadCompleted()
navigationCompleted
, which are fired only when a
URL is successfully navigated to, this event is always fired after
a navigation starts. Any animation or "busy" indication that the
container needs to display should be connected to this event.
Each downloadBegin
event will have a corresponding
downloadCompleted
event.
void onRefresh()
void documentCompleted(WebBrowser webBrowser, java.lang.String url)
downloadBegin
event has fired.
The value of the URL parameter might not match the URL that was
originally given to the WebBrowser Control. One possible reason
for this is that the URL might be converted to a qualified form.
For example, if an application specified a URL of www.teamdev.com
in a call to the WebBrowser.navigate
method, then the URL
passed into this event is http://www.teamdev.com/. In addition,
if the server has redirected the browser to a different URL, the
redirected URL is passed into the URL parameter.
The WebBrowser Control fires this event when the document has
completely loaded and the ReadyState
property has changed to ReadyState.READYSTATE_COMPLETE
.
webBrowser
- the browser object in which this event is fired.url
- url of loaded documentvoid entireDocumentCompleted(WebBrowser webBrowser, java.lang.String url)
WebBrowser.navigate
method, then the URL
passed into this event is http://www.teamdev.com/. In addition,
if the server has redirected the browser to a different URL, the
redirected URL is passed into the URL parameter.
The WebBrowser Control fires this event when the document has
completely loaded and the ReadyState
property has changed to ReadyState.READYSTATE_COMPLETE
.
webBrowser
- the browser object in which this event is fired.url
- url of loaded documentvoid navigationCompleted(WebBrowser webBrowser, java.lang.String url)
Internet Explorer 6: this method invoked after first navigation only.
webBrowser
- the browser object in which this event is fired.url
- url of loaded documentvoid progressChanged(int progress, int progressMax)
progress
- value that specifies current progress, or -1 when download is completedprogressMax
- maximum progress value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |