Open topic with navigation

com.hp.lft.sdk.oracle

# Interface TreeView

Note: Supported in LeanFT versions 14.52 and later.

- All Superinterfaces:
    Clickable, EnabledProvider, LocationInfoProvider, TestObject, TestObjectDescriber, UiObjectBase, WaitUntilEnabledProvider

      public interface TreeView
      extends UiObjectBase, WaitUntilEnabledProvider, TestObject

  An Oracle Tree test object

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `activate(int item)` Activates (double-clicks) the specified item in the list.
    `void` | `activate(String item)` Activates (double-clicks) the specified item in the list.
    `void` | `activate(TreeViewNode item)` Activates (double-clicks) the specified item in the list.
    `String` | `buildNodePath(String... nodePathParts)` Returns the path of a node in the tree.
    `String` | `getCaption()` Returns the caption of the object.
    `String` | `getClassPath()` The Oracle class hierarchy of the object's Oracle class.
    `TreeViewNode` | `getNode(int node)` Returns the the specified node.
    `TreeViewNode` | `getNode(String node)` Returns the the specified node.
    `String` | `getObjectDescription()` Indicates accessibility description of the object as specified by the server.
    `String` | `getObjectName()` Indicates internal name of the object supplied by the application server.
    `TreeViewNode` | `getSelectedItem()` Returns the value of the selected item.
    `String` | `getTooltipText()` Indicates the text displayed in the object's tooltip.
    `void` | `select(int item)` Selects (clicks) the specified item in the tree.
    `void` | `select(String item)` Selects (clicks) the specified item in the tree.
    `void` | `select(TreeViewNode item)` Selects (clicks) the specified item in the tree.

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

      `getObjectType, sendKey`

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

      `click, click, click`

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

      `getAbsoluteLocation, getLocation, getSize`

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

    - #### getSelectedItem

          TreeViewNode getSelectedItem()
                                throws GeneralLeanFtException

      Returns the value of the selected item.
      Returns:
        the value of the selected item.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### getCaption

          String getCaption()
                     throws GeneralLeanFtException

      Returns the caption of the object.
      Returns:
        the caption of the object.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### getClassPath

          String getClassPath()
                       throws GeneralLeanFtException

      The Oracle class hierarchy of the object's Oracle class.
      Returns:
        the class hierarchy of the object's.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### getObjectDescription

          String getObjectDescription()
                               throws GeneralLeanFtException

      Indicates accessibility description of the object as specified by the server.
      Returns:
        the accessibility description of the object.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### getObjectName

          String getObjectName()
                        throws GeneralLeanFtException

      Indicates internal name of the object supplied by the application server.
      Returns:
        the internal name of the object.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### getTooltipText

          String getTooltipText()
                         throws GeneralLeanFtException

      Indicates the text displayed in the object's tooltip.
      Returns:
        the text displayed in the object's tooltip.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### getNode

          TreeViewNode getNode(String node)
                        throws GeneralLeanFtException

      Returns the the specified node.
      Parameters:
        `node` - The full path of the node to return within the tree.
      Returns:
        the the specified node.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### getNode

          TreeViewNode getNode(int node)
                        throws GeneralLeanFtException

      Returns the the specified node.
      Parameters:
        `node` - The index of the node.
      Returns:
        the the specified node.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### select

          void select(String item)
               throws GeneralLeanFtException

      Selects (clicks) the specified item in the tree.
      Parameters:
        `item` - the item to be selected.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### select

          void select(int item)
               throws GeneralLeanFtException

      Selects (clicks) the specified item in the tree.
      Parameters:
        `item` - the item to be selected (0-based).
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### select

          void select(TreeViewNode item)
               throws GeneralLeanFtException

      Selects (clicks) the specified item in the tree.
      Parameters:
        `item` - the item to be selected from `TreeViewNode`.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### activate

          void activate(String item)
                 throws GeneralLeanFtException

      Activates (double-clicks) the specified item in the list.
      Parameters:
        `item` - the item to be selected.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### activate

          void activate(int item)
                 throws GeneralLeanFtException

      Activates (double-clicks) the specified item in the list.
      Parameters:
        `item` - the item to be selected (0-based).
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### activate

          void activate(TreeViewNode item)
                 throws GeneralLeanFtException

      Activates (double-clicks) the specified item in the list.
      Parameters:
        `item` - the item to be selected from `TreeViewNode`.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### buildNodePath

          String buildNodePath(String... nodePathParts)

      Returns the path of a node in the tree.
      Parameters:
        `nodePathParts` - the node path parts must be strings. If a string is a full path, separate its items with "->" characters.
      Returns:
        the path constructed from the path parts.