Interface ElementContainerMethods<E extends Element, B extends TypedBuilder<E,B> >
- All Superinterfaces:
IsElement<E>, TypedBuilder<E,B>
- All Known Subinterfaces:
ElementContainerDelegate<E,B>
- All Known Implementing Classes:
HTMLContainerBuilder, Link, MathMLContainerMethods, SVGContainerBuilder
public interface ElementContainerMethods<E extends Element, B extends TypedBuilder<E,B>>
extends TypedBuilder<E,B>, IsElement<E>
Provides methods and default implementations for adding elements.
TodoRepository repository = new TodoRepository();
TodoElement[] elements = repository.todos().stream()
.map(TodoElement::new)
.toArray(TodoElement[]::new);
HTMLUListElement ul = ul()
.addAll(elements)
.element();
-
Method Summary
Modifier and TypeMethodDescriptiondefault BAdds the given node.default BAdds the given text as a text node.default BAdd the element returned by the supplier.default BAdds the given element by callingelement.element().default BAdds all elements.default BaddAll(HTMLElement... elements) Adds all HTML elements.default BAdds all nodes.default BAdds all elements.default BAdds all elements returned by the supplier.default BAdds all elements.Methods inherited from interface TypedBuilder
that
-
Method Details
-
add
-
add
-
add
-
add
-
addAll
-
addAll
-
addAll
Adds all HTML elements. -
addAll
-
addAll
-
addAll
-