public class SelectFilesTreeCheckNode
extends javax.swing.tree.DefaultMutableTreeNode
Modifier and Type | Field and Description |
---|---|
static int |
DIG_IN_SELECTION |
protected boolean |
isSelected |
protected int |
selectionMode |
static int |
SINGLE_SELECTION |
Constructor and Description |
---|
SelectFilesTreeCheckNode(java.io.File file) |
SelectFilesTreeCheckNode(java.io.File file,
boolean allowsChildren,
boolean isSelected) |
Modifier and Type | Method and Description |
---|---|
javax.swing.tree.TreeNode |
getChildAt(int index) |
int |
getChildCount() |
java.io.File |
getFile() |
int |
getSelectionMode() |
boolean |
isFile() |
boolean |
isSelected() |
void |
setSelected(boolean isSelected) |
void |
setSelectionMode(int mode) |
java.lang.String |
toString() |
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildBefore, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
public static final int SINGLE_SELECTION
public static final int DIG_IN_SELECTION
protected int selectionMode
protected boolean isSelected
public SelectFilesTreeCheckNode(java.io.File file)
public SelectFilesTreeCheckNode(java.io.File file, boolean allowsChildren, boolean isSelected)
public void setSelectionMode(int mode)
public int getSelectionMode()
public void setSelected(boolean isSelected)
public boolean isSelected()
public boolean isFile()
public javax.swing.tree.TreeNode getChildAt(int index)
getChildAt
in interface javax.swing.tree.TreeNode
getChildAt
in class javax.swing.tree.DefaultMutableTreeNode
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
getChildCount
in class javax.swing.tree.DefaultMutableTreeNode
public java.io.File getFile()
public java.lang.String toString()
toString
in class javax.swing.tree.DefaultMutableTreeNode