com.jiexplorer.gui.tree
Class JITreeNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by com.jiexplorer.gui.tree.JITreeNode
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class JITreeNode
extends javax.swing.tree.DefaultMutableTreeNode
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
JITreeNode(java.io.File file)
           
 
Method Summary
 void explore()
           
 boolean getAllowsChildren()
           
 java.io.File getFile()
           
 long getSize()
          Gets size of this file object.
 boolean isDirectory()
           
 boolean isExplored()
           
 boolean isLeaf()
           
 boolean isRoot()
           
 void refresh()
           
 void setRoot(boolean root)
           
 java.lang.String toString()
           
 
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, 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
 

Constructor Detail

JITreeNode

public JITreeNode(java.io.File file)
Method Detail

getAllowsChildren

public boolean getAllowsChildren()
Specified by:
getAllowsChildren in interface javax.swing.tree.TreeNode
Overrides:
getAllowsChildren in class javax.swing.tree.DefaultMutableTreeNode

isLeaf

public boolean isLeaf()
Specified by:
isLeaf in interface javax.swing.tree.TreeNode
Overrides:
isLeaf in class javax.swing.tree.DefaultMutableTreeNode

getFile

public java.io.File getFile()

isExplored

public boolean isExplored()

isDirectory

public boolean isDirectory()

refresh

public void refresh()

explore

public void explore()

toString

public java.lang.String toString()
Overrides:
toString in class javax.swing.tree.DefaultMutableTreeNode

getSize

public long getSize()
Gets size of this file object.


isRoot

public final boolean isRoot()
Overrides:
isRoot in class javax.swing.tree.DefaultMutableTreeNode
Returns:
the root

setRoot

public final void setRoot(boolean root)
Parameters:
root - the root to set