|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Navigation
Provides basic navigation functionality for the browser component.
| Method Summary | |
|---|---|
void |
addNavigationListener(NavigationListener listener)
Adds the specified navigation listener to receive browser navigation events from this browser instance. |
java.util.List<NavigationListener> |
getNavigationListeners()
Returns a list of all the browser navigation listeners registered on this browser. |
void |
goBack()
Navigates browser back. |
void |
goForward()
Navigates browser forward. |
boolean |
isNavigationFinished()
Returns true if there's no navigation activity in this browser. |
void |
navigate(java.lang.String location)
Navigates to a resource identified by a URL or to a file identified by a full path. |
void |
navigate(java.lang.String location,
java.lang.String postData)
Navigates to a web resource specified by a HTTP URL with HTTP post data. |
void |
refresh()
Reloads the web page currently loaded in the Browser component. |
void |
removeNavigationListener(NavigationListener listener)
Removes the specified navigation listener so that it no longer receives browser navigation events from this browser instance. |
void |
stop()
Cancels any pending navigation or download operation and stops any dynamic page elements, such as background sounds and animations. |
void |
waitReady()
Blocks current thread execution on 45 seconds until the document is loaded completely. |
| Method Detail |
|---|
void navigate(java.lang.String location)
location - the URL of the resource to display or the full path to the file location.
The parameter cannot be null.
java.lang.NullPointerException - when location is null.navigate(String, String),
stop()
void navigate(java.lang.String location,
java.lang.String postData)
location - the URL of the resource to display or the full path to the file location.
The parameter cannot be null.postData - the string that represents a HTTP post data (for example,
"name=Alex&product=Pizza"), can be null.
java.lang.NullPointerException - when location is null.navigate(String),
stop()void refresh()
navigate(String),
navigate(String, String),
stop()void stop()
navigate(String),
navigate(String, String)void goBack()
void goForward()
void waitReady()
NavigationListener.navigationFinished(com.teamdev.jxbrowser.events.NavigationFinishedEvent)boolean isNavigationFinished()
true if there's no navigation activity in this browser.
true if there's no navigation activity in this browser.void addNavigationListener(NavigationListener listener)
listener is null, no exception is thrown and
no action is performed.
listener - the browser navigation listener.void removeNavigationListener(NavigationListener listener)
listener - the browser navigation listener.java.util.List<NavigationListener> getNavigationListeners()
NavigationListeners or an empty list if no
browser navigation listeners are currently registered.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||