Share this page

com.hp.lft.sdk.powerbuilder

## Interface TreeView

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

      public interface TreeView
      extends UiObjectWithLayoutInfo, TestObject

  A power builder tree-view object.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `activateNode(int nodeIndex)` Activates (double-clicks) a node in the tree-view object by node index.
    `void` | `activateNode(int nodeIndex, MouseButton button)` Activates (double-clicks) a node in the tree-view object by node index.
    `void` | `activateNode(String nodePath)` Activates (double-clicks) a node in the tree-view object by node path.
    `void` | `activateNode(String nodePath, MouseButton button)` Activates (double-clicks) a node in the tree-view object by node path.
    `void` | `activateNode(TreeViewNode node)` Activates (double-clicks) a node in the tree-view object with a tree-view node.
    `void` | `activateNode(TreeViewNode node, MouseButton button)` Activates (double-clicks) a node in the tree-view object with a tree view node.
    `List<TreeViewNode>` | `getCheckedVisibleNodes()` Retrieves the checked visible nodes in the tree-view object.
    `TreeViewNode` | `getNode(String nodePath)` Returns a node with the given path.
    `List<TreeViewNode>` | `getSelectedNodes()` Returns all the selected nodes in the tree-view object.
    `List<TreeViewNode>` | `getVisibleNodes()` Returns all visible nodes in the tree-view object.
    `void` | `select(int nodeIndex)` Selects a node in the tree-view object by node index.
    `void` | `select(int nodeIndex, MouseButton button)` Selects a node in the tree-view object by node index.
    `void` | `select(String nodePath)` Selects a node in the tree-view object by node path.
    `void` | `select(String nodePath, MouseButton button)` Selects a node in the tree-view control by node path.
    `void` | `select(TreeViewNode node)` Selects a node in the tree-view object.
    `void` | `select(TreeViewNode node, MouseButton button)` Selects a node in the tree-view control.

    - ### Methods inherited from interface com.hp.lft.sdk.powerbuilder.UiObjectWithLayoutInfo

      `isRightAligned, isRightToLeftLayout, isRightToLeftReading`

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

      `getAttachedText, getObjectName, getText, getWindowClassRegExp, getWindowExtendedStyle, getWindowId, getWindowStyle`

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

      `getHandle, getNativeClass, getWindowTitleRegExp, isFocused, 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.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`

    - ### 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`

- - ### Method Detail

    - #### activateNode

          void activateNode(TreeViewNode node,
                            MouseButton button)
                     throws GeneralLeanFtException

      Activates (double-clicks) a node in the tree-view object with a tree view node.
      Parameters:
        `node` - specified node to activate in the tree view object.
        `button` - the mouse button used to activate the tree view node. Possible values: `MouseButton`
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### activateNode

          void activateNode(String nodePath,
                            MouseButton button)
                     throws GeneralLeanFtException

      Activates (double-clicks) a node in the tree-view object by node path.
      Parameters:
        `nodePath` - specified node to activate in the tree-view object.
        `button` - the mouse button used to activate the tree view node. Possible values: `MouseButton`
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### activateNode

          void activateNode(int nodeIndex,
                            MouseButton button)
                     throws GeneralLeanFtException

      Activates (double-clicks) a node in the tree-view object by node index.
      Parameters:
        `nodeIndex` - the node index to activate.
        `button` - the mouse button used to activate the tree view node. Possible values: `MouseButton`
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### activateNode

          void activateNode(TreeViewNode node)
                     throws GeneralLeanFtException

      Activates (double-clicks) a node in the tree-view object with a tree-view node.
      Parameters:
        `node` - specified node to activate in the tree view control.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### activateNode

          void activateNode(String nodePath)
                     throws GeneralLeanFtException

      Activates (double-clicks) a node in the tree-view object by node path.
      Parameters:
        `nodePath` - specified node to activate in the tree-view object.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### activateNode

          void activateNode(int nodeIndex)
                     throws GeneralLeanFtException

      Activates (double-clicks) a node in the tree-view object by node index.
      Parameters:
        `nodeIndex` - the node index to activate.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### getCheckedVisibleNodes

          List<TreeViewNode> getCheckedVisibleNodes()
                                             throws GeneralLeanFtException

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

    - #### getVisibleNodes

          List<TreeViewNode> getVisibleNodes()
                                      throws GeneralLeanFtException

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

    - #### getSelectedNodes

          List<TreeViewNode> getSelectedNodes()
                                       throws GeneralLeanFtException

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

    - #### select

          void select(TreeViewNode node,
                      MouseButton button)
               throws GeneralLeanFtException

      Selects a node in the tree-view control.
      Parameters:
        `node` - specified node to select from the tree view object.
        `button` - the mouse button used to select the node. Possible values: `MouseButton`
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### select

          void select(String nodePath,
                      MouseButton button)
               throws GeneralLeanFtException

      Selects a node in the tree-view control by node path.
      Parameters:
        `nodePath` - specified node to select in the tree view object.
        `button` - the mouse button used to select the node. Possible values: `MouseButton`
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### select

          void select(int nodeIndex,
                      MouseButton button)
               throws GeneralLeanFtException

      Selects a node in the tree-view object by node index.
      Parameters:
        `nodeIndex` - the node index to select.
        `button` - the mouse button used to select the node. Possible values: `MouseButton`
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### select

          void select(TreeViewNode node)
               throws GeneralLeanFtException

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

    - #### select

          void select(String nodePath)
               throws GeneralLeanFtException

      Selects a node in the tree-view object by node path.
      Parameters:
        `nodePath` - specified node to select from the tree view object.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### select

          void select(int nodeIndex)
               throws GeneralLeanFtException

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

    - #### getNode

          TreeViewNode getNode(String nodePath)

      Returns a node with the given path. If the given path is not unique, the first item with the given path is retrieved.
      Parameters:
        `nodePath` - the path of the node to retrieve separated by ; char.
      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: