org.sourcejammer.client.gui.dialog
Class FileNode

java.lang.Object
  |
  +--javax.swing.tree.DefaultMutableTreeNode
        |
        +--org.sourcejammer.client.gui.dialog.FileNode
All Implemented Interfaces:
java.lang.Cloneable, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode
Direct Known Subclasses:
FileSystemRootNode

public class FileNode
extends javax.swing.tree.DefaultMutableTreeNode

Title: SourceJammer v 0.1.0 Description: Copyright: Copyright (c) 2001 Company:

Version:
$Revision: 1.3 $
Author:
Robert MacGrogan
See Also:
Serialized Form

Field Summary
(package private)  javax.swing.DefaultListModel fileList
           
private  boolean mbExplored
           
private  boolean mbShowFiles
           
private  boolean mbShowHidden
           
(package private)  java.util.Vector vecAllChildren
           
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
protected FileNode()
           
  FileNode(java.io.File fl, boolean bShowFiles, boolean bShowHidden)
           
 
Method Summary
private  void addFileToListModel(javax.swing.DefaultListModel model, java.io.File fl)
           
private  void addNodeToVector(java.util.Vector vec, FileNode nd)
          Adds the file node to the vector in proper sort order.
 void explore()
           
 boolean getAllowsChildren()
           
 java.io.File getFile()
           
 javax.swing.DefaultListModel getFileList()
           
 void hideHidden()
           
 boolean isDirectory()
           
 boolean isExplored()
           
 boolean isLeaf()
           
 boolean isShowHidden()
           
 void refreshDisplay()
           
protected  void setExplored(boolean b)
           
(package private)  void setShowHidden(boolean b)
           
 void showHidden()
           
 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, 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

mbExplored

private boolean mbExplored

mbShowFiles

private boolean mbShowFiles

mbShowHidden

private boolean mbShowHidden

vecAllChildren

java.util.Vector vecAllChildren

fileList

javax.swing.DefaultListModel fileList
Constructor Detail

FileNode

protected FileNode()

FileNode

public FileNode(java.io.File fl,
                boolean bShowFiles,
                boolean bShowHidden)
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

isShowHidden

public boolean isShowHidden()

showHidden

public void showHidden()

setShowHidden

void setShowHidden(boolean b)

hideHidden

public void hideHidden()

getFile

public java.io.File getFile()

isExplored

public boolean isExplored()

setExplored

protected void setExplored(boolean b)

isDirectory

public boolean isDirectory()

toString

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

refreshDisplay

public void refreshDisplay()

getFileList

public javax.swing.DefaultListModel getFileList()

explore

public void explore()

addFileToListModel

private void addFileToListModel(javax.swing.DefaultListModel model,
                                java.io.File fl)

addNodeToVector

private void addNodeToVector(java.util.Vector vec,
                             FileNode nd)
Adds the file node to the vector in proper sort order.



Copyright 2003 Soucejammer project.