com.hp.lft.sdk.java

Interface TreeView

    • Method Detail

      • getVisibleNodesCount

        int getVisibleNodesCount()
                          throws GeneralLeanFtException
        Returns the number of visible nodes in the tree.
        Returns:
        the number of visible nodes.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • buildNodePath

        java.lang.String buildNodePath(java.lang.Object... nodePathParts)
        Returns the path of a node in the tree.
        Parameters:
        nodePathParts - the node path parts can be: text(string) or numeric index(int). Index values are 0-based.
        Returns:
        the tree node path.
      • activateNode

        void activateNode(java.lang.String nodePath)
                   throws GeneralLeanFtException
        Activates a node in the tree by node path.
        Parameters:
        nodePath - the full path of the node to activate.
        Tip: Use the buildNodePath(java.lang.Object...) method to build the node path string to be used as the nodePath argument for this method.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • deselect

        void deselect(java.lang.String... nodesPaths)
               throws GeneralLeanFtException
        Clears the selection of nodes in the tree by nodes paths.
        Parameters:
        nodesPaths - the paths of the nodes to deselect.
        Tip: Use the buildNodePath(java.lang.Object...) method to build the node path strings to be used as arguments for this method.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • deselectRange

        void deselectRange(java.lang.String fromNodePath,
                           java.lang.String toNodePath)
                    throws GeneralLeanFtException
        Clears the selection of the specified range of nodes in the tree.
        Parameters:
        fromNodePath - 0-based index of the first node in the range.
        Tip: Use the buildNodePath(java.lang.Object...) method to build the node path strings to be used as the fromNodePath and toNodePath arguments for this method.
        toNodePath - 0-based index of the last node of the range.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • extendSelect

        void extendSelect(java.lang.String... nodesPaths)
        	throws GeneralLeanFtException

        Selects additional nodes in the tree.

        Parameters:
        nodePaths - the paths of the nodes to add to the selection.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • getColumnHeader

        java.lang.String getColumnHeader(int columnIndex)
                                  throws GeneralLeanFtException
        Returns the header of the specified column in the tree.
        Parameters:
        columnIndex - 0-based index of the column from which to return the value.
        Returns:
        the header of the specified column.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • select

        void select(java.lang.String... nodesPaths)
             throws GeneralLeanFtException
        Selects the specified nodes by nodes paths.
        Parameters:
        nodesPaths - the paths of the nodes to select.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • selectRange

        void selectRange(java.lang.String fromNodePath,
                         java.lang.String toNodePath)
                  throws GeneralLeanFtException
        Selects the specified range of nodes.
        Parameters:
        fromNodePath - 0-based index of the first node in the range.
        toNodePath - 0-based index of the last node of the range. Tip: Use the buildNodePath(java.lang.Object...) method to build the node path strings to be used as the fromNodePath and toNodePath arguments for this method.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.