Java JTree Path isTreePathContainedInExpansionState(TreePath treePath, ArrayList expansionStateStrings)

Here you can find the source of isTreePathContainedInExpansionState(TreePath treePath, ArrayList expansionStateStrings)

Description

is Tree Path Contained In Expansion State

License

Apache License

Declaration

private static boolean isTreePathContainedInExpansionState(TreePath treePath,
            ArrayList<String> expansionStateStrings) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.ArrayList;

import javax.swing.tree.TreePath;

public class Main {
    private static boolean isTreePathContainedInExpansionState(TreePath treePath,
            ArrayList<String> expansionStateStrings) {
        if (treePath != null && expansionStateStrings != null) {
            return expansionStateStrings.contains(treePath.toString());
        }/*from w  w  w  .ja v  a  2 s . com*/
        return false;
    }
}

Related

  1. getUserObject(TreePath path)
  2. isDescendant(TreePath path1, final TreePath path2)
  3. isDescendant(TreePath path1, final TreePath path2)
  4. isFile(TreePath path)
  5. isSource(TreePath path)
  6. lastPathComponents(TreePath[] paths)
  7. loadExpansionState(JTree tree, Enumeration expansionState)
  8. makeLocalFilePath(TreePath treePath)
  9. makeTreePath(TreeNode treeNode)