com.jgoodies.jdiskreport.model.node
Class AbstractNode

java.lang.Object
  extended by com.jgoodies.jdiskreport.model.node.AbstractNode
Direct Known Subclasses:
CollapsedFilesNode, DirectoryNode, FileNode

public abstract class AbstractNode
extends Object

The abstract superclass for directory and file nodes.

Version:
$Revision: 1.7 $
Author:
Karsten Lentzsch

Constructor Summary
AbstractNode()
           
 
Method Summary
 void clearCachedFiles()
           
 float getAbsoluteSize()
           
 File getFile()
           
abstract  long getFileCount()
           
 Icon getIcon(boolean selected)
           
abstract  String getName()
           
 DirectoryNode getParent()
          Returns this node's parent DirectoryNode.
 float getRelativeSize()
           
 RootNode getRoot()
           
abstract  long getSize()
           
abstract  boolean isFileLeaf()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractNode

public AbstractNode()
Method Detail

getName

public abstract String getName()

isFileLeaf

public abstract boolean isFileLeaf()

getFile

public File getFile()

getSize

public abstract long getSize()

getFileCount

public abstract long getFileCount()

getAbsoluteSize

public float getAbsoluteSize()

getRelativeSize

public float getRelativeSize()

getIcon

public Icon getIcon(boolean selected)

getRoot

public RootNode getRoot()

getParent

public DirectoryNode getParent()
Returns this node's parent DirectoryNode.


clearCachedFiles

public void clearCachedFiles()


Copyright © 2000-2008 JGoodies Karsten Lentzsch. All Rights Reserved.