Interface ElementConsumerMethods<E extends Element, B extends TypedBuilder<E,B>>

All Superinterfaces:
IsElement<E>, TypedBuilder<E,B>
All Known Implementing Classes:
HTMLContainerBuilder, HTMLElementBuilder, HTMLInputElementBuilder, HTMLSelectElementBuilder, HTMLTextAreaElementBuilder, Link, MathMLContainerMethods, MathMLElementBuilder, SVGContainerBuilder, SVGElementBuilder

public interface ElementConsumerMethods<E extends Element, B extends TypedBuilder<E,B>> extends TypedBuilder<E,B>, IsElement<E>
Provides methods and default implementations for modifying the element using consumers.
  • Method Summary

    Modifier and Type
    Method
    Description
    default B
    apply(Consumer<E> consumer)
    Provides a way to modify the wrapped element using the specified consumer.
    default B
    run(Consumer<B> consumer)
    Executes code in the context of this builder.

    Methods inherited from interface IsElement

    element

    Methods inherited from interface TypedBuilder

    that
  • Method Details

    • apply

      default B apply(Consumer<E> consumer)
      Provides a way to modify the wrapped element using the specified consumer.
    • run

      default B run(Consumer<B> consumer)
      Executes code in the context of this builder.