Package ca.cgjennings.ui
Class FolderTree.Node
- java.lang.Object
-
- ca.cgjennings.ui.FolderTree.Node
-
- All Implemented Interfaces:
javax.swing.tree.TreeNode
- Enclosing class:
- FolderTree
protected class FolderTree.Node extends java.lang.Object implements javax.swing.tree.TreeNode
Class of nodes in the folder tree.
-
-
Field Summary
Fields Modifier and Type Field Description boolean
checkedForChildren
protected java.io.File
file
boolean
hasChildren
protected FolderTree.Node
parent
java.lang.Object
userObject
Subclasses of FolderTree can use this as they see fit.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Enumeration<FolderTree.Node>
children()
boolean
getAllowsChildren()
FolderTree.Node
getChildAt(int childIndex)
int
getChildCount()
java.io.File
getFile()
int
getIndex(javax.swing.tree.TreeNode node)
javax.swing.tree.TreeNode
getParent()
boolean
isLeaf()
java.lang.String
toString()
-
-
-
Field Detail
-
file
protected java.io.File file
-
checkedForChildren
public boolean checkedForChildren
-
hasChildren
public boolean hasChildren
-
parent
protected FolderTree.Node parent
-
userObject
public java.lang.Object userObject
Subclasses of FolderTree can use this as they see fit.
-
-
Method Detail
-
getChildAt
public FolderTree.Node getChildAt(int childIndex)
- Specified by:
getChildAt
in interfacejavax.swing.tree.TreeNode
-
getChildCount
public int getChildCount()
- Specified by:
getChildCount
in interfacejavax.swing.tree.TreeNode
-
getParent
public javax.swing.tree.TreeNode getParent()
- Specified by:
getParent
in interfacejavax.swing.tree.TreeNode
-
getIndex
public int getIndex(javax.swing.tree.TreeNode node)
- Specified by:
getIndex
in interfacejavax.swing.tree.TreeNode
-
getAllowsChildren
public boolean getAllowsChildren()
- Specified by:
getAllowsChildren
in interfacejavax.swing.tree.TreeNode
-
isLeaf
public boolean isLeaf()
- Specified by:
isLeaf
in interfacejavax.swing.tree.TreeNode
-
children
public java.util.Enumeration<FolderTree.Node> children()
- Specified by:
children
in interfacejavax.swing.tree.TreeNode
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getFile
public final java.io.File getFile()
-
-