|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
org.emboss.jemboss.gui.filetree.FileNode
File node for local file tree manager
Nested Class Summary |
Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode |
|
Field Summary | |
private boolean |
explored
true if explored |
static java.awt.datatransfer.DataFlavor |
FILENODE
data flavour of a file node |
(package private) static java.awt.datatransfer.DataFlavor[] |
flavors
flavours file node and string |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
FileNode(java.io.File file)
|
Method Summary | |
void |
explore()
Explores a directory adding a FileNode for each child |
boolean |
getAllowsChildren()
Determine if this is a directory |
java.io.File |
getFile()
Get the File this node represents |
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor d)
|
java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors()
|
boolean |
isDataFlavorSupported(java.awt.datatransfer.DataFlavor f)
|
boolean |
isDirectory()
Determine if this is a directory |
boolean |
isExplored()
Determine if this node has been explored |
boolean |
isLeaf()
Determine if this is a file |
private void |
readObject(java.io.ObjectInputStream in)
|
void |
reExplore()
Forces the directory to be re-explored |
java.lang.String |
toString()
Returns the name of the file |
private void |
writeObject(java.io.ObjectOutputStream out)
|
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, 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 |
private boolean explored
public static java.awt.datatransfer.DataFlavor FILENODE
static java.awt.datatransfer.DataFlavor[] flavors
Constructor Detail |
public FileNode(java.io.File file)
file
- file node fileMethod Detail |
public boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
public boolean isLeaf()
isLeaf
in interface javax.swing.tree.TreeNode
public java.io.File getFile()
public boolean isExplored()
public boolean isDirectory()
public java.lang.String toString()
public void explore()
public void reExplore()
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface java.awt.datatransfer.Transferable
public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor f)
isDataFlavorSupported
in interface java.awt.datatransfer.Transferable
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor d) throws java.awt.datatransfer.UnsupportedFlavorException, java.io.IOException
getTransferData
in interface java.awt.datatransfer.Transferable
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException
java.io.IOException
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |