Interface OuiaSupport<E extends HTMLElement, B extends TypedBuilder<E,B>>

All Superinterfaces:
IsElement<E>, TypedBuilder<E,B>

public interface OuiaSupport<E extends HTMLElement, B extends TypedBuilder<E,B>> extends TypedBuilder<E,B>, IsElement<E>
Interface for components that support Open UI Automation. Implement this interface in custom components to participate in OUIA without extending PatternFly Java base classes.

Usage:

public class MyWidget implements IsElement<HTMLElement>, OuiaSupport<HTMLElement, MyWidget> {

    public MyWidget() {
        initOuia();
    }

    @Override
    public String ouiaComponentType() {
        return "MyApp/MyWidget";
    }
}
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Initializes OUIA attributes (data-ouia-component-type and data-ouia-safe) on this component's element.
    default void
    Initializes OUIA attributes with a component ID on this component's element.
    Returns the OUIA component type identifier (e.g.
    default B
    Sets the data-ouia-component-id attribute on this component's element.
    default void
    ouiaSafe(boolean safe)
    Sets the data-ouia-safe attribute on this component's element.
    default void
    Marks the element as unsafe during a CSS transition and restores it to safe afterward.

    Methods inherited from interface IsElement

    element

    Methods inherited from interface TypedBuilder

    that
  • Method Details

    • ouiaComponentType

      String ouiaComponentType()
      Returns the OUIA component type identifier (e.g. "PF6/Component/Button" or "MyApp/MyWidget").
    • initOuia

      default void initOuia()
      Initializes OUIA attributes (data-ouia-component-type and data-ouia-safe) on this component's element.
    • initOuia

      default void initOuia(String id)
      Initializes OUIA attributes with a component ID on this component's element.
    • ouiaId

      default B ouiaId(String id)
      Sets the data-ouia-component-id attribute on this component's element.
    • ouiaSafe

      default void ouiaSafe(boolean safe)
      Sets the data-ouia-safe attribute on this component's element.
    • ouiaTransition

      default void ouiaTransition()
      Marks the element as unsafe during a CSS transition and restores it to safe afterward.