Class SVGElementBuilder<E extends SVGElement>
java.lang.Object
org.jboss.elemento.svg.SVGElementBuilder<E>
- All Implemented Interfaces:
ElementAttributeMethods<E, SVGElementBuilder<E>>, ElementClassListMethods<E, SVGElementBuilder<E>>, ElementConsumerMethods<E, SVGElementBuilder<E>>, ElementEventMethods<E, SVGElementBuilder<E>>, ElementIdMethods<E, SVGElementBuilder<E>>, ElementQueryMethods<E>, ElementTextMethods<E, SVGElementBuilder<E>>, IsElement<E>, SVGElementDataMethods<E, SVGElementBuilder<E>>, SVGElementStyleMethods<E, SVGElementBuilder<E>>, TypedBuilder<E, SVGElementBuilder<E>>
public class SVGElementBuilder<E extends SVGElement>
extends Object
implements ElementAttributeMethods<E, SVGElementBuilder<E>>, ElementClassListMethods<E, SVGElementBuilder<E>>, ElementConsumerMethods<E, SVGElementBuilder<E>>, ElementEventMethods<E, SVGElementBuilder<E>>, ElementIdMethods<E, SVGElementBuilder<E>>, ElementQueryMethods<E>, ElementTextMethods<E, SVGElementBuilder<E>>, SVGElementDataMethods<E, SVGElementBuilder<E>>, SVGElementStyleMethods<E, SVGElementBuilder<E>>
Builder for simple SVG elements.
svg().css("spinner", "large")
.aria("label", "Loading...")
.attr("role", "progressbar")
.attr("viewBox", "0 0 100 100")
.add(circle().css("spinner", "path")
.attr("cx", 50)
.attr("cy", 50)
.attr("r", 45)
.attr("fill", "none"));
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface ElementConsumerMethods
apply, runMethods inherited from interface ElementEventMethods
on, on, onMethods inherited from interface ElementIdMethods
id, uniqueIdMethods inherited from interface ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface ElementTextMethods
text, textMethods inherited from interface SVGElementDataMethods
data
-
Constructor Details
-
SVGElementBuilder
-
-
Method Details
-
that
Description copied from interface:TypedBuilderTo make builders work with inheritance, sub-builders must return a reference to their instance.- Specified by:
thatin interfaceTypedBuilder<E extends SVGElement, SVGElementBuilder<E extends SVGElement>>
-
element
- Specified by:
elementin interfaceIsElement<E extends SVGElement>- Returns:
- the element of the custom component
-