Share this page

com.hp.lft.sdk.wpf

## Interface TreeViewNode

- All Superinterfaces:
    SupportDragAndDrop

      public interface TreeViewNode
      extends SupportDragAndDrop

  A single tree view node in a .NET WPF tree-view object.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `void` | `collapse()` Hides this node's sub-nodes in the expanded tree-view control.
    `void` | `expand()` Displays this node's hidden sub-nodes in the tree-view control.
    `void` | `expandAll()` Expands this node and all of the nodes below it in the tree-view control.
    `java.lang.String` | `getFirstChildPath()` Returns the full path of this node's first child node as a semicolon delimited string.
    `java.lang.String` | `getNextSiblingPath()` Returns the full path of this node's next sibling node as a semicolon delimited string.
    `java.lang.String` | `getParentPath()` Returns the full path of this node's parent node as a semicolon delimited string.
    `java.lang.String` | `getPath()` Returns the full path of this node as a semicolon delimited string.
    `int` | `getState()` Returns the state image index of this node.
    `java.lang.String` | `getText()` Returns the text of this node, or an empty string ("") if the node does not contain any text.
    `boolean` | `hasChildren()` Indicates whether this node has children.
    `boolean` | `isExpanded()` Indicates whether this node is expanded.
    `boolean` | `isSelected()` Indicates whether this node is selected.

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

      `dragAndDropOn, dragAndDropOn`

- - ### Method Detail

    - #### isExpanded

          boolean isExpanded()
                      throws GeneralLeanFtException

      Indicates whether this node is expanded.
      Returns:
        true if expanded
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getFirstChildPath

          java.lang.String getFirstChildPath()
                                      throws GeneralLeanFtException

      Returns the full path of this node's first child node as a semicolon delimited string.
      Returns:
        the full path of this node's first child node
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### hasChildren

          boolean hasChildren()
                       throws GeneralLeanFtException

      Indicates whether this node has children.
      Returns:
        true if has children
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getNextSiblingPath

          java.lang.String getNextSiblingPath()
                                       throws GeneralLeanFtException

      Returns the full path of this node's next sibling node as a semicolon delimited string.
      Returns:
        the full path of this node's next sibling node
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getParentPath

          java.lang.String getParentPath()
                                  throws GeneralLeanFtException

      Returns the full path of this node's parent node as a semicolon delimited string.
      Returns:
        the full path of this node's parent node
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getPath

          java.lang.String getPath()
                            throws GeneralLeanFtException

      Returns the full path of this node as a semicolon delimited string.
      Returns:
        the full path of this node
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### isSelected

          boolean isSelected()
                      throws GeneralLeanFtException

      Indicates whether this node is selected.
      Returns:
        true if selected
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getState

          int getState()
                throws GeneralLeanFtException

      Returns the state image index of this node.
      Returns:
        the state image index
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getText

          java.lang.String getText()
                            throws GeneralLeanFtException

      Returns the text of this node, or an empty string ("") if the node does not contain any text.
      Returns:
        the text
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### collapse

          void collapse()
                 throws GeneralLeanFtException

      Hides this node's sub-nodes in the expanded tree-view control.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### expand

          void expand()
               throws GeneralLeanFtException

      Displays this node's hidden sub-nodes in the tree-view control.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### expandAll

          void expandAll()
                  throws GeneralLeanFtException

      Expands this node and all of the nodes below it in the tree-view control.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

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: