hades.manager.tree
Class ZipRootTreeNode

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended byhades.manager.tree.SortedTreeNode
          extended byhades.manager.tree.ZipRootTreeNode
All Implemented Interfaces:
java.lang.Cloneable, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode

public class ZipRootTreeNode
extends SortedTreeNode

ZipRootTreeNode: a tree node to represent a single JAR/ZIP file root. An application creating a ZipRootTreeNode is expected to also call setZipFile( someZipFile ), from which the tree node constructs a "zip://" + someZipFile.getName() + "?" pathname.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode
 
Field Summary
(package private) static javax.swing.ImageIcon _icon
           
(package private)  java.util.zip.ZipFile zipfile
           
 
Fields inherited from class hades.manager.tree.SortedTreeNode
__url, debug
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
ZipRootTreeNode()
           
 
Method Summary
 javax.swing.ImageIcon getIcon()
          this is a base class without icon: return the "unknown" icon
 java.util.zip.ZipFile getZipFile()
           
 void setZipFile(java.util.zip.ZipFile zipfile)
           
 java.lang.String toString()
           
 
Methods inherited from class hades.manager.tree.SortedTreeNode
add, getURL, handleDoubleClick, handleTreeSelection, loadIcon, msg, setURL
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, 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, 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

zipfile

java.util.zip.ZipFile zipfile

_icon

static javax.swing.ImageIcon _icon
Constructor Detail

ZipRootTreeNode

public ZipRootTreeNode()
Method Detail

getIcon

public javax.swing.ImageIcon getIcon()
Description copied from class: SortedTreeNode
this is a base class without icon: return the "unknown" icon

Overrides:
getIcon in class SortedTreeNode

setZipFile

public void setZipFile(java.util.zip.ZipFile zipfile)

getZipFile

public java.util.zip.ZipFile getZipFile()

toString

public java.lang.String toString()