Class TristateCheckBoxTree

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable
Direct Known Subclasses:
OpGraphCheckBoxTree, ParticipantSelector, ReportTreeCheckboxTree, SessionSelector, WizardOptionalsCheckboxTree

public class TristateCheckBoxTree extends JTree
Tree component with checkbox controls.
See Also:
  • Constructor Details

  • Method Details

    • setCheckingStateForPath

      public void setCheckingStateForPath(TreePath path, TristateCheckBoxState state)
      Set the checking state for given path.
      Parameters:
      path -
      state -
    • setCheckingStateForPaths

      public void setCheckingStateForPaths(Iterable<TreePath> pathItr, TristateCheckBoxState state)
      Set state for multiple paths
      Parameters:
      pathItr -
      state -
    • getCheckedPaths

      public List<TreePath> getCheckedPaths()
      Get a list of all nodes with a checked state.
      Returns:
      list of all checked nodes
    • getPartiallyCheckedPaths

      public List<TreePath> getPartiallyCheckedPaths()
      Get a list of all nodes which are partially checked.
      Returns:
      list of all partially checked paths
    • getUncheckedPaths

      public List<TreePath> getUncheckedPaths()
      Get a list of all unchecked nodes
      Returns:
      list of all unchecked nodes
    • getPathsWithState

      public List<TreePath> getPathsWithState(TristateCheckBoxState state)
      Get a list of all nodes with the specified state.
      Parameters:
      state -
      Returns:
      list of all nodes with specified state
    • getPathsWithState

      public List<TreePath> getPathsWithState(TreePath path, TristateCheckBoxState state)
      Get a list of all nodes with the specified state.
      Parameters:
      path -
      state -
      Returns:
      list of all nodes with specified state
    • isPathChecked

      public boolean isPathChecked(TreePath path)
      Is the path checked.
      Parameters:
      path -
      Returns:
      boolean
    • isPathPartiallyChecked

      public boolean isPathPartiallyChecked(TreePath path)
      Is the path partially checked
      Parameters:
      path -
      Returns:
      boolean
    • isPathUnchecked

      public boolean isPathUnchecked(TreePath path)
      Is the path unchecked
      Parameters:
      path -
      Returns:
      boolean
    • getCheckingStateForPath

      public TristateCheckBoxState getCheckingStateForPath(TreePath path)
      Return path checkbox state.
      Parameters:
      path -
      Returns:
      checkbox state for path or
      invalid @link
      TristateCheckBoxState.UNCHECKED
      if not a checkbox tree node
    • userPathToTreePath

      public TreePath userPathToTreePath(Object[] userPath)
      Find the tree path, if any, which contains the give user object path.
      Parameters:
      userPath -
      Returns:
      the tree path if found, null otherwise
    • findNodeWithUserObject

      public TreeNode findNodeWithUserObject(TreeNode rootNode, Object userObject)
    • getRoot

      public TreeNode getRoot()
      Get root of tree.
      Returns:
      root node
    • expandAll

      public void expandAll()
    • expandAll

      public void expandAll(TreePath path)