|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectechopoint.tree.DefaultMutableTreeNode<M>
com.sptci.echo.tree.TreeNode<File>
com.sptci.echo.tree.filesystem.FileSystemTreeNode
public class FileSystemTreeNode
A tree node that represents a directory in the file system of the server on which the application is deployed.
© Copyright 2009 Sans Pareil Technologies, Inc.
| Field Summary |
|---|
| Fields inherited from class com.sptci.echo.tree.TreeNode |
|---|
initialised |
| Fields inherited from class echopoint.tree.DefaultMutableTreeNode |
|---|
actionCommand, allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
|---|---|
FileSystemTreeNode()
Default constructor. |
|
FileSystemTreeNode(File model)
Create a tree node that represents the specified file. |
|
FileSystemTreeNode(File model,
boolean allowsChildren)
Create a tree node that represents the specified file and that allows children based on the value specified. |
|
| Method Summary | |
|---|---|
protected void |
createChildren()
Create child nodes that represent the directories under the current directory. |
int |
getChildCount()
Over-ridden to lazily initialise the child nodes and return the count. |
boolean |
isLeaf()
Over-ridden to check whether the contents of the directory is readable or not. |
String |
toString()
Over-ridden to return just the name of the directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileSystemTreeNode()
public FileSystemTreeNode(File model)
model - The file (usually directory) that is being represented on the tree.
public FileSystemTreeNode(File model,
boolean allowsChildren)
model - The file (usually directory) that is being displayed on the tree.allowsChildren - Flag that indicates whether the node allows children.| Method Detail |
|---|
public boolean isLeaf()
isLeaf in interface TreeNodeisLeaf in class TreeNode<File>false if the directory is readable.public int getChildCount()
getChildCount in interface TreeNodegetChildCount in class DefaultMutableTreeNode<File>public String toString()
toString in class DefaultMutableTreeNode<File>protected void createChildren()
|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||