public interface StyledOverlayBuilder
DOMWindow, to display informations| Modifier and Type | Interface and Description |
|---|---|
static interface |
StyledOverlayBuilder.Rect |
| Modifier and Type | Method and Description |
|---|---|
void |
addFixedHTMLBox(String innerHTML,
StyledOverlayBuilder.Rect boundingRect,
String... classNames) |
void |
addInfobox(StyledNode referenceNode,
org.apache.commons.lang3.tuple.Pair<String,String> keyValues,
String... classNames)
Decorates this overlay with an additional one to show textual information, in form of key/value pairs, each of them
associated with css classes for styling purpose
|
StyledOverlayBuilder |
addNode(StyledNode parent,
StyledNode node)
Add a node as child of another one.
|
StyledOverlayBuilder |
addRootNode(StyledNode item)
Add a
StyledNode as root |
StyledOverlay |
build(String cssRules)
Builds the (immutable)
StyledOverlay |
StyledNode |
createNode(String xpathLocator,
String... classNames)
Crate a
StyledNode associated to the given CSS class names. |
StyledRangeNode |
createRangeNode(String locatorForTextNode,
org.apache.commons.lang3.tuple.Pair<Integer,Integer> range,
String... classNames) |
StyledRangeNode |
createRangeNode(String startTextNodeXPathLocator,
String endTextNodeXPathLocator,
org.apache.commons.lang3.tuple.Pair<Integer,Integer> range,
String... classNames) |
StyledOverlayBuilder.Rect |
createRect(int top,
int left,
int width,
int height) |
StyledOverlayBuilder.Rect createRect(int top, int left, int width, int height)
StyledOverlay build(String cssRules)
StyledOverlaystring - StyledOverlayBuilder addRootNode(StyledNode item)
StyledNode as rootitem - the root node to addWebAPIRuntimeException - if the root node is already presentStyledOverlayBuilder addNode(StyledNode parent, StyledNode node)
parent - the parent nodenode - the node to addvoid addInfobox(StyledNode referenceNode, org.apache.commons.lang3.tuple.Pair<String,String> keyValues, String... classNames)
referenceNode - keyValues - classNames - StyledNode createNode(String xpathLocator, String... classNames)
StyledNode associated to the given CSS class names. This node refers a DOMNode addressed by
xpath.xpathLocator - the expression locating one DOMNode in the current page.classNames - list of CSS class names for the created nodeStyledNode, not attached to the StyledOverlay being buildStyledRangeNode createRangeNode(String startTextNodeXPathLocator, String endTextNodeXPathLocator, org.apache.commons.lang3.tuple.Pair<Integer,Integer> range, String... classNames)
startTextNodeXPathLocator - endTextNodeXPathLocator - range - classNames - StyledRangeNode createRangeNode(String locatorForTextNode, org.apache.commons.lang3.tuple.Pair<Integer,Integer> range, String... classNames)
locatorForTextNode - range - classNames - void addFixedHTMLBox(String innerHTML, StyledOverlayBuilder.Rect boundingRect, String... classNames)
Copyright © 2020 OXPath Team. All rights reserved.