|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IBrowser
Generic interface for any web browser component. Modeled after JDIC's org.jdesktop.jdic.browser.IWebBrowser
| Field Summary | |
|---|---|
static java.lang.String |
IE
|
static java.lang.String |
MOZILLA
|
static java.lang.String |
SAFARI
|
| Method Summary | |
|---|---|
void |
addBrowserListener(IBrowserListener listener)
|
void |
back()
Navigates backward one item in the history list. |
void |
forward()
Navigates forward one item in the history list. |
java.lang.String |
getBrowserType()
|
java.awt.Component |
getComponent()
Returns the Canvas representing the interface of the browser |
java.lang.String |
getContent()
Get the current content displayed in the webbrowser. |
java.lang.String |
getPageTitle()
|
java.net.URL |
getUrl()
Returns the URL of the resource that is currently being displayed. |
void |
refresh()
Reloads the URL that is currently displayed in the WebBrowser component. |
void |
removeBrowserListener(IBrowserListener listener)
|
void |
setContent(java.lang.String content)
|
void |
setNavigationPolicy(NavigationPolicy policy)
Policy with whitelist and blacklist of what urls can be navigated to |
void |
setUrl(java.net.URL url)
Navigates to a resource identified by an URL using HTTP GET method. |
void |
setUrl(java.net.URL url,
java.lang.String postData)
Navigates to a resource identified by an URL using HTTP POST method. |
void |
stop()
Stops any page loading and rendering activities. |
| Field Detail |
|---|
static final java.lang.String SAFARI
static final java.lang.String IE
static final java.lang.String MOZILLA
| Method Detail |
|---|
java.lang.String getPageTitle()
java.lang.String getBrowserType()
java.awt.Component getComponent()
void back()
void forward()
java.net.URL getUrl()
void setUrl(java.net.URL url)
url - the URL to which to navigate.
void setUrl(java.net.URL url,
java.lang.String postData)
url - the URL to which to navigate.postData - Data to send to the server during the HTTP POST transaction.void stop()
void refresh()
java.lang.String getContent()
void setContent(java.lang.String content)
void setNavigationPolicy(NavigationPolicy policy)
throws java.lang.UnsupportedOperationException
policy -
java.lang.UnsupportedOperationExceptionvoid addBrowserListener(IBrowserListener listener)
void removeBrowserListener(IBrowserListener listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||