Package | Description |
---|---|
org.pepstock.charba.client.dom |
Contains all classes needed to work with DOM tree, base classes of a DOM tree.
|
org.pepstock.charba.client.dom.elements |
Contains a set of DOM elements that Charba is using.
|
Modifier and Type | Class and Description |
---|---|
class |
NamedNodeMap<T extends BaseNode>
Represents a collection of attributes objects.
|
class |
NodeList<T extends BaseNode>
Maps the java script object which is a collections of nodes,
|
Modifier and Type | Class and Description |
---|---|
class |
BaseAttribute
Represents one of a DOM element's attributes as an object.
|
class |
BaseDocument
Represents any web page loaded in the browser and serves as an entry point in the the web page's content, which is the DOM tree.
It provides functionality globally to the document, like how to obtain the page's URL and create new elements in the document. |
class |
BaseElement
Base class from which all element objects (objects that represent elements) in a document inherit.
It only has methods and properties common to all kinds of elements. |
class |
BaseHtmlDocument
Extends the document to include methods and properties that are specific to HTML documents.
|
class |
BaseHtmlElement
Represents any HTML element.
|
Modifier and Type | Method and Description |
---|---|
BaseNode |
BaseNode.appendChild(BaseNode newChild)
Adds a node to the end of the list of children of a specified parent node.
If the given child is a reference to an existing node in the document, it moves it from its current position to the new position (there is no requirement to remove the node from its parent node before appending it to some other node). |
BaseNode |
BaseNode.cloneNode(boolean deep)
Clone the node, and optionally, all of its contents.
|
BaseNode |
BaseNode.getFirstChild()
Returns a node representing the first direct child node of the node, or
null if the node has no child. |
BaseNode |
BaseNode.getLastChild()
Returns a node representing the last direct child node of the node, or
null if the node has no child. |
BaseNode |
MutationRecord.getNextSibling()
Returns the next sibling of the added or removed nodes, or null.
|
BaseNode |
BaseNode.getNextSibling()
Returns a node representing the next node in the tree, or
null if there isn't such node. |
BaseNode |
BaseNode.getParentNode()
Returns a node that is the parent of this node.
If there is no such node, returns null . |
BaseNode |
MutationRecord.getPreviousSibling()
Returns the previous sibling of the added or removed nodes, or null.
|
BaseNode |
BaseNode.getPreviousSibling()
Returns a node representing the previous node in the tree, or
null if there isn't such node. |
BaseNode |
MutationRecord.getTarget()
Returns the node the mutation affected, depending on the
MutationType . |
BaseNode |
BaseNode.insertBefore(BaseNode newChild,
BaseNode refChild)
Inserts a node before the reference node as a child of a specified parent node.
|
BaseNode |
BaseNode.removeChild(BaseNode oldChild)
Removes a child node from the current element, which must be a child of the current node.
|
Modifier and Type | Method and Description |
---|---|
NodeList<BaseNode> |
BaseNode.getChildNodes()
Returns a list containing all the children of this node.
|
Modifier and Type | Method and Description |
---|---|
BaseNode |
BaseNode.appendChild(BaseNode newChild)
Adds a node to the end of the list of children of a specified parent node.
If the given child is a reference to an existing node in the document, it moves it from its current position to the new position (there is no requirement to remove the node from its parent node before appending it to some other node). |
BaseNode |
BaseNode.insertBefore(BaseNode newChild,
BaseNode refChild)
Inserts a node before the reference node as a child of a specified parent node.
|
void |
MutationObserver.observe(BaseNode target)
Configures the mutation observer to begin receiving notifications through its callback function when DOM changes matching the given options occur.
|
void |
MutationObserver.observe(BaseNode target,
MutationObserverInit options)
Configures the mutation observer to begin receiving notifications through its callback function when DOM changes matching the given options occur.
|
BaseNode |
BaseNode.removeChild(BaseNode oldChild)
Removes a child node from the current element, which must be a child of the current node.
|
Modifier and Type | Class and Description |
---|---|
class |
Body
Represents the content of an HTML document.
There can be only one body element in a document. |
class |
Canvas
Represents a DOM element that enables drawing graphics and animations with own the canvas scripting API.
|
class |
Context2dItem
DOM object which provides the 2D rendering context for the drawing surface of a canvas element.
It is used for drawing shapes, text, images, and other objects. |
class |
Div
Provides a <div> DOM HTML element.
|
class |
Head
Contains the descriptive information, or metadata, for a document.
|
class |
Heading
Represents <h3> levels of section heading.
Used internally only to highlight when canvas is not supported. |
class |
Img
Represents an HTML <img> element, providing the properties and methods used to manipulate image elements.
|
class |
LineBreak
Produces a line break in text (carriage-return).
|
class |
Meta
Represents an HTML <meta> element which contains descriptive metadata about a document.
|
class |
Script
Provides special properties and methods for manipulating the behavior and execution of <script> elements
|
class |
Span
Represents a generic inline container for phrasing content, which does not inherently represent anything.
|
class |
Style
Represents a <style> and doesn't allow to manipulate the CSS it contains.
|
class |
Table
Provides special properties and methods for manipulating the layout and presentation of tables in an HTML document.
|
class |
TableCell
Provides special properties and methods for manipulating the layout and presentation of table cells, either header or data cells, in an HTML document.
|
class |
TableRow
Provides special properties and methods for manipulating the layout and presentation of rows in an HTML table.
|
class |
TextNode
Represents the textual content of an element or attribute.
If an element has no markup within its content, it has a single child implementing text node that contains the element's text. |