|
JET | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
edu.utep.cs.et.gui.explorer.DirectoryTree.DirNode
private static class DirectoryTree.DirNode
A class representing nodes of directory trees. A node represents either a directory or a file.
| Field Summary | |
|---|---|
private boolean |
explored
True if this node is explored. |
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
|---|---|
DirectoryTree.DirNode(File file)
Returns a directory node representing the give file. |
|
| Method Summary | |
|---|---|
void |
explore()
Explores this node. |
boolean |
getAllowsChildren()
Returns true if this node allows children. |
File |
getFile()
Returns the file that this node represents. |
Icon |
icon()
Returns icon for this node. |
boolean |
isDirectory()
Returns true if this node represents a directory. |
boolean |
isExplored()
Returns true if this node has already been explored. |
boolean |
isLeaf()
Returns true if this node is a leaf. |
String |
toString()
Returns the string representation of this node. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private boolean explored
| Constructor Detail |
|---|
public DirectoryTree.DirNode(File file)
| Method Detail |
|---|
public boolean getAllowsChildren()
getAllowsChildren in interface TreeNodegetAllowsChildren in class DefaultMutableTreeNodepublic boolean isLeaf()
isLeaf in interface TreeNodeisLeaf in class DefaultMutableTreeNodepublic File getFile()
public boolean isExplored()
public boolean isDirectory()
public Icon icon()
public String toString()
toString in class DefaultMutableTreeNodepublic void explore()
|
JET | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||