Package | Description |
---|---|
com.gargoylesoftware.htmlunit |
Framework classes
|
com.gargoylesoftware.htmlunit.html |
Classes specific to html pages
|
com.gargoylesoftware.htmlunit.html.xpath |
Jaxen XPath adapter implementation for the Htmlunit DOM
|
com.gargoylesoftware.htmlunit.javascript |
Classes in this package are specific for the javascript engine - users of HtmlUnit shouldn't
need anything in this package.
|
com.gargoylesoftware.htmlunit.javascript.host |
Implementations of the various javascript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
com.gargoylesoftware.htmlunit.xml |
Classes specific to xml pages
|
Modifier and Type | Class and Description |
---|---|
class |
SgmlPage
A basic class to be implemented by
HtmlPage and XmlPage . |
Modifier and Type | Class and Description |
---|---|
class |
BaseFrame
Base class for frame and iframe.
|
class |
ClickableElement
Intermediate base class for "clickable" HTML elements.
|
class |
DomCData
Representation of a CDATA node in the Html DOM.
|
class |
DomCharacterData
Wrapper for the DOM node CharacterData.
|
class |
DomComment
Wrapper for the DOM node Comment.
|
class |
DomDocumentFragment
A JavaScript object for DocumentFragment.
|
class |
DomElement |
class |
DomNamespaceNode
Intermediate base class for DOM Nodes that have namespaces.
|
class |
DomText
representation of a text node in the Html DOM
|
class |
FocusableElement
Deprecated.
As of 1.14, please use
ClickableElement instead. |
class |
HtmlAddress
Wrapper for the html element "address".
|
class |
HtmlAnchor
Wrapper for the html element "a"
|
class |
HtmlApplet
Wrapper for the html element "applet".
|
class |
HtmlArea
Wrapper for the html element "area".
|
class |
HtmlAttr
An attribute of an element.
|
class |
HtmlBase
Wrapper for the html element "base".
|
class |
HtmlBaseFont
Wrapper for the html element "basefont".
|
class |
HtmlBidirectionalOverride
Wrapper for the html element "bdo".
|
class |
HtmlBlockQuote
Wrapper for the html element "blockquote".
|
class |
HtmlBody
Wrapper for the html element "body".
|
class |
HtmlBreak
Wrapper for the html element "br".
|
class |
HtmlButton
Wrapper for the html element "button"
|
class |
HtmlButtonInput
Wrapper for the HTML element "input" where type is "button".
|
class |
HtmlCaption
Wrapper for the html element "caption".
|
class |
HtmlCenter
Wrapper for the html element "center".
|
class |
HtmlCheckBoxInput
Wrapper for the html element "input"
|
class |
HtmlDefinitionDescription
Wrapper for the html element "dd".
|
class |
HtmlDefinitionList
Wrapper for the html element "dl".
|
class |
HtmlDefinitionTerm
Wrapper for the html element "dt".
|
class |
HtmlDeletedText
Wrapper for the html element "del".
|
class |
HtmlDivision
Wrapper for the html element "div".
|
class |
HtmlElement
An abstract wrapper for html elements
|
class |
HtmlFieldSet
Wrapper for the html element "fieldset".
|
class |
HtmlFileInput
Wrapper for the HTML element "input".
|
class |
HtmlFont
Wrapper for the html element "font".
|
class |
HtmlForm
Wrapper for the html element "form"
|
class |
HtmlFrame
Wrapper for the html element "frame".
|
class |
HtmlFrameSet
Wrapper for the html element "frameset".
|
class |
HtmlHead
Wrapper for the html element "head".
|
class |
HtmlHeader1
Wrapper for the html element "h1".
|
class |
HtmlHeader2
Wrapper for the html element "h2".
|
class |
HtmlHeader3
Wrapper for the html element "h3".
|
class |
HtmlHeader4
Wrapper for the html element "h4".
|
class |
HtmlHeader5
Wrapper for the html element "h5".
|
class |
HtmlHeader6
Wrapper for the html element "h6".
|
class |
HtmlHiddenInput
Wrapper for the html element "input" of type "hidden".
|
class |
HtmlHorizontalRule
Wrapper for the html element "hr".
|
class |
HtmlHtml
A representation of an html element "html".
|
class |
HtmlImage
Wrapper for the html element "img".
|
class |
HtmlImageInput
Wrapper for the html element "input"
|
class |
HtmlInlineFrame
Wrapper for the HTML element "iframe".
|
class |
HtmlInlineQuotation
Wrapper for the html element "q".
|
class |
HtmlInput
Wrapper for the html element "input"
|
class |
HtmlInsertedText
Wrapper for the html element "ins".
|
class |
HtmlIsIndex
Wrapper for the html element "isindex".
|
class |
HtmlLabel
Wrapper for the html element "label".
|
class |
HtmlLegend
Wrapper for the html element "legend".
|
class |
HtmlLink
Wrapper for the html element "link".
|
class |
HtmlListItem
Wrapper for the html element "li".
|
class |
HtmlMap
Wrapper for the html element "map".
|
class |
HtmlMenu
Wrapper for the html element "menu".
|
class |
HtmlMeta
Wrapper for the HTML element "meta".
|
class |
HtmlNoFrames
Wrapper for the html element "noframes".
|
class |
HtmlNoScript
Wrapper for the html element "noscript".
|
class |
HtmlObject
Wrapper for the html element "object".
|
class |
HtmlOption
Wrapper for the html element "option"
|
class |
HtmlOptionGroup
Wrapper for the html element "optgroup".
|
class |
HtmlOrderedList
Wrapper for the html element "ol".
|
class |
HtmlPage
A representation of an HTML page returned from a server.
|
class |
HtmlParagraph
Wrapper for the html element "p".
|
class |
HtmlParameter
Wrapper for the html element "param".
|
class |
HtmlPasswordInput
Wrapper for the html element "input"
|
class |
HtmlPreformattedText
Wrapper for the html element "pre".
|
class |
HtmlRadioButtonInput
Wrapper for the html element "input"
|
class |
HtmlResetInput
Wrapper for the html element "input"
|
class |
HtmlScript
Wrapper for the html element "script".
When a script tag references an external script (with attribute src) it gets executed when the node is added to the DOM tree. |
class |
HtmlSelect
Wrapper for the HTML element "select".
|
class |
HtmlSpan
Wrapper for the html element "span".
|
class |
HtmlStyle
Wrapper for the html element "style".
|
class |
HtmlSubmitInput
Wrapper for the HTML element "input".
|
class |
HtmlTable
Wrapper for the HTML element "table".
|
class |
HtmlTableBody
Wrapper for the html element "tbody".
|
class |
HtmlTableCell
An abstract cell that provides the implementation for HtmlTableDataCell and
HtmlTableHeaderCell.
|
class |
HtmlTableColumn
Wrapper for the html element "col".
|
class |
HtmlTableColumnGroup
Wrapper for the html element "colgroup".
|
class |
HtmlTableDataCell
Wrapper for the html element "td"
|
class |
HtmlTableFooter
Wrapper for the html element "tfoot".
|
class |
HtmlTableHeader
Wrapper for the html element "thead".
|
class |
HtmlTableHeaderCell
Wrapper for the html "th" tag
|
class |
HtmlTableRow
Wrapper for the html element "tr"
|
class |
HtmlTextArea
Wrapper for the html element "textarea"
|
class |
HtmlTextDirection
Wrapper for the html element "dir".
|
class |
HtmlTextInput
Wrapper for the html element "input".
|
class |
HtmlTitle
Wrapper for the html element "title".
|
class |
HtmlUnorderedList
Wrapper for the html element "ul".
|
class |
StyledElement
Intermediate base class for "styled" HTML elements.
|
class |
TableRowGroup
Wrapper for the html element "tfoot".
|
class |
UnknownHtmlElement
An element that is returned for an html tag that is not supported by this
framework.
|
Modifier and Type | Method and Description |
---|---|
DomNode |
DomNode.appendChild(DomNode node)
Deprecated.
This method conflicts with the W3C DOM API since the return values are
different. Use appendDomChild instead.
|
DomNode |
DomNode.appendDomChild(DomNode node)
append a child node to the end of the current list
|
DomNode |
HtmlSelect.appendDomChild(DomNode node)
append a child node to the end of the current list
|
DomNode |
HtmlOption.appendDomChild(DomNode node)
append a child node to the end of the current list
|
DomNode |
HtmlScript.appendDomChild(DomNode node)
Executes the content as a script if said content is a text node.
|
DomNode |
HtmlElement.cloneDomNode(boolean deep)
Overrides
cloneDomNode(boolean) so clone gets its own Map of attributes. |
DomNode |
DomNode.cloneDomNode(boolean deep)
Make a clone of this node
|
DomNode |
HtmlElement.cloneNode(boolean deep)
Deprecated.
This method conflicts with the W3C DOM API since the return values are
different. Use
HtmlElement.cloneDomNode(boolean) instead. |
DomNode |
DomNode.cloneNode(boolean deep)
Deprecated.
This method conflicts with the W3C DOM API since the return values are
different. Use cloneDomNode instead.
|
DomNode |
HtmlPage.cloneNode(boolean deep)
Deprecated.
|
DomNode |
DomChangeEvent.getChangedNode()
Returns the node that has been added or deleted.
|
DomNode |
DomNode.getFirstChild()
Deprecated.
This method conflicts with the W3C DOM API since the return values are
different. Use getFirstDomChild instead.
|
DomNode |
DomNode.getFirstDomChild() |
DomNode |
DomNode.getLastChild()
Deprecated.
This method conflicts with the W3C DOM API since the return values are
different. Use getLastDomChild instead.
|
DomNode |
DomNode.getLastDomChild()
Get the last child DomNode.
|
DomNode |
DomNode.getNextDomSibling() |
DomNode |
DomNode.getNextSibling()
Deprecated.
This method conflicts with the W3C DOM API since the return values are
different. Use getNextDomSibling instead.
|
DomNode |
DomNode.getParentDomNode() |
DomNode |
DomNode.getParentNode()
Deprecated.
This method conflicts with the W3C DOM API since the return values are
different. Use getParentDomNode instead.
|
DomNode |
DomChangeEvent.getParentNode()
Returns the parent of the node that was changed.
|
DomNode |
DomNode.getPreviousDomSibling() |
DomNode |
DomNode.getPreviousSibling()
Deprecated.
This method conflicts with the W3C DOM API since the return values are
different. Use getPreviousDomSibling instead.
|
Modifier and Type | Method and Description |
---|---|
DomNode |
DomNode.appendChild(DomNode node)
Deprecated.
This method conflicts with the W3C DOM API since the return values are
different. Use appendDomChild instead.
|
DomNode |
DomNode.appendDomChild(DomNode node)
append a child node to the end of the current list
|
DomNode |
HtmlSelect.appendDomChild(DomNode node)
append a child node to the end of the current list
|
DomNode |
HtmlOption.appendDomChild(DomNode node)
append a child node to the end of the current list
|
DomNode |
HtmlScript.appendDomChild(DomNode node)
Executes the content as a script if said content is a text node.
|
ScriptResult |
HtmlPage.executeJavaScriptFunctionIfPossible(org.mozilla.javascript.Function function,
org.mozilla.javascript.Scriptable thisObject,
Object[] args,
DomNode htmlElementScope)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Execute a Function in the given context. |
protected void |
DomNode.fireNodeAdded(DomNode parentNode,
DomNode addedNode)
Support for reporting DOM changes.
|
protected void |
DomNode.fireNodeDeleted(DomNode parentNode,
DomNode deletedNode)
Support for reporting DOM changes.
|
static Iterator |
Util.getFollowingAxisIterator(DomNode contextNode)
Get an iterator over all following nodes, depth-first.
|
static Iterator |
Util.getFollowingSiblingAxisIterator(DomNode contextNode)
Get an iterator over all following nodes, depth-first.
|
static Iterator |
Util.getPrecedingAxisIterator(DomNode contextNode)
Get an iterator over all preceding nodes, depth-first.
|
static Iterator |
Util.getPrecedingSiblingAxisIterator(DomNode contextNode)
Get an iterator over all preceding siblings.
|
void |
DomNode.insertBefore(DomNode newNode)
Inserts a new child node before this node into the child relationship this node is a
part of.
|
void |
HtmlOption.insertBefore(DomNode newNode)
Inserts a new child node before this node into the child relationship this node is a
part of.
|
boolean |
DomNode.isAncestorOf(DomNode node)
Returns true if this node is an ancestor of the specified node.
|
static void |
HTMLParser.parseFragment(DomNode parent,
String source)
Parses the HTML content from the given string into an object tree representation.
|
void |
DomNode.replace(DomNode newNode)
Replaces this node with another node.
|
protected void |
DomNode.setNextSibling(DomNode next) |
protected void |
DomNode.setParentNode(DomNode parent)
Set the parent node
|
protected void |
DomNode.setPreviousSibling(DomNode previous) |
Constructor and Description |
---|
DomChangeEvent(DomNode parentNode,
DomNode changedNode)
Constructs a new DomChangeEvent from the given parent node and a changed node.
|
Modifier and Type | Method and Description |
---|---|
static org.jaxen.Navigator |
HtmlUnitXPath.buildSubtreeNavigator(DomNode node)
Builds a navigator that will see the provided node as the "document"
and only navigate in its children.
The returned navigator can only be used to evaluate xpath expressions on nodes of the same document as the provided one. |
Modifier and Type | Method and Description |
---|---|
DomNode |
SimpleScriptable.getDomNodeOrDie()
Return the DOM node that corresponds to this javascript object or throw
an exception if one cannot be found.
|
DomNode |
SimpleScriptable.getDomNodeOrNull()
Return the DOM node that corresponds to this javascript object
or null if a node hasn't been set.
|
Modifier and Type | Method and Description |
---|---|
Object |
JavaScriptEngine.callFunction(HtmlPage htmlPage,
Object javaScriptFunction,
Object thisObject,
Object[] args,
DomNode htmlElement)
Call a JavaScript function and return the result.
|
void |
HTMLCollection.init(DomNode node,
org.jaxen.XPath xpath)
Init the content of this collection.
|
void |
HTMLCollection.init(DomNode node,
org.jaxen.XPath xpath,
org.apache.commons.collections.Transformer transformer)
Init the content of this collection.
|
SimpleScriptable |
SimpleScriptable.makeScriptableFor(DomNode domNode)
Builds a new the javascript object that corresponds to the specified object.
|
void |
SimpleScriptable.setDomNode(DomNode domNode)
Set the DOM node that corresponds to this javascript object
|
protected void |
SimpleScriptable.setDomNode(DomNode domNode,
boolean assignScriptObject)
Set the DOM node that corresponds to this javascript object
|
Modifier and Type | Method and Description |
---|---|
protected Object |
Node.getJavaScriptNode(DomNode domNode)
Get the JavaScript node for a given DomNode
|
SimpleScriptable |
XMLDocument.makeScriptableFor(DomNode domNode)
Builds a new the javascript object that corresponds to the specified object.
|
void |
HTMLElement.setDomNode(DomNode domNode)
Set the DOM node that corresponds to this javascript object
|
void |
FormField.setDomNode(DomNode domNode)
Sets the associated dom node and sets the enclosing form as parent scope of the current element
|
protected void |
Attribute.setDomNode(DomNode domNode,
boolean assignScriptObject)
Ensures that all attributes are initialized correctly via
Attribute.init(String, HtmlElement) . |
Constructor and Description |
---|
Event(DomNode domNode,
String type)
Creates a new event instance.
|
Event(DomNode domNode,
String type,
boolean shiftKey,
boolean ctrlKey,
boolean altKey)
Creates a new event instance.
|
Event(DomNode domNode,
String type,
int keyCode,
boolean shiftKey,
boolean ctrlKey,
boolean altKey)
Creates a new event instance for a keypress event.
|
EventHandler(DomNode node,
String eventName,
String jsSnippet)
Builds a function that will execute the javascript code provided
|
MouseEvent(DomNode domNode,
String type,
boolean shiftKey,
boolean ctrlKey,
boolean altKey,
int button)
Creates a new event instance.
|
UIEvent(DomNode domNode,
String type,
boolean shiftKey,
boolean ctrlKey,
boolean altKey)
Creates a new UI event instance.
|
Modifier and Type | Class and Description |
---|---|
class |
XmlAttr
An attribute of an element.
|
class |
XmlElement
An XML element.
|
class |
XmlPage
A page that will be returned for response with content type "text/xml".
|
Modifier and Type | Method and Description |
---|---|
static void |
XmlUtil.appendChild(Page page,
DomNode parent,
Node child)
|
protected void |
XmlAttr.setParentNode(DomNode parent)
Set the parent node
|
Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.