public class SelectFilesTreeCheckNode extends DefaultMutableTreeNode
Modifier and Type | Field and Description |
---|---|
static int |
DIG_IN_SELECTION |
protected boolean |
isSelected |
protected int |
selectionMode |
static int |
SINGLE_SELECTION |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
Constructor and Description |
---|
SelectFilesTreeCheckNode(File file) |
SelectFilesTreeCheckNode(File file,
boolean allowsChildren,
boolean isSelected) |
Modifier and Type | Method and Description |
---|---|
TreeNode |
getChildAt(int index) |
int |
getChildCount() |
File |
getFile() |
int |
getSelectionMode() |
boolean |
isFile() |
boolean |
isSelected() |
void |
setSelected(boolean isSelected) |
void |
setSelectionMode(int mode) |
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(File file)
public SelectFilesTreeCheckNode(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 TreeNode getChildAt(int index)
getChildAt
in interface TreeNode
getChildAt
in class DefaultMutableTreeNode
public int getChildCount()
getChildCount
in interface TreeNode
getChildCount
in class DefaultMutableTreeNode
public File getFile()
public String toString()
toString
in class DefaultMutableTreeNode