public class ScreenScraperWebBrowser
extends java.util.Observable
Modifier and Type | Field and Description |
---|---|
(package private) ClickedTag |
lastClickedFormField |
Modifier and Type | Method and Description |
---|---|
void |
disableFormListeners()
Disables listening to form fields on the currently loaded webpage
|
void |
enableFormListeners()
Enables listening to form fields on the currently loaded webpage
|
void |
executeScriptAndWait(java.lang.String script)
Executes javascript on the Xpcom thread
|
void |
executeScriptLater(java.lang.String script)
Executes javascript on the Xpcom thread
|
java.awt.Component |
getComponent() |
org.w3c.dom.Document |
getDocument() |
static ScreenScraperWebBrowser |
getInstance() |
com.teamdev.jxbrowser.WebBrowser |
getjxBrowser() |
org.w3c.dom.Node |
getLastClickedForm()
Returns the DOM node of the last clicked object
|
org.w3c.dom.Node |
getLastClickedNode()
Returns the DOM node of the last clicked object
|
org.mozilla.interfaces.nsIWebBrowser |
getMozillaBrowser() |
void |
loadDefaultScripts()
Loads the default javascript libraries into the currently loaded webpage
|
void |
loadScriptLibrary(java.lang.String fileName)
Loads the given javascript file into the currently loaded webpage
|
void |
navigate(java.lang.String url) |
void |
printDOM()
Prints the DOM tree of the currently loaded webpage
|
void |
reset()
Resets the the browser for a new page
|
void |
setContent(java.lang.String content,
java.lang.String contentType) |
void |
setContentWithContext(java.lang.String content,
java.lang.String contentType,
java.lang.String contextURI) |
void |
setHTMLContent(java.lang.String content) |
ClickedTag lastClickedFormField
public static ScreenScraperWebBrowser getInstance()
public org.w3c.dom.Node getLastClickedNode()
public org.w3c.dom.Node getLastClickedForm()
public void executeScriptLater(java.lang.String script)
script
- the javascript to runpublic void executeScriptAndWait(java.lang.String script)
script
- the javascript to runpublic void loadScriptLibrary(java.lang.String fileName)
fileName
- the path to the javascript file to loadpublic void loadDefaultScripts()
public void enableFormListeners()
public void disableFormListeners()
public void reset()
public void printDOM()
public java.awt.Component getComponent()
public org.w3c.dom.Document getDocument()
public void navigate(java.lang.String url)
public void setHTMLContent(java.lang.String content)
public void setContent(java.lang.String content, java.lang.String contentType)
public void setContentWithContext(java.lang.String content, java.lang.String contentType, java.lang.String contextURI)
public com.teamdev.jxbrowser.WebBrowser getjxBrowser()
public org.mozilla.interfaces.nsIWebBrowser getMozillaBrowser()