Share this page

com.hp.lft.sdk.java

# Interface TreeViewNode

-     public interface TreeViewNode

  A single node in a Java Tree.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `void` | `clickState()` Clicks the state icon of a node in a tree.
    `void` | `collapse()` Collapses an expandable node in a tree.
    `void` | `doubleClickState()` Double-clicks state icon of a node in a tree.
    `void` | `expand()` Expands an expandable node in a tree.
    `java.lang.String` | `getColumnValue(int columnIndex)` Returns the text of the column with the specified index.
    `java.lang.String` | `getColumnValue(java.lang.String columnName)` Returns the text of the column with the specified name.
    `java.lang.String` | `getPath()` Returns the path to the node in the tree.
    `void` | `openContextMenu()` Opens the context menu of a node in a tree.
    `void` | `setChecked(boolean state)` Sets the state of the node in the tree.
    `void` | `setNodeState(int index)` Sets the state of the node in the tree.

- - ### Method Detail

    - #### collapse

          void collapse()
                 throws GeneralLeanFtException

      Collapses an expandable node in a tree.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### expand

          void expand()
               throws GeneralLeanFtException

      Expands an expandable node in a tree.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### openContextMenu

          void openContextMenu()
                        throws GeneralLeanFtException

      Opens the context menu of a node in a tree.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### setNodeState

          void setNodeState(int index)
                     throws GeneralLeanFtException

      Sets the state of the node in the tree.
      Parameters:
        `index` - the state index.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### setChecked

          void setChecked(boolean state)
                   throws GeneralLeanFtException

      Sets the state of the node in the tree.
      Parameters:
        `state` - The new state of the check box: true - Checked, false - Unchecked.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### clickState

          void clickState()
                   throws GeneralLeanFtException

      Clicks the state icon of a node in a tree.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### doubleClickState

          void doubleClickState()
                         throws GeneralLeanFtException

      Double-clicks state icon of a node in a tree.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getColumnValue

          java.lang.String getColumnValue(int columnIndex)
                                   throws GeneralLeanFtException

      Returns the text of the column with the specified index.
      Parameters:
        `columnIndex` - 0-based index of the column.
      Returns:
        the text of the column of this node.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getColumnValue

          java.lang.String getColumnValue(java.lang.String columnName)
                                   throws GeneralLeanFtException

      Returns the text of the column with the specified name.
      Parameters:
        `columnName` - the name of the column.
      Returns:
        the text of the column of this node.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getPath

          java.lang.String getPath()

      Returns the path to the node in the tree.
      Returns:
        the path to the node in the tree

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: