Package | Description |
---|---|
com.teamdev.jxbrowser.dom |
Provides the interfaces and classes for the Document Object Model (DOM).
|
Modifier and Type | Interface and Description |
---|---|
interface |
FormControlElement
An HTML DOM form control element such as input, select, textarea, etc.
|
interface |
FormElement
An HTML DOM form element.
|
interface |
FrameElement
An HTML DOM frame or iframe element.
|
interface |
ImageElement
An HTML DOM image element.
|
interface |
InputElement
An HTML DOM input element.
|
interface |
OptionElement
An HTML DOM option element.
|
interface |
SelectElement
An HTML DOM select element.
|
interface |
TextAreaElement
An HTML DOM textarea element.
|
Modifier and Type | Method and Description |
---|---|
Element |
Document.createElement(java.lang.String tagName)
Creates and returns a new DOM element with the given
tagName . |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<Element> |
Document.documentElement()
Returns an
Optional that contains the document HTML element that usually represents
HTML tag, otherwise an empty Optional if the document element is not available. |
java.util.Optional<Element> |
SearchContext.findElementByClassName(java.lang.String className)
Returns the first
Element object found in the current search context by the given
className . |
java.util.Optional<Element> |
SearchContext.findElementByCssSelector(java.lang.String cssSelector)
Returns the first
Element object found in the current search context by the given
cssSelector . |
java.util.Optional<Element> |
SearchContext.findElementById(java.lang.String id)
Returns the first
Element object found in the current search context by the given
id . |
java.util.Optional<Element> |
SearchContext.findElementByName(java.lang.String name)
Returns the first
Element object found in the current search context by the given
name . |
java.util.Optional<Element> |
SearchContext.findElementByTagName(java.lang.String tagName)
Returns the first
Element object found in the current search context by the given
tagName . |
java.util.List<Element> |
SearchContext.findElementsByClassName(java.lang.String className)
Returns an immutable list of the
Element objects found in the current search context
by the given className . |
java.util.List<Element> |
SearchContext.findElementsByCssSelector(java.lang.String cssSelector)
Returns an immutable list of the
Element objects found in the current search context
by the given cssSelector . |
java.util.List<Element> |
SearchContext.findElementsById(java.lang.String id)
Returns an immutable list of the
Element objects found in the current search context
by the given id . |
java.util.List<Element> |
SearchContext.findElementsByName(java.lang.String name)
Returns an immutable list of the
Element objects found in the current search context
by the given name . |
java.util.List<Element> |
SearchContext.findElementsByTagName(java.lang.String tagName)
Returns an immutable list of the
Element objects found in the current search context
by the given tagName . |
java.util.Optional<Element> |
Document.focusedElement()
Returns an
Optional that contains the currently focused element in the document,
otherwise an empty Optional if there is no focused element in this document. |
java.util.Optional<Element> |
Attribute.ownerElement()
Returns an
Optional that contains the owner element of the attribute if such owner
exists, otherwise returns an empty Optional . |
default java.util.Optional<Element> |
PointInspection.urlElement()
Returns the link
Element when a link is located at the point. |