com.hp.lft.sdk.uiapro

Enum SelectOptions

Supported in UFT Developer version 24.2 and later

UIA Pro is supported as a technical preview.

    • Enum Constant Detail

      • TakeFocus

        public static final SelectOptions TakeFocus
        Sets the focus to the object and makes it the selection anchor. Used by itself, this flag does not alter the selection. The effect is similar to moving the focus manually by pressing an ARROW key while holding down the CTRL key in Windows Explorer or in any multiple-selection list box.
      • TakeSelection

        public static final SelectOptions TakeSelection
        Selects the object and removes the selection from all other objects in the container. Unless it is combined with TakeFocus , this flag does not change the focus or the selection anchor. The TakeSelection TakeFocus combination is equivalent to single - clicking an item in Windows Explorer.
      • ExtendSelection

        public static final SelectOptions ExtendSelection
        Alters the selection so that all objects between the selection anchor and this object take on the anchor object's selection state. If the anchor object is not selected, the objects are removed from the selection. If the anchor object is selected, the selection is extended to include this object and all the objects in between. Set the selection state by combining this flag with AddSelection or RemoveSelection Unless it is combined with TakeFocus , this flag does not change the focus or the selection anchor. The ExtendSelection | TakeFocus combination is equivalent to adding an item to a selection manually by holding down the SHIFT key and clicking an unselected object in Windows Explorer. This flag is not combined with TakeSelection .
      • AddSelection

        public static final SelectOptions AddSelection
        Adds the object to the current selection; possible result is a noncontiguous selection. Unless it is combined with TakeFocus , this flag does not change the focus or the selection anchor. The AddSelection | TakeFocus combination is equivalent to adding an item to a selection manually by holding down the CTRL key and clicking an unselected object in Windows Explorer. This flag is not combined with RemoveSelection or TakeSelection
      • RemoveSelection

        public static final SelectOptions RemoveSelection
        Removes the object from the current selection; possible result is a noncontinuous selection. Unless it is combined with TakeFocus , this flag does not change the focus or the selection anchor. The RemoveSelection | TakeFocus combination is equivalent to removing an item from a selection manually, by holding down the CTRL key while clicking a selected object in Windows Explorer. This flag is not combined with AddSelection or TakeSelection
    • Method Detail

      • values

        public static SelectOptions[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SelectOptions c : SelectOptions.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SelectOptions valueOf(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null
      • getValue

        public Integer getValue()
        Returns the integer value representing the SelectOptions value.
        Specified by:
        getValue in interface com.hp.lft.sdk.internal.EnumValueProvider<Integer>
        Returns:
        the integer value representing the SelectOptions value.