public abstract class NavigationAdapter extends java.lang.Object implements NavigationListener
Constructor and Description |
---|
NavigationAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
downloadBegin()
Invoked when a navigation operation begins.
|
void |
downloadComplete()
Invoked when a navigation operation finishes, is halted, or fails.
|
void |
frameDocumentCompleted(Browser browser,
java.lang.String url)
Invoked when a document has been completely loaded and initialized.
|
void |
mainDocumentCompleted(Browser browser,
java.lang.String url)
Invoked when main document has been completely loaded and initialized.
|
void |
navigationCompleted(Browser browser,
java.lang.String url)
Invoked when navigation operation has been completed.
|
void |
progressChanged(int progress,
int progressMax)
Invoked when the progress of download operation has been updated.
|
public void downloadBegin()
NavigationListener
EventsHandler.beforeNavigate(com.teamdev.jexplorer.Browser, String, String, byte[], String)
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.downloadBegin
in interface NavigationListener
public void downloadComplete()
NavigationListener
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.downloadComplete
in interface NavigationListener
public void frameDocumentCompleted(Browser browser, java.lang.String url)
NavigationListener
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.frameDocumentCompleted
in interface NavigationListener
browser
- browser instance in which this event is fired.url
- url of loaded documentpublic void mainDocumentCompleted(Browser browser, java.lang.String url)
NavigationListener
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.mainDocumentCompleted
in interface NavigationListener
browser
- browser instance in which this event is fired.url
- url of loaded documentpublic void navigationCompleted(Browser browser, java.lang.String url)
NavigationListener
Internet Explorer 6: this method invoked after first navigation only.
navigationCompleted
in interface NavigationListener
browser
- browser object in which this event is fired.url
- url of loaded documentpublic void progressChanged(int progress, int progressMax)
NavigationListener
progressChanged
in interface NavigationListener
progress
- value that specifies current progress, or -1 when download is completedprogressMax
- maximum progress value