DOMGeneratorDelegate<T> class
Delegates operations to another DOMGenerator.
- Implemented types
-
- DOMGenerator<
T>
- DOMGenerator<
Constructors
-
DOMGeneratorDelegate(DOMGenerator<
T> domGenerator)
Properties
-
domActionExecutor
↔ DOMActionExecutor<
T> ? -
getter/setter pairoverride
-
domContext
↔ DOMContext<
T> ? -
getter/setter pairoverride
-
domGenerator
→ DOMGenerator<
T> -
final
-
generatedHTMLTrees
→ List<
String> -
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- populateGeneratedHTMLTrees ↔ bool
-
getter/setter pairoverride
-
registeredElementsGenerators
→ Map<
String, ElementGenerator< T> > -
no setteroverride
- registeredElementsGeneratorsLength → int
-
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceResolver ↔ String Function(String url)?
-
Function used by resolveSource.
getter/setter pairoverride
- viewport → Viewport?
-
no setteroverride
Methods
-
addChildToElement(
T? parent, T? child) → bool -
override
-
addExternalElementToElement(
T element, Object? externalElement) → List< T> ? -
override
-
appendElementText(
T element, String? text) → T? -
override
-
appendElementTextNode(
T element, TextNode? textNode) → T? -
override
-
attachFutureElement(
DOMElement? domParent, T? parent, DOMNode domElement, T? templateElement, Object? futureElementResolved, DOMTreeMap< T> treeMap, DOMContext<T> ? context) → void -
override
-
build(
DOMElement? domParent, T? parent, DOMNode domNode, DOMTreeMap< T> treeMap, DOMContext<T> ? context) → T? -
override
-
buildDOMAsyncElement(
DOMElement? domParent, T? parent, DOMAsync domElement, DOMTreeMap< T> treeMap, DOMContext<T> ? context) → T? -
override
-
buildElement(
DOMElement? domParent, T? parent, DOMElement domElement, DOMTreeMap< T> treeMap, DOMContext<T> ? context) → T -
override
-
buildElementHTML(
T element) → String? -
override
-
buildExternalElement(
DOMElement? domParent, T? parent, ExternalElementNode domElement, DOMTreeMap< T> treeMap, DOMContext<T> ? context) → T? -
override
-
buildNodes(
DOMElement? domParent, T? parent, List< DOMNode> ? domNodes, DOMTreeMap<T> treeMap, DOMContext<T> ? context) → List<T> -
override
-
buildTemplate(
DOMElement? domParent, T? parent, TemplateNode domNode, DOMTreeMap< T> treeMap, DOMContext<T> ? context) → T? -
override
-
buildText(
DOMElement? domParent, T? parent, TextNode domNode, DOMTreeMap< T> treeMap) → T? -
override
-
cancelEvent(
Object? event, {bool stopImmediatePropagation = false}) → bool -
override
-
canHandleExternalElement(
Object? externalElement) → bool -
override
-
castToNodes(
List list) → List< T> -
override
-
clearIgnoredAttributesEquivalence(
) → void -
override
-
containsNode(
T parent, T? node) → bool -
override
-
createDOMEvent(
DOMTreeMap< T> treeMap, Object? event) → DOMEvent? -
override
-
createDOMMouseEvent(
DOMTreeMap< T> treeMap, Object? event) → DOMMouseEvent? -
override
-
createDOMNodeRuntime(
DOMTreeMap< T> treeMap, DOMNode? domNode, T node) → DOMNodeRuntime<T> ? -
override
-
createDOMTreeMap(
) → DOMTreeMap< T> -
override
-
createElement(
String? tag, [DOMElement? domElement]) → T? -
override
-
createGenericDOMTreeMap(
) → DOMTreeMap< T> -
override
-
createTextNode(
Object? text) → T? -
override
-
createWithRegisteredElementGenerator(
DOMElement? domParent, T? parent, DOMElement domElement, DOMTreeMap< T> treeMap, DOMContext<T> ? context) → T? -
override
-
finalizeGeneratedTree(
DOMTreeMap< T> treeMap) → void -
override
-
generate(
DOMNode root, {DOMTreeMap< T> ? treeMap, T? parent, DOMContext<T> ? context, bool finalizeTree = true, bool setTreeMapRoot = true}) → T? -
Generates an element
T
usingroot
.override -
generateDOMAsyncElement(
DOMElement? domParent, T? parent, DOMAsync domAsync, DOMTreeMap< T> treeMap, DOMContext<T> ? context) → T? -
override
-
generateFromHTML(
String htmlRoot, {DOMTreeMap< T> ? treeMap, DOMElement? domParent, T? parent, DOMContext<T> ? context, bool finalizeTree = true, bool setTreeMapRoot = true}) → T? -
Same as generate, but parses
htmlRoot
first.override -
generateFutureElement(
DOMElement? domParent, T? parent, DOMNode domElement, Future future, DOMTreeMap< T> treeMap, DOMContext<T> ? context) → T? -
override
-
generateMapped(
DOMElement root, {T? parent, DOMContext< T> ? context}) → DOMTreeMap<T> -
Same as generate, but returns a DOMTreeMap, that contains all
mapping table fo generated elements.
override
-
generateNodes(
List< DOMNode> nodes, {DOMContext<T> ? context}) → List<T> -
override
-
generateWithRoot(
DOMElement? domRoot, T? rootElement, List< DOMNode> nodes, {DOMTreeMap<T> ? treeMap, T? rootParent, DOMContext<T> ? context, bool finalizeTree = true, bool setTreeMapRoot = true}) → T? -
Same as generate, but generates
nodes
inside a preexistentrootElement
.override -
getAttribute(
T element, String attrName) → String? -
override
-
getDOMNodeText(
TextNode domNode) → String -
override
-
getElementAttributes(
T? element) → Map< String, String> ? -
override
-
getElementNodes(
T? element) → List< T> -
override
-
getElementOuterHTML(
T? element) → String? -
override
-
getElementTag(
T? element) → String? -
override
-
getElementValue(
T? element) → String? -
override
-
getIgnoredAttributesEquivalence(
) → List< String> -
override
-
getNodeParent(
T? node) → T? -
override
-
getNodeParentsUntilRoot(
T? node) → List< T> -
override
-
getNodeText(
T? node) → String? -
override
-
ignoreAttributeEquivalence(
String attributeName) → void -
override
-
isChildOfElement(
T? parent, T? child) → bool -
override
-
isElementGeneratorTag(
String? tag) → bool -
override
-
isElementNode(
T? node) → bool -
override
-
isEquivalentNode(
DOMNode domNode, T node) → bool -
override
-
isEquivalentNodeType(
DOMNode domNode, T node) → bool -
override
-
isIgnoreAttributeEquivalence(
String attributeName) → bool -
override
-
isNodeInDOM(
T? node) → bool -
override
-
isTextNode(
T? node) → bool -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onElementCreated(
DOMTreeMap< T> treeMap, DOMNode domElement, T element, DOMContext<T> ? context) → void -
override
-
registerElementGenerator(
ElementGenerator< T> elementGenerator) → bool -
override
-
registerElementGeneratorFrom(
DOMGenerator< T> otherGenerator) → bool -
override
-
registerEventListeners(
DOMTreeMap< T> treeMap, DOMElement domElement, T element, DOMContext<T> ? context) → void -
override
-
removeChildFromElement(
T element, T? child) → bool -
override
-
removeIgnoredAttributeEquivalence(
String attributeName) → bool -
override
-
replaceChildElement(
T element, T? child1, List< T> ? child2) → bool -
override
-
replaceElement(
T? child1, List< T> ? child2) → bool -
override
-
reset(
) → void -
Resets instances and generated tree.
override
-
resolveActionAttribute(
DOMTreeMap< T> treeMap, DOMElement domElement, T element, DOMContext<T> ? context) → void -
override
-
resolveFutureElement(
DOMElement? domParent, T? parent, DOMNode domElement, T? templateElement, Object? futureResult, DOMTreeMap< T> treeMap, DOMContext<T> ? context) → Object? -
override
-
resolveSource(
String url) → String -
Resolves any source attribute.
override
-
revert(
DOMTreeMap< T> ? treeMap, T? node) → DOMNode? -
Reverts
node
to a DOMNode.override -
revertElementAttributes(
T? element, Map< String, String> ? attributes) → Map<String, String> ? -
override
-
setAttribute(
T element, String attrName, String? attrVal) → void -
override
-
setAttributes(
DOMElement domElement, T element, DOMTreeMap< T> treeMap, {bool preserveClass = false, bool preserveStyle = false}) → void -
override
-
toElements(
Object? elements) → List< T> ? -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited