Open topic with navigation

com.hp.lft.sdk.java

# Class TreeViewDescription

- java.lang.Object
- - com.hp.lft.sdk.internal.PropertiesDescriptionBase
  - - com.hp.lft.sdk.PropertiesDescription
    - - com.hp.lft.sdk.DescriptionBase
      - - com.hp.lft.sdk.java.UiObjectBaseDescription
        - - com.hp.lft.sdk.java.TreeViewDescription

- All Implemented Interfaces:
    CloneableObject, Description, com.hp.lft.sdk.internal.DescriptionWithVri, java.lang.Cloneable

      public class TreeViewDescription
      extends UiObjectBaseDescription

  The description of a Java Tree test object.

- - ### Nested Class Summary

    Modifier and Type | Class and Description
    --- | ---
    `static class` | `TreeViewDescription.Builder` This class can be used to construct an instance of the `TreeViewDescription` class using the builder pattern.
    `protected static class` | `TreeViewDescription.Init<T extends TreeViewDescription.Init<T>>` Helper class for `TreeViewDescription.Builder`.

  - ### Field Summary

    - ### Fields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase

      `properties`

  - ### Constructor Summary

    Modifier | Constructor and Description
    --- | ---
    `` | `TreeViewDescription()` Initializes a new instance of the `TreeViewDescription` class.
    `protected` | `TreeViewDescription(TreeViewDescription.Init<?> init)` Initializes a new instance of the `TreeViewDescription` class using the Builder pattern.

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `java.lang.Integer` | `getColumnsCount()` Returns the number of columns in the tree.
    `java.lang.String[]` | `getSelectedNodes()` Returns the selected nodes in the tree.
    `java.lang.Integer` | `getVisibleNodesCount()` Returns the number of visible nodes in the tree.
    `void` | `setColumnsCount(java.lang.Integer columnsCount)` Sets the number of columns in the tree.
    `void` | `setSelectedNodes(java.lang.String[] selectedNodes)` Sets the selected nodes in the tree.
    `void` | `setVisibleNodesCount(java.lang.Integer visibleNodesCount)` Sets the number of visible nodes.

    - ### Methods inherited from class com.hp.lft.sdk.java.UiObjectBaseDescription

      `getAbsoluteLocation, getAttachedText, getBackgroundColor, getForegroundColor, getLabel, getLocation, getNativeClass, getObjectName, getPath, getSize, getTagName, isEnabled, isFocused, isVisible, setAbsoluteLocation, setAbsoluteLocation, setAbsoluteLocation, setAttachedText, setAttachedText, setBackgroundColor, setBackgroundColor, setEnabled, setFocused, setForegroundColor, setForegroundColor, setLabel, setLabel, setLocation, setLocation, setLocation, setNativeClass, setNativeClass, setObjectName, setObjectName, setPath, setPath, setSize, setSize, setSize, setTagName, setTagName, setVisible`

    - ### Methods inherited from class com.hp.lft.sdk.DescriptionBase

      `cloneTo, getIndex, getIndexType, getVRI, setIndex, setIndexType, setVRI, setVRI`

    - ### Methods inherited from class com.hp.lft.sdk.PropertiesDescription

      `clone`

    - ### Methods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase

      `getValueAs, getValueAsStringProperty, insertValue`

    - ### Methods inherited from class java.lang.Object

      `equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

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

      `clone`

- - ### Constructor Detail

    - #### TreeViewDescription

          public TreeViewDescription()

      Initializes a new instance of the `TreeViewDescription` class.

    - #### TreeViewDescription

          protected TreeViewDescription(TreeViewDescription.Init<?> init)

      Initializes a new instance of the `TreeViewDescription` class using the Builder pattern.
      Parameters:
        `init` - the Builder pattern.

  - ### Method Detail

    - #### setVisibleNodesCount

          public void setVisibleNodesCount(java.lang.Integer visibleNodesCount)

      Sets the number of visible nodes.
      Parameters:
        `visibleNodesCount` - the number of visible nodes.

    - #### getVisibleNodesCount

          public java.lang.Integer getVisibleNodesCount()

      Returns the number of visible nodes in the tree.
      Returns:
        the number of visible nodes in the tree.

    - #### setColumnsCount

          public void setColumnsCount(java.lang.Integer columnsCount)

      Sets the number of columns in the tree.
      Parameters:
        `columnsCount` - the number of columns in the tree.

    - #### getColumnsCount

          public java.lang.Integer getColumnsCount()

      Returns the number of columns in the tree.
      Returns:
        the number of columns in the tree.

    - #### setSelectedNodes

          public void setSelectedNodes(java.lang.String[] selectedNodes)

      Sets the selected nodes in the tree.
      Parameters:
        `selectedNodes` - the selected nodes in the tree.

    - #### getSelectedNodes

          public java.lang.String[] getSelectedNodes()

      Returns the selected nodes in the tree.
      Returns:
        the selected nodes in the tree.