public class DirectoryNode extends DefaultMutableTreeNode
| Modifier and Type | Class and Description |
|---|---|
private class |
DirectoryNode.DirectoryFilter |
private static class |
DirectoryNode.FileNameComparator
Compares files ignoring case sensitivity
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DIG_IN_SELECTION |
private File |
directory |
(package private) static DirectoryNode.FileNameComparator |
FILE_NAME_COMPARATOR
case insensitive file name's comparator
|
private boolean |
isDir |
private boolean |
isSelected |
private boolean |
loaded |
static int |
SINGLE_SELECTION |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject| Constructor and Description |
|---|
DirectoryNode(File file) |
DirectoryNode(File file,
boolean allowsChildren) |
DirectoryNode(File file,
boolean allowsChildren,
boolean isSelected,
boolean isChecked,
boolean isEditable) |
| Modifier and Type | Method and Description |
|---|---|
private static org.openide.filesystems.FileObject |
convertToValidDir(File f) |
boolean |
getAllowsChildren() |
File |
getFile() |
private ArrayList |
getFiles(JFileChooser chooser) |
boolean |
isLeaf() |
boolean |
isLoaded() |
boolean |
isNetBeansProject() |
boolean |
isSelected() |
boolean |
loadChildren(JFileChooser chooser,
boolean descend) |
void |
setFile(File file) |
void |
setSelected(boolean isSelected) |
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toStringpublic static final int SINGLE_SELECTION
public static final int DIG_IN_SELECTION
static final DirectoryNode.FileNameComparator FILE_NAME_COMPARATOR
private File directory
private boolean isDir
private boolean loaded
private boolean isSelected
public DirectoryNode(File file)
public DirectoryNode(File file, boolean allowsChildren)
public DirectoryNode(File file, boolean allowsChildren, boolean isSelected, boolean isChecked, boolean isEditable)
public boolean isLoaded()
public File getFile()
public void setFile(File file)
public void setSelected(boolean isSelected)
public boolean isLeaf()
isLeaf in interface TreeNodeisLeaf in class DefaultMutableTreeNodepublic boolean getAllowsChildren()
getAllowsChildren in interface TreeNodegetAllowsChildren in class DefaultMutableTreeNodepublic boolean isSelected()
public boolean loadChildren(JFileChooser chooser, boolean descend)
private ArrayList getFiles(JFileChooser chooser)
public boolean isNetBeansProject()
private static org.openide.filesystems.FileObject convertToValidDir(File f)
Copyright © 2007–2016 Gephi Consortium. All rights reserved.