Class Ouia

java.lang.Object
org.patternfly.core.Ouia

public final class Ouia extends Object
Support for Open UI Automation.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    ouiaId(elemental2.dom.HTMLElement element, String componentId)
    Sets data-ouia-component-id, data-ouia-component-type, and data-ouia-safe="true" on the given HTML element.
    static void
    ouiaId(SVGElement element, String componentId)
    Sets data-ouia-component-id, data-ouia-component-type, and data-ouia-safe="true" on the given SVG element.
    static void
    ouiaSafe(elemental2.dom.HTMLElement element, boolean safe)
    Sets data-ouia-safe to the given value on the given HTML element.
    static void
    ouiaSafe(SVGElement element, boolean safe)
    Sets data-ouia-safe to the given value on the given SVG element.
    static void
    ouiaTransition(elemental2.dom.HTMLElement element)
    Marks the element as unsafe (data-ouia-safe="false") and restores it to safe after the CSS transition ends.
    static void
    ouiaType(elemental2.dom.HTMLElement element, String componentType)
    Sets data-ouia-component-type and data-ouia-safe="true" on the given HTML element.
    static void
    ouiaType(SVGElement element, String componentType)
    Sets data-ouia-component-type and data-ouia-safe="true" on the given SVG element.

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Ouia

      public Ouia()
  • Method Details

    • ouiaType

      public static void ouiaType(elemental2.dom.HTMLElement element, String componentType)
      Sets data-ouia-component-type and data-ouia-safe="true" on the given HTML element.
    • ouiaType

      public static void ouiaType(SVGElement element, String componentType)
      Sets data-ouia-component-type and data-ouia-safe="true" on the given SVG element.
    • ouiaId

      public static void ouiaId(elemental2.dom.HTMLElement element, String componentId)
      Sets data-ouia-component-id, data-ouia-component-type, and data-ouia-safe="true" on the given HTML element.
    • ouiaId

      public static void ouiaId(SVGElement element, String componentId)
      Sets data-ouia-component-id, data-ouia-component-type, and data-ouia-safe="true" on the given SVG element.
    • ouiaSafe

      public static void ouiaSafe(elemental2.dom.HTMLElement element, boolean safe)
      Sets data-ouia-safe to the given value on the given HTML element.
    • ouiaSafe

      public static void ouiaSafe(SVGElement element, boolean safe)
      Sets data-ouia-safe to the given value on the given SVG element.
    • ouiaTransition

      public static void ouiaTransition(elemental2.dom.HTMLElement element)
      Marks the element as unsafe (data-ouia-safe="false") and restores it to safe after the CSS transition ends. A fallback timeout ensures the element is marked safe even if no CSS transition is defined.