UIComponentGenerator<C extends UIComponent> class

A generator of UIComponent based in a HTML tag, for dom_builder (extends ElementGenerator).

Inheritance
Available Extensions

Constructors

UIComponentGenerator(String tag, String generatedTag, String componentClass, String componentStyle, UIComponentInstantiator<C> instantiator, Iterable<UIComponentAttributeHandler<UIComponent, dynamic>> attributes, {bool hasChildrenElements = true, bool usesContentHolder = true, bool contentAsText = false})

Properties

attributes Map<String, UIComponentAttributeHandler<UIComponent, dynamic>>
final
componentClass DOMAttributeValueSet
final
componentStyle DOMAttributeValueCSS
final
generatedTag String
final
hasChildrenElements bool
If true indicated that this generated element has children nodes.
final
hashCode int
The hash code for this object.
no setterinherited
instantiator UIComponentInstantiator<C>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tag String
final
usesContentHolder bool
If true will use a div as a content holder, with already generated content to be passed to generate call.
final

Methods

appendAttribute<T>(C uiComponent, String name, dynamic value) → void
clearAttribute<T>(C uiComponent, String name) → void
generate(DOMGenerator<UINode> domGenerator, DOMTreeMap<UINode> treeMap, String? tag, DOMElement? domParent, UINode? parent, DOMNode domNode, Map<String, DOMAttribute> attributes, UINode? contentHolder, List<DOMNode>? contentNodes, DOMContext<UINode>? context) → UIElement
override
getAttribute<T>(C uiComponent, String name) → T?
getAttributeHandler(String? name) UIComponentAttributeHandler<UIComponent, dynamic>?
isGeneratedElement(UINode element) bool
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
revert(DOMGenerator<UINode> domGenerator, DOMTreeMap<UINode>? treeMap, DOMElement? domParent, UIElement? parent, UIElement? node) DOMElement?
override
setAttribute<T>(C uiComponent, String name, dynamic value) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited