|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jniwrapper.win32.ie.HeadlessBrowser
public class HeadlessBrowser
This class is the windowless implementation of WebBrowser iterface,
specially designed for such operations that do not require a Java component.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.jniwrapper.win32.ie.WebBrowser |
|---|
WebBrowser.Properties |
| Constructor Summary | |
|---|---|
HeadlessBrowser()
Creates Internet Explorer wrapper for automated testing. |
|
HeadlessBrowser(HeadlessBrowser parent)
|
|
| Method Summary | |
|---|---|
void |
addBrowserWindowListener(BrowserWindowListener listener)
Adds window listener. |
void |
addDisposeListener(DisposeListener listener)
Registers the listener for the current Browser instance
that will receive events when the current Browser instance
is disposed. |
void |
addNavigationListener(NavigationEventListener listener)
Adds browser navigation event listener. |
void |
addNewWindowListener(NewWindowEventListener listener)
Adds new window listener. |
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Adds a new property change listener. |
void |
addStatusListener(StatusEventListener listener)
Adds browser status event listener. |
void |
close()
Closes browser instance. |
void |
execute(BrowserCommand command)
Executes specified command. |
java.lang.Object |
executeScript(java.lang.String javaScript)
Executes specified JavaScript code in a currently opened document. |
AuthenticationHandler |
getAuthenticationHandler()
Returns the current browser authentication handler or null if it's was not specified. |
java.lang.Object |
getBrowserPeer()
Returns an instance of the native web browser peer. |
java.lang.String |
getContent()
Returns the HTML content of a document, opened in a browser. |
java.lang.String |
getContent(boolean original)
Returns the string that represents HTML content of a currently loaded document in WebBrowser. |
java.util.Set<Cookie> |
getCookies(java.lang.String url)
Deprecated. Use the CookieManager.getCookies(URL url) method instead. |
java.util.Set<Cookie> |
getCookies(java.net.URL url)
Returns cookies, that are associated with the specified URL. |
DialogEventHandler |
getDialogEventHandler()
Returns the dialog events handler or null if it's
was not specified. |
DisposeListener[] |
getDisposeListeners()
Returns an array of all registered listeners for the current Browser instance. |
org.w3c.dom.html.HTMLDocument |
getDocument()
Returns an instance of HTMLDocument that
represents the HTML document currently loaded into
the WebBrowser and provides access to the contents of
the HTML Document Object Model (DOM). |
WebBrowserEventsHandler |
getEventHandler()
Returns browser event handler. |
HtmlDialogListener |
getHtmlDialogListener()
Returns the current HTML Dialog listener or null if it's not
registered. |
HttpSecurityHandler |
getHttpSecurityHandler()
Returns http security handler that allows processing any security problems or null if it's not present. |
KeyFilter |
getKeyFilter()
Returns key filter. |
java.lang.String |
getLocationURL()
Returns the string that represents a URL of the resource that WebBrowser component is currently displayed. |
java.util.List<NavigationEventListener> |
getNavigationListeners()
Returns browser navigation event listeners. |
NewWindowEventHandler |
getNewWindowHandler()
Returns new window handler. |
java.util.List<NewWindowEventListener> |
getNewWindowListeners()
Returns new window listeners. |
com.jniwrapper.win32.automation.OleMessageLoop |
getOleMessageLoop()
Return browser OLE message loop. |
BrowserOptions |
getOptions()
|
WebBrowser |
getParentBrowser()
Returns the parent of the browser. |
WebBrowser.Properties |
getProperties()
Returns extended browser properties. |
ProxyConfiguration |
getProxy()
Returns the proxy settings for the current WebBrowser control. |
ReadyState |
getReadyState()
Returns the current ReadyState of the browser. |
WebBrowser |
getRecentChild()
Returns recent created child object since last trackChildren() method call. |
ScriptErrorListener |
getScriptErrorListener()
Returns script error listener for current page. |
java.util.List<StatusEventListener> |
getStatusListeners()
Returns browser status event listeners. |
int |
getZoomValue()
|
void |
goBack()
Navigates backward one item in the history list. |
void |
goForward()
Navigates forward one item in the history list. |
void |
goHome()
Navigates to the current home or start page. |
boolean |
isClosed()
Returns true if the WebBrowser instance is closed and disposed. |
boolean |
isSilent()
Return true if alert, confirmation and error dialogs are disabled else returns false. |
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 |
navigate(java.lang.String location,
java.lang.String targetName,
java.lang.String postData)
Navigates to an entire web resource specified by a HTTP URL with HTTP post data into a specified window defined by targetName. |
void |
navigate(java.lang.String location,
java.lang.String targetName,
java.lang.String postData,
java.lang.String headers)
Navigates to an entire web resource specified by a HTTP URL with HTTP post data into a specified window defined by targetName. |
void |
refresh()
Reloads the file that is currently displayed in the object. |
void |
removeBrowserWindowListener(BrowserWindowListener listener)
Removes window listener. |
void |
removeDisposeListener(DisposeListener listener)
Removes the listener so that it will not receive events
when the current Browser instance is disposed. |
void |
removeNavigationListener(NavigationEventListener listener)
Removes browser navigation event listener. |
void |
removeNewWindowListener(NewWindowEventListener listener)
Removes new window listener. |
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Removes a specified property change listener. |
void |
removeStatusListener(StatusEventListener listener)
Removes browser status event listener. |
void |
setAuthenticationHandler(AuthenticationHandler handler)
Sets the specified browser authentication handler. |
void |
setContent(java.lang.String htmlContent)
Sets new HTML content. |
void |
setCookie(java.lang.String url,
Cookie cookie)
Deprecated. Use the CookieManager.setCookie(URL url, Cookie cookie) or
CookieManager.setCookies(URL url, Set cookies) methods instead. |
void |
setCookies(java.net.URL url,
java.util.Set<Cookie> cookies)
Creates a new cookies for the specified URL using WinINet API. |
void |
setDialogEventHandler(DialogEventHandler handler)
Sets the listener interface for receiving show dialog events. |
void |
setEventHandler(WebBrowserEventsHandler handler)
Sets browser event handler. |
void |
setHtmlDialogListener(HtmlDialogListener listener)
Sets the specified HTML Dialog listener that allows receiving event when the HTML Dialog is shown and its document is loaded completely. |
void |
setHttpSecurityHandler(HttpSecurityHandler h)
Sets the specified HTTP security handler that allows processing any security problems such as Invalid Certificate error, Invalid Certificate Name, Invalid Certificate Date, Moving from a non-SSL to an SSL connection because of a redirect or The redirection requires user confirmation problems. |
void |
setKeyFilter(KeyFilter keyFilter)
Sets key filter. |
void |
setNewWindowHandler(NewWindowEventHandler newWindowHandler)
Sets new window handler. |
void |
setParentBrowser(WebBrowser webBrowser)
Deprecated. Will be removed because WebBrowser instance will receive parent automatically. |
void |
setProxy(ProxyConfiguration conf)
Sets the specified proxy settings for the current WebBrowser control and all its children. |
void |
setScriptErrorListener(ScriptErrorListener listener)
Setups javascript error listener for current page. |
void |
setSilent(boolean isSilent)
Disables or enables alert, confirmation and error dialogs. |
void |
setZoomValue(int value)
|
void |
stop()
Cancels any pending navigation or download operation and stops any dynamic page elements, such as background sounds and animations. |
void |
trackChildren()
Starts to collect information about child object creation. |
WebBrowser |
waitChildCreation()
Blocks execution until child is created since last trackChildren() call and returns this child. |
WebBrowser |
waitChildCreation(java.lang.Runnable operationThatCreatesChild)
Executes operation specified in the parameter and returns when child created by the operation is opened. |
void |
waitReady()
Causes a current thread to wait for the completion of the current operation in the browser. |
void |
waitReady(long timeout)
Deprecated. Use the NavigationEventListener.entireDocumentCompleted event
to make sure that the document is loaded completely. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HeadlessBrowser()
public HeadlessBrowser(HeadlessBrowser parent)
| Method Detail |
|---|
public BrowserOptions getOptions()
public void addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
WebBrowser.Properties class.
addPropertyChangeListener in interface WebBrowserpropertyName - property name.listener - listener instance.
public void removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
WebBrowser.Properties class.
removePropertyChangeListener in interface WebBrowserpropertyName - property name.listener - listener instance.public org.w3c.dom.html.HTMLDocument getDocument()
HTMLDocument that
represents the HTML document currently loaded into
the WebBrowser and provides access to the contents of
the HTML Document Object Model (DOM).
Before receiving an instance of HTMLDocument
make sure that the entire document is loaded completely.
For this you can use the
NavigationEventListener.entireDocumentCompleted(WebBrowser, String)
event.
getDocument in interface WebBrowserjava.lang.IllegalStateException - when WebBrowser.waitReady()
method isn't called after last call of
WebBrowser.navigate() or
WebBrowser.setContent() methods;
or when WebBrowser component was
disposed by invoking WebBrowser.close()
method or for some unknown reasons.WebBrowser.waitReady(),
WebBrowser.navigate(String),
WebBrowser.setContent(String),
NavigationEventListener.entireDocumentCompleted(WebBrowser, String)public WebBrowser getParentBrowser()
getParentBrowser in interface WebBrowsernull if the browser not has the parent.Browser.getParentBrowser(),
getParentBrowser(),
IEAutomation.getParentBrowser()public void setParentBrowser(WebBrowser webBrowser)
setParentBrowser in interface WebBrowserwebBrowser - the parent of the browser.public void setContent(java.lang.String htmlContent)
setContent in interface WebBrowserhtmlContent - HTML content to set.WebBrowser.navigate(String),
WebBrowser.navigate(String, String),
WebBrowser.navigate(String, String, String),
WebBrowser.getContent(),
WebBrowser.getContent(boolean),
NavigationEventListener.entireDocumentCompleted(WebBrowser, String)public java.lang.String getContent()
getContent in interface WebBrowserWebBrowser.setContent(String),
WebBrowser.getContent(boolean),
NavigationEventListener.entireDocumentCompleted(WebBrowser, String)public java.lang.String getContent(boolean original)
WebBrowserNavigationEventListener.entireDocumentCompleted event.
getContent in interface WebBrowseroriginal - if true then returns the original
HTML content (like View Source command in context
menu of Internet Explorer browser), otherwise this method
returns the actual content of a document according to its DOM.
WebBrowser.getContent(),
WebBrowser.setContent(String),
NavigationEventListener.entireDocumentCompleted(WebBrowser, String)public void navigate(java.lang.String location)
navigate in interface WebBrowserlocation - the URL of the resource to display or
the full path to the file location. The
parameter cannot be null.
java.lang.IllegalArgumentException - when location parameter is null.
java.lang.IllegalStateException - when WebBrowser component was
disposed by invoking WebBrowser.close()
method or for some unknown reasons.navigate(String, String),
navigate(String, String, String),
NavigationEventListener.entireDocumentCompleted(WebBrowser, String)
public void navigate(java.lang.String location,
java.lang.String postData)
navigate in interface WebBrowserlocation - the URL of the resource to display or
the full path to the file location. The
parameter cannot be null.postData - HTTP post data (for example, "name=Alex&product=Pizza"),
can be null.
java.lang.IllegalArgumentException - when location parameter is null.
java.lang.IllegalStateException - when WebBrowser component was
disposed by invoking WebBrowser.close()
method or for some unknown reasons.navigate(String),
navigate(String, String, String),
NavigationEventListener.entireDocumentCompleted(WebBrowser, String)
public void navigate(java.lang.String location,
java.lang.String targetName,
java.lang.String postData)
navigate in interface WebBrowserlocation - the URL of the resource to display or
the full path to the file location. The
parameter cannot be null.targetName - The string that contains the name of the
frame in which to display the resource.
The possible values for this parameter are.
postData - HTTP post data (for example, "name=Alex&product=Pizza").
java.lang.IllegalStateException - when WebBrowser component was
disposed by invoking WebBrowser.close()
method or for some unknown reasons.navigate(String),
navigate(String, String),
NavigationEventListener.entireDocumentCompleted(WebBrowser, String)
public void navigate(java.lang.String location,
java.lang.String targetName,
java.lang.String postData,
java.lang.String headers)
WebBrowser
navigate in interface WebBrowserlocation - the URL of the resource to display or
the full path to the file location. The
parameter cannot be null.targetName - The string that contains the name of the
frame in which to display the resource.
The possible values for this parameter are.
postData - HTTP post data (for example, "name=Alex&product=Pizza").headers - The string that contains additional HTTP headers to send
to the server. These headers are added to the default
Windows Internet Explorer headers. For example, headers
can specify the action required of the server, the type
of data being passed to the server, or a status code.
This parameter is ignored if the URL is not an HTTP
(or HTTPS) URL.WebBrowser.navigate(String),
WebBrowser.navigate(String, String),
NavigationEventListener.entireDocumentCompleted(WebBrowser, String)public java.lang.String getLocationURL()
getLocationURL in interface WebBrowserjava.lang.IllegalStateException - when WebBrowser component was
disposed by invoking WebBrowser.close()
method or for some unknown reasons.NavigationEventListener.entireDocumentCompleted(WebBrowser, String)public void goForward()
StatusEventListener.forwardButtonEnabled
event to check the enabled state of forward navigation.
To manage WebBrowser's history use the BrowserHistory class.
goForward in interface WebBrowserjava.lang.IllegalStateException - when WebBrowser component was
disposed by invoking WebBrowser.close()
method or for some unknown reasons.WebBrowser.goBack(),
WebBrowser.goHome(),
BrowserHistorypublic void goBack()
StatusEventListener.backButtonEnabled
event to check the enabled state of back navigation.
To manage WebBrowser's history use the BrowserHistory class.
goBack in interface WebBrowserjava.lang.IllegalStateException - when WebBrowser component was
disposed by invoking WebBrowser.close()
method or for some unknown reasons.WebBrowser.goForward(),
WebBrowser.goHome(),
BrowserHistorypublic void goHome()
goHome in interface WebBrowserjava.lang.IllegalStateException - when WebBrowser component was
disposed by invoking WebBrowser.close()
method or for some unknown reasons.WebBrowser.goForward(),
WebBrowser.goBack()public void stop()
stop in interface WebBrowserjava.lang.IllegalStateException - when WebBrowser component was
disposed by invoking WebBrowser.close()
method or for some unknown reasons.refresh(),
navigate(String),
NavigationEventListener.entireDocumentCompleted(WebBrowser, String)public void refresh()
refresh in interface WebBrowserpublic void execute(BrowserCommand command)
execute in interface WebBrowsercommand - browser command.PrintCommand,
PrintPreviewCommand,
SaveAsCommandpublic ReadyState getReadyState()
ReadyState of the browser.
getReadyState in interface WebBrowserpublic java.lang.Object executeScript(java.lang.String javaScript)
executeScript in interface WebBrowserjavaScript - JavaScript to execute.
public java.lang.Object getBrowserPeer()
getBrowserPeer in interface WebBrowserjava.lang.IllegalStateException - if the passed browser does not have a native peer.public void waitReady()
Important: successful call of this method guaranties that you can get DOM document of loaded page.
Please see typical usage of this method in the code below:
// navigate to Google page
browser.navigate("google.com");
// wait until page completely loaded
browser.waitReady();
// DOM document is available
Document document = browser.getDocument();
WebBrowser.waitReady() call after navigation call
then IllegalStateException is thrown in WebBrowser.getDocument() call.
waitReady in interface WebBrowserWebBrowser.navigate(String),
WebBrowser.setContent(String),
WebBrowser.getDocument()public void waitReady(long timeout)
NavigationEventListener.entireDocumentCompleted event
to make sure that the document is loaded completely.
waitReady in interface WebBrowsertimeout - the number of milliseconds to wait.public void addNavigationListener(NavigationEventListener listener)
addNavigationListener in interface WebBrowserlistener - browser event listener.public void addStatusListener(StatusEventListener listener)
addStatusListener in interface WebBrowserlistener - browser event listener.public java.util.List<NavigationEventListener> getNavigationListeners()
getNavigationListeners in interface WebBrowserpublic java.util.List<StatusEventListener> getStatusListeners()
getStatusListeners in interface WebBrowserpublic void removeNavigationListener(NavigationEventListener listener)
removeNavigationListener in interface WebBrowserlistener - browser event listener.public void removeStatusListener(StatusEventListener listener)
removeStatusListener in interface WebBrowserlistener - browser event listener.public WebBrowserEventsHandler getEventHandler()
getEventHandler in interface WebBrowserpublic void setAuthenticationHandler(AuthenticationHandler handler)
setAuthenticationHandler in interface WebBrowserhandler - the authentication handler
java.lang.IllegalStateException - when WebBrowser component was
disposed by invoking WebBrowser.close()
method or for some unknown reasons.getAuthenticationHandler()public AuthenticationHandler getAuthenticationHandler()
null if it's was not specified. The
authentication handler allows handling the authenticate
events from the browser object. Currently supported the
basic, digest and NTLM authentication schemes.
getAuthenticationHandler in interface WebBrowsernull.
java.lang.IllegalStateException - when WebBrowser component was
disposed by invoking WebBrowser.close()
method or for some unknown reasons.setAuthenticationHandler(AuthenticationHandler)public void setEventHandler(WebBrowserEventsHandler handler)
setEventHandler in interface WebBrowserhandler - event handlerpublic void setScriptErrorListener(ScriptErrorListener listener)
setScriptErrorListener in interface WebBrowserlistener - javascript error listenerpublic ScriptErrorListener getScriptErrorListener()
getScriptErrorListener in interface WebBrowserpublic void close()
Note: Prior to 1.4, the non-daemon helper threads were never terminated. Starting with 1.4, the behavior has changed as a result of the fix for 4030718. With the current implementation, AWT terminates all its helper threads allowing the application to exit cleanly when the following three conditions are true:
System.exit you must to
call this method for each instance in your application.
close in interface WebBrowserWebBrowser.isClosed()public boolean isClosed()
true if the WebBrowser instance is closed and disposed.
Use this method when you need to make sure that the WebBrowser instance
is alive and can can invoke its methods.
isClosed in interface WebBrowsertrue if the WebBrowser instance is closed and disposed.close()public void setSilent(boolean isSilent)
setSilent in interface WebBrowserisSilent - if true then enter to silent mode else leave silent mode.public boolean isSilent()
isSilent in interface WebBrowserpublic com.jniwrapper.win32.automation.OleMessageLoop getOleMessageLoop()
getOleMessageLoop in interface WebBrowserpublic void setProxy(ProxyConfiguration conf)
Browsers.setProxy(ProxyConfiguration)
method.
setProxy in interface WebBrowserconf - the proxy settings. This parameter cannot be
null.
java.lang.IllegalStateException - when the passed browser does not have
a native peer or WebBrowser component was
disposed by invoking WebBrowser.close()
method or for some unknown reasons.getProxy()public ProxyConfiguration getProxy()
getProxy in interface WebBrowserjava.lang.IllegalStateException - when the passed browser does not have
a native peer or WebBrowser component was
disposed by invoking WebBrowser.close()
method or for some unknown reasons.setProxy(ProxyConfiguration)public java.util.Set<Cookie> getCookies(java.net.URL url)
WebBrowserIt checks in the windows\cookies directory for persistent cookies that have an expiration date set sometime in the future.
It also searches memory for any session cookies, that is, cookies that do not have an expiration date that were created in the same process by CookieManager.setCookie(), because these cookies are not written to any files. Rules for creating cookie files are internal to the system and can change in the future.
Note: The method does not return cookies that the server marked as non-scriptable with the "HttpOnly" attribute in the Set-Cookie header.
getCookies in interface WebBrowserurl - specifies an URL.
public void setCookies(java.net.URL url,
java.util.Set<Cookie> cookies)
WebBrowserCookies created by this method without an expiration date are stored in memory and are available only in the same process that created them. Cookies that include an expiration date are stored in the windows\cookies directory.
setCookies in interface WebBrowserurl - specifies an URL, a new cookie will be associated with.cookies - the collection of Cookie objects.public void setHttpSecurityHandler(HttpSecurityHandler h)
setHttpSecurityHandler in interface WebBrowserh - the specified HTTP security handler.
java.lang.IllegalStateException - when the passed browser does not have
a native peer or WebBrowser component was
disposed by invoking WebBrowser.close()
method or for some unknown reasons.getHttpSecurityHandler()public HttpSecurityHandler getHttpSecurityHandler()
null if it's not present. By default this
method always returns null and all security problems are
processing by default Internet Explorer security handler.
getHttpSecurityHandler in interface WebBrowsernull if it's not present
java.lang.IllegalStateException - when the passed browser does not have
a native peer or WebBrowser component was
disposed by invoking WebBrowser.close()
method or for some unknown reasons.setHttpSecurityHandler(com.jniwrapper.win32.ie.event.HttpSecurityHandler)public void addDisposeListener(DisposeListener listener)
listener for the current Browser instance
that will receive events when the current Browser instance
is disposed.
addDisposeListener in interface WebBrowserlistener - the listener to receive browser dispose events.public void removeDisposeListener(DisposeListener listener)
listener so that it will not receive events
when the current Browser instance is disposed.
removeDisposeListener in interface WebBrowserlistener - the listener to remove.public DisposeListener[] getDisposeListeners()
getDisposeListeners in interface WebBrowserpublic void setDialogEventHandler(DialogEventHandler handler)
setDialogEventHandler in interface WebBrowserhandler - dialog event handler
java.lang.IllegalStateException - when WebBrowser component was
disposed by invoking WebBrowser.close()
method or for some unknown reasons.getDialogEventHandler(),
setSilent(boolean),
isSilent()public DialogEventHandler getDialogEventHandler()
null if it's
was not specified.
By default this method returns the
HeadlessBrowserDialogEventHandler implementation.
getDialogEventHandler in interface WebBrowsernull if it's
was not specified.
java.lang.IllegalStateException - when WebBrowser component was
disposed by invoking WebBrowser.close()
method or for some unknown reasons.setDialogEventHandler(DialogEventHandler),
setSilent(boolean),
isSilent()public void setNewWindowHandler(NewWindowEventHandler newWindowHandler)
setNewWindowHandler in interface WebBrowsernewWindowHandler - new window handlerpublic NewWindowEventHandler getNewWindowHandler()
getNewWindowHandler in interface WebBrowserpublic void addNewWindowListener(NewWindowEventListener listener)
addNewWindowListener in interface WebBrowserlistener - new window listenerpublic void removeNewWindowListener(NewWindowEventListener listener)
removeNewWindowListener in interface WebBrowserlistener - new window listenerpublic java.util.List<NewWindowEventListener> getNewWindowListeners()
getNewWindowListeners in interface WebBrowserpublic void trackChildren()
trackChildren in interface ParentWindowpublic WebBrowser getRecentChild()
trackChildren() method call.
getRecentChild in interface ParentWindowtrackChildren() method call.
If there isn't opened windows after this call then returns null.public WebBrowser waitChildCreation()
trackChildren() call and returns this child.
In other words, this method waits until getRecentChild() call returns non-null object.
waitChildCreation in interface ParentWindowpublic WebBrowser waitChildCreation(java.lang.Runnable operationThatCreatesChild)
waitChildCreation in interface ParentWindowoperationThatCreatesChild - operation
public void setKeyFilter(KeyFilter keyFilter)
setKeyFilter in interface WebBrowserkeyFilter - key filterpublic KeyFilter getKeyFilter()
getKeyFilter in interface WebBrowser
public void setCookie(java.lang.String url,
Cookie cookie)
CookieManager.setCookie(URL url, Cookie cookie) or
CookieManager.setCookies(URL url, Set cookies) methods instead.
InternetSetCookie native function.
setCookie in interface WebBrowserurl - specifies an URL, a new cookie will be associated with.cookie - specifies a new cookie.public java.util.Set<Cookie> getCookies(java.lang.String url)
CookieManager.getCookies(URL url) method instead.
InternetGetCookie native function.
getCookies in interface WebBrowserurl - specifies an URL.
public void setHtmlDialogListener(HtmlDialogListener listener)
window.showModalDialog and window.showModelessDialog
JavaScript functions.
listener - the specified HTML Dialog listener.getHtmlDialogListener()public HtmlDialogListener getHtmlDialogListener()
null if it's not
registered.
null if it's not
registered.setHtmlDialogListener(com.jniwrapper.win32.ie.event.HtmlDialogListener)public WebBrowser.Properties getProperties()
getProperties in interface WebBrowserpublic void addBrowserWindowListener(BrowserWindowListener listener)
WebBrowser
addBrowserWindowListener in interface WebBrowserlistener - the window listenerpublic void removeBrowserWindowListener(BrowserWindowListener listener)
WebBrowser
removeBrowserWindowListener in interface WebBrowserlistener - the window listenerpublic void setZoomValue(int value)
setZoomValue in interface WebBrowserpublic int getZoomValue()
getZoomValue in interface WebBrowser
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||