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 TypeMethodDescriptiondefault voidinitOuia()Initializes OUIA attributes (data-ouia-component-typeanddata-ouia-safe) on this component's element.default voidInitializes OUIA attributes with a component ID on this component's element.Returns the OUIA component type identifier (e.g.default BSets thedata-ouia-component-idattribute on this component's element.default voidouiaSafe(boolean safe) Sets thedata-ouia-safeattribute on this component's element.default voidMarks the element as unsafe during a CSS transition and restores it to safe afterward.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-typeanddata-ouia-safe) on this component's element. -
initOuia
Initializes OUIA attributes with a component ID on this component's element. -
ouiaId
-
ouiaSafe
default void ouiaSafe(boolean safe) Sets thedata-ouia-safeattribute on this component's element. -
ouiaTransition
default void ouiaTransition()Marks the element as unsafe during a CSS transition and restores it to safe afterward.
-