Interface SelectionPattern


public interface SelectionPattern
The methods and properties used to interact with a container control that contains selectable items. The children of this element support the SelectionItemPattern.
  • Method Details

    • canSelectMultipleItems

      boolean canSelectMultipleItems() throws GeneralLeanFtException
      Returns:
      Indicates whether more than one item in the container can be selected at one time.
      Throws:
      GeneralLeanFtException - if error occurs during execution.
    • isSelectionRequired

      boolean isSelectionRequired() throws GeneralLeanFtException
      Returns:
      Gets a value that specifies whether the container requires at least one child item to be selected.
      Throws:
      GeneralLeanFtException - if error occurs during execution.
    • getSelectedChildrenAsUIObjects

      List<UiObject> getSelectedChildrenAsUIObjects() throws GeneralLeanFtException
      Retrieves all the selected items from the container.
      Note: This method is not supported when you enable the legacy UIA Pro Add-in
      Returns:
      All selected items from the container.
      Throws:
      GeneralLeanFtException - if error occurs during execution.
    • getSelectedChildren

      @Deprecated List<Object> getSelectedChildren() throws GeneralLeanFtException
      Deprecated.
      Retrieves all the selected items from the container.
      Note: This method is only supported when you enable the legacy UIA Pro Add-in
      Returns:
      All selected items from the container.
      Throws:
      GeneralLeanFtException - if error occurs during execution.