Share this page

com.hp.lft.sdk.sap.ui5

## 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.web.WebBaseDescription
        - - com.hp.lft.sdk.web.WebElementDescription
          - - com.hp.lft.sdk.sap.ui5.TreeViewDescription

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

      public class TreeViewDescription
      extends WebElementDescription

  The description of an SAPUI5 TreeView 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
    --- | ---
    `StringProperty` | `getSelectedNode()` Returns the path of the selected node of the tree view.
    `java.lang.String[]` | `getVisibleNodes()` Returns the collection of visible nodes in the tree view.
    `java.lang.Boolean` | `isEnabled()` Indicates whether the tree is enabled.
    `void` | `setEnabled(java.lang.Boolean isEnabled)` Sets whether the tree is enabled.
    `void` | `setSelectedNode(java.lang.String selectedNode)` Sets the path of the selected node of the tree view.
    `void` | `setSelectedNode(StringProperty selectedNode)` Sets the path of the selected node using a string property.
    `void` | `setVisibleNodes(java.lang.String[] nodes)` Initialize the visible nodes in the tree view object.

    - ### Methods inherited from class com.hp.lft.sdk.web.WebElementDescription

      `getAccessibilityName, getCSSSelector, getRole, getXPath, setAccessibilityName, setAccessibilityName, setCSSSelector, setCSSSelector, setRole, setRole, setXPath, setXPath`

    - ### Methods inherited from class com.hp.lft.sdk.web.WebBaseDescription

      `cloneTo, getAbsoluteLocation, getAttributes, getClassName, getId, getInnerHTML, getInnerText, getLocation, getName, getOuterHTML, getOuterText, getSize, getStyles, getTagName, getTitle, isVisible, setAbsoluteLocation, setAbsoluteLocation, setAbsoluteLocation, setAttributes, setClassName, setClassName, setId, setId, setInnerHTML, setInnerHTML, setInnerText, setInnerText, setLocation, setLocation, setLocation, setName, setName, setOuterHTML, setOuterHTML, setOuterText, setOuterText, setSize, setSize, setSize, setStyles, setTagName, setTagName, setTitle, setTitle, setVisible`

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

      `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

    - #### setEnabled

          public void setEnabled(java.lang.Boolean isEnabled)

      Sets whether the tree is enabled.
      Parameters:
        `isEnabled` - true to enable the object.

    - #### isEnabled

          public java.lang.Boolean isEnabled()

      Indicates whether the tree is enabled.
      Returns:
        true if enabled.

    - #### setVisibleNodes

          public void setVisibleNodes(java.lang.String[] nodes)

      Initialize the visible nodes in the tree view object.
      Parameters:
        `nodes` - the visible nodes to set in the tree view object.

    - #### getVisibleNodes

          public java.lang.String[] getVisibleNodes()

      Returns the collection of visible nodes in the tree view.
      Returns:
        the collection of visible nodes in the tree view.

    - #### setSelectedNode

          public void setSelectedNode(StringProperty selectedNode)

      Sets the path of the selected node using a string property.
      Parameters:
        `selectedNode` - a StringProperty (or RegExpProperty) representing the path of the selected node.

    - #### setSelectedNode

          public void setSelectedNode(java.lang.String selectedNode)

      Sets the path of the selected node of the tree view.
      Parameters:
        `selectedNode` - the path of the selected node of the tree view.

    - #### getSelectedNode

          public StringProperty getSelectedNode()

      Returns the path of the selected node of the tree view.
      Returns:
        the path of the selected node of the tree view.

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: