Enum Class ProviderOptions

java.lang.Object
java.lang.Enum<ProviderOptions>
at.bestsolution.uia.ProviderOptions
All Implemented Interfaces:
INativeEnum, Serializable, Comparable<ProviderOptions>, Constable

public enum ProviderOptions extends Enum<ProviderOptions> implements INativeEnum
Contains values that specify the type of UI Automation provider. The IRawElementProviderSimple::ProviderOptions property uses this enumeration.
  • Enum Constant Details

    • ProviderOptions_ClientSideProvider

      public static final ProviderOptions ProviderOptions_ClientSideProvider
      The provider is a client-side (proxy) provider.
    • ProviderOptions_ServerSideProvider

      public static final ProviderOptions ProviderOptions_ServerSideProvider
      The provider is a server-side provider.
    • ProviderOptions_NonClientAreaProvider

      public static final ProviderOptions ProviderOptions_NonClientAreaProvider
      The provider is a non-client-area provider.
    • ProviderOptions_OverrideProvider

      public static final ProviderOptions ProviderOptions_OverrideProvider
      The provider overrides another provider.
    • ProviderOptions_ProviderOwnsSetFocus

      public static final ProviderOptions ProviderOptions_ProviderOwnsSetFocus
      The provider handles its own focus, and does not want UI Automation to set focus to the nearest window on its behalf. This option is typically used by providers for windows that appear to take focus without actually receiving Win32 focus, such as menus and drop-downs.
    • ProviderOptions_UseComThreading

      public static final ProviderOptions ProviderOptions_UseComThreading
      The provider has explicit support for COM threading models, so that calls by UI Automation on COM-based providers are received on the appropriate thread. This means that STA-based provider implementations will be called back on their own STA thread, and therefore do not need extra synchronization to safely access resources that belong to that STA. MTA-based provider implementations will be called back on some other thread in the MTA, and will require appropriate synchronization to be added, as is usual for MTA code.
    • ProviderOptions_RefuseNonClientSupport

      public static final ProviderOptions ProviderOptions_RefuseNonClientSupport
      The provider handles its own non-client area and does not want UI Automation to provide default accessibility support for controls in the non-client area, such as minimize/maximize buttons and menu bars.
    • ProviderOptions_HasNativeIAccessible

      public static final ProviderOptions ProviderOptions_HasNativeIAccessible
      The provider implements the IAccessible interface.
    • ProviderOptions_UseClientCoordinates

      public static final ProviderOptions ProviderOptions_UseClientCoordinates
      The provider works in client coordinates instead of screen coordinates.
  • Method Details

    • values

      public static ProviderOptions[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ProviderOptions valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getNativeValue

      public int getNativeValue()
      Specified by:
      getNativeValue in interface INativeEnum
    • getConstantName

      public String getConstantName()
      Specified by:
      getConstantName in interface INativeEnum
    • fromNativeValue

      public static Optional<ProviderOptions> fromNativeValue(int nativeValue)