|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.tree.DefaultMutableTreeNode com.alee.laf.tree.UniqueNode com.alee.extended.tree.AsyncUniqueNode com.alee.extended.tree.FileTreeNode
public class FileTreeNode
Custom AsyncUniqueNode for WebFileTree.
Field Summary | |
---|---|
protected java.io.File |
file
File for this node. |
protected java.lang.String |
name
Custom node name. |
Fields inherited from class com.alee.extended.tree.AsyncUniqueNode |
---|
failureCause, loaderIcon, state |
Fields inherited from class com.alee.laf.tree.UniqueNode |
---|
id, ID_PREFIX |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
---|---|
FileTreeNode(java.io.File file)
Constructs file node for the specified file. |
|
FileTreeNode(java.io.File file,
java.lang.String name)
Constructs file node for the specified file with custom name. |
Method Summary | |
---|---|
FileTreeNode |
getChildAt(int index)
|
java.io.File |
getFile()
Returns file for this node. |
java.lang.String |
getId()
Returns node ID and creates it if it doesn't exist. |
java.lang.String |
getName()
Returns custom name for this node. |
FileTreeNode |
getParent()
|
int |
indexOfFileChild(java.io.File file)
Returns index of child node with the specified file. |
void |
setFile(java.io.File file)
Sets file for this node. |
void |
setName(java.lang.String name)
Sets custom name for this node. |
java.lang.String |
toString()
Returns text node representation. |
Methods inherited from class com.alee.extended.tree.AsyncUniqueNode |
---|
createLoaderIcon, getFailureCause, getLoaderIcon, getState, isFailed, isLoaded, isLoading, isWaiting, setFailureCause, setState |
Methods inherited from class com.alee.laf.tree.UniqueNode |
---|
getTreePath, setId, setId |
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, 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 |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.io.File file
protected java.lang.String name
Constructor Detail |
---|
public FileTreeNode(java.io.File file)
file
- node filepublic FileTreeNode(java.io.File file, java.lang.String name)
file
- node filename
- custom node nameMethod Detail |
---|
public java.lang.String getId()
getId
in class UniqueNode
public java.io.File getFile()
public void setFile(java.io.File file)
file
- file for this nodepublic java.lang.String getName()
public void setName(java.lang.String name)
name
- custom name for this nodepublic FileTreeNode getParent()
getParent
in interface javax.swing.tree.TreeNode
getParent
in class AsyncUniqueNode
public FileTreeNode getChildAt(int index)
getChildAt
in interface javax.swing.tree.TreeNode
getChildAt
in class AsyncUniqueNode
public int indexOfFileChild(java.io.File file)
file
- file to search for in child nodes
public java.lang.String toString()
toString
in class UniqueNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |