Class TreeViewConfiguration

java.lang.Object
com.hp.lft.sdk.web.TreeViewConfiguration

public class TreeViewConfiguration extends Object
A set of xpath values to help the TreeView object perform Select, Expand and Collapse operation in cases where the default implementation cannot find the element needed.
  • Constructor Details

    • TreeViewConfiguration

      public TreeViewConfiguration(String selectXPath, String expandCollapseXPath)
      Create a new TreeViewConfiguration
      Parameters:
      selectXPath - the XPath value used to find the internal tree element used to select a tree node.
      Leave this value as a null value if the regular Select method runs correctly.
      expandCollapseXPath - the XPath value used to find the internal tree element used to expand and collapse a tree node.
      Leave this value as a null value if the regular Expand and Collapse methods run correctly.
    • TreeViewConfiguration

      public TreeViewConfiguration(String selectXPath, String expandXPath, String collapseXPath)
      Create a new TreeViewConfiguration
      Parameters:
      selectXPath - the XPath value used to find the internal tee element used to select a tree node.
      Leave this value as a null value if the regular Select method runs correctly.
      expandXPath - the XPath value used to find the internal tree element used to expand a tree node.
      Leave this value as a null value if the regular Expand method runs correctly.
      collapseXPath - the XPath value used to find the internal tree element used to collapse a tree node.
      Leave this value as a null value if the regular Collapse method runs correctly.
    • TreeViewConfiguration

      public TreeViewConfiguration(String selectXPath, String expandCollapseXPath, boolean forceExpandWithDoubleClick)
      Create a new TreeViewConfiguration
      Parameters:
      selectXPath - the XPath value used to find the internal tree element used to select a tree node.
      Leave this value as a null value if the regular Select method runs correctly.
      expandCollapseXPath - the XPath value used to find the internal tree element used to expand and collapse a tree node.
      Leave this value as a null value if the regular Expand and Collapse methods run properly.
      forceExpandWithDoubleClick - if true when expanding or collapsing a tree node, the expand/collapse is performed using a double click.
      If false, first a regular click is attempted. If that does not work, a double click is used.
    • TreeViewConfiguration

      public TreeViewConfiguration(String selectXPath, String expandXPath, String collapseXPath, boolean forceExpandWithDoubleClick)
      Create a new TreeViewConfiguration
      Parameters:
      selectXPath - the XPath value used to find the internal tree element used to select a tree node.
      Leave this value as a null value if the regular Select method runs correctly.
      expandXPath - the XPath value used to find the internal tree element used to expand a tree node.
      Leave this value as a null value if the regular Expand method runs correctly.
      collapseXPath - the XPath value used to find the internal tree element used to collapse a tree node.
      Leave this value as a null value if the regular Collapse method runs correctly.
      forceExpandWithDoubleClick - if true when expanding or collapsing a tree node, the expand/collapse is performed using a double click.
      If false, first a regular click is attempted. If that does not work, a double click is used.
  • Method Details

    • getSelectXPath

      public String getSelectXPath()
      Returns the XPath value used to find the internal tree element used to select a tree node.
      Returns:
      the XPpath value used to find the internal tree element used to select a tree node.
    • getExpandXPath

      public String getExpandXPath()
      Returns the XPath value used to find the internal tree element used to expand a tree node.
      Returns:
      the XPath used to find the internal tree element used to expand a tree node.
    • getCollapseXPath

      public String getCollapseXPath()
      Returns the XPath value used to find the internal tree element used to collapse a tree node.
      Returns:
      the XPath used to find the internal tree element used to collapse a tree node.
    • getForceExpandWithDoubleClick

      public boolean getForceExpandWithDoubleClick()
      Returns value used to determine if collapse or expand operations use only double click.
      Returns:
      value used to determine if collapse or expand operations use only double click.