Share this page

com.hp.lft.sdk.wpf

## Interface TreeView

- All Superinterfaces:
    Clickable, DoubleClickable, LocationInfoProvider, SupportDragAndDrop, SupportSendKeys, SupportsNativeObject, TestObject, TestObjectDescriber, UiObjectBase, VisibleProvider, WaitUntilVisibleProvider, WaitUntilEnabledProvider, EnabledProvider

      public interface TreeView
      extends UiObjectBase, TestObject

  A .NET WPF tree-view object.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getName()` Returns the name of this object.
    `TreeViewNode` | `getNode(java.lang.String nodePath)` Returns the node with the specified path.
    `java.lang.String` | `getParentText()` Returns the text associated with the parent object of this object.
    `java.util.List<TreeViewNode>` | `getSelectedNodes()` Returns the selected nodes in this tree-view object.
    `java.util.List<TreeViewNode>` | `getVisibleNodes()` Returns the visible nodes in this tree-view object.
    `void` | `select(int nodeIndex)` Selects a node in this tree-view object by node index.
    `void` | `select(java.lang.String nodePath)` Selects a node in this tree-view object by node path.
    `void` | `select(TreeViewNode node)` Selects a node in this tree-view object.

    - ### Methods inherited from interface com.hp.lft.sdk.wpf.UiObjectBase

      `canFocus, getAttachedText, getFullNamePath, getFullType, getObjectName, getObjectProperty, getText, makeVisible, showContextMenu`

    - ### Methods inherited from interface com.hp.lft.sdk.UiObjectBase

      `getHandle, getNativeClass, getWindowTitleRegExp, isEnabled, isFocused, isVisible, mouseMove`

    - ### Methods inherited from interface com.hp.lft.sdk.Clickable

      `click, click, click`

    - ### Methods inherited from interface com.hp.lft.sdk.DoubleClickable

      `doubleClick, doubleClick, doubleClick`

    - ### Methods inherited from interface com.hp.lft.sdk.LocationInfoProvider

      `getAbsoluteLocation, getLocation, getSize`

    - ### Methods inherited from interface com.hp.lft.sdk.SupportSendKeys

      `sendKeys, sendKeys`

    - ### Methods inherited from interface com.hp.lft.sdk.SupportDragAndDrop

      `dragAndDropOn, dragAndDropOn`

    - ### Methods inherited from interface com.hp.lft.sdk.SupportsNativeObject

      `getNativeObject`

    - ### Methods inherited from interface com.hp.lft.sdk.TestObject

      `exists, exists, findChildren, getDescription, getDisplayName, getParent, getSnapshot, getTextLocations, getTextLocations, getVisibleText, getVisibleText, highlight, highlightMatches, setDescription, setDisplayName, verifyImageExists, verifyImageExists, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, waitUntilExists, waitUntilExists`

    - ### Methods inherited from interface com.hp.lft.sdk.TestObjectDescriber

      `describe`

    - ### Methods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProvider

      `waitUntilEnabled, waitUntilEnabled`

    - ### Methods inherited from interface com.hp.lft.sdk.EnabledProvider

      `isEnabled`

    - ### Methods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProvider

      `waitUntilVisible, waitUntilVisible`

    - ### Methods inherited from interface com.hp.lft.sdk.VisibleProvider

      `isVisible`

- - ### Method Detail

    - #### getName

          java.lang.String getName()
                            throws GeneralLeanFtException

      Returns the name of this object.
      Returns:
        the name of this object.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getParentText

          java.lang.String getParentText()
                                  throws GeneralLeanFtException

      Returns the text associated with the parent object of this object.
      Returns:
        the text associated with the parent
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getVisibleNodes

          java.util.List<TreeViewNode> getVisibleNodes()
                                                throws GeneralLeanFtException

      Returns the visible nodes in this tree-view object.
      Returns:
        the visible nodes
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getSelectedNodes

          java.util.List<TreeViewNode> getSelectedNodes()
                                                 throws GeneralLeanFtException

      Returns the selected nodes in this tree-view object.
      Returns:
        the selected nodes
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### select

          void select(TreeViewNode node)
               throws GeneralLeanFtException

      Selects a node in this tree-view object.
      Parameters:
        `node` - node to select
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### select

          void select(java.lang.String nodePath)
               throws GeneralLeanFtException

      Selects a node in this tree-view object by node path.
      Parameters:
        `nodePath` - the path
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### select

          void select(int nodeIndex)
               throws GeneralLeanFtException

      Selects a node in this tree-view object by node index.
      Parameters:
        `nodeIndex` - the index
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getNode

                                                      TreeViewNode getNode(java.lang.String nodePath)

      Returns the node with the specified path. If the path is not unique, returns the first node with the specified path.
      Parameters:
        `nodePath` - Elements of the path are seperated by semi-colons (;).
      Returns:
        a node with the given path.

Tips to improve your search results... UFT Developer Java SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: