Interface IUIAElement

All Superinterfaces:
IInitable
All Known Subinterfaces:
IUIAVirtualElement, IUIAVirtualRootElement

public interface IUIAElement extends IInitable
central interface of the openfx-uia api.

In the UIA API this interface represents several interfaces:

  • IRawElementProviderSimple
  • IRawElementProviderFragment
  • IRawElementProviderRoot??

This adoption of the UIA api is required to wire it with javafx.

  • Method Details

    • getId

      default int getId()
      the id
      Returns:
      the id
    • getAutomationId

      default String getAutomationId()
      The automation id
      Returns:
      the automation id
    • getControlType

      default ControlType getControlType()
      the controltype of the element
      Returns:
      the control type
    • getBounds

      Bounds getBounds()
      The bounds of the element, in screen space

      this method is from the IRawElementProviderFragment

      Returns:
      the elements bounds in screen space
    • SetFocus

      void SetFocus()
      Sets the focus to this element.

      this method is from the IRawElementProviderFragment

    • withContext

      default <C> void withContext(Class<C> contextType, Consumer<C> run)
    • isProviderAvailable

      default boolean isProviderAvailable(Class<?> providerType)
    • getProvider

      default <T> T getProvider(Class<T> providerType)
    • GetFocusDelegate

      default IUIAElement GetFocusDelegate()