Interface ElementAttributeMethods<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 ElementAttributeMethods<E extends Element, B extends TypedBuilder<E,B>> extends TypedBuilder<E,B>, IsElement<E>
Provides methods and default implementations for modifying the attributes of an element.
  • Method Summary

    Modifier and Type
    Method
    Description
    default B
    aria(String name, boolean value)
    Adds an aria- attribute to the element.
    default B
    aria(String name, int value)
    Adds an aria- attribute to the element.
    default B
    aria(String name, String value)
    Adds an aria- attribute to the element.
    default B
    attr(String name, boolean value)
    Sets the specified attribute of the element.
    default B
    attr(String name, int value)
    Sets the specified attribute of the element.
    default B
    attr(String name, String value)
    Sets the specified attribute of the element.
    default B
    role(String role)
    Sets the specified role of the element.
    default B
    role(Role role)
    Sets the specified role of the element.

    Methods inherited from interface IsElement

    element

    Methods inherited from interface TypedBuilder

    that
  • Method Details

    • attr

      default B attr(String name, boolean value)
      Sets the specified attribute of the element.
    • attr

      default B attr(String name, int value)
      Sets the specified attribute of the element.
    • attr

      default B attr(String name, String value)
      Sets the specified attribute of the element.
    • aria

      default B aria(String name, boolean value)
      Adds an aria- attribute to the element.
      Parameters:
      name - The name of the aria attributes w/o the aria- prefix. However, it won't be added if it's already present.
    • aria

      default B aria(String name, int value)
      Adds an aria- attribute to the element.
      Parameters:
      name - The name of the aria attributes w/o the aria- prefix. However, it won't be added if it's already present.
    • aria

      default B aria(String name, String value)
      Adds an aria- attribute to the element.
      Parameters:
      name - The name of the aria attributes w/o the aria- prefix. However, it won't be added if it's already present.
    • role

      default B role(Role role)
      Sets the specified role of the element.
    • role

      default B role(String role)
      Sets the specified role of the element.