CodeSetTreeModel
Class CodeSetTreeModel

java.lang.Object
  extended by CodeSetTreeModel.CodeSetTreeModel
All Implemented Interfaces:
CodeSetTreeTraversal, javax.swing.tree.TreeModel

public class CodeSetTreeModel
extends java.lang.Object
implements javax.swing.tree.TreeModel, CodeSetTreeTraversal


Field Summary
protected  FileNode root
           
 
Constructor Summary
CodeSetTreeModel(FileNode root)
           
 
Method Summary
 void addTreeModelListener(javax.swing.event.TreeModelListener l)
           
 boolean executeForNode(FileNode node)
           
 void fireTreeStructureChanged(javax.swing.tree.TreePath changeNode)
           
 java.lang.Object getChild(java.lang.Object parent, int index)
           
 int getChildCount(java.lang.Object parent)
           
 java.lang.Object getChildNode(java.lang.String path)
           
 int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
           
 java.lang.Object getRoot()
           
 boolean isLeaf(java.lang.Object node)
           
 boolean nodeExclude(FileNode node)
           
 boolean nodeInclude(FileNode node)
           
 void removeTreeModelListener(javax.swing.event.TreeModelListener l)
           
 void traverseDepthFirst(java.lang.Object parent, CodeSetTreeTraversal execute)
           
 void traverseDepthLast(java.lang.Object parent, CodeSetTreeTraversal execute)
           
 void valueForPathChanged(javax.swing.tree.TreePath path, java.lang.Object newvalue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

root

protected FileNode root
Constructor Detail

CodeSetTreeModel

public CodeSetTreeModel(FileNode root)
Method Detail

getRoot

public java.lang.Object getRoot()
Specified by:
getRoot in interface javax.swing.tree.TreeModel

isLeaf

public boolean isLeaf(java.lang.Object node)
Specified by:
isLeaf in interface javax.swing.tree.TreeModel

getChildCount

public int getChildCount(java.lang.Object parent)
Specified by:
getChildCount in interface javax.swing.tree.TreeModel

getChild

public java.lang.Object getChild(java.lang.Object parent,
                                 int index)
Specified by:
getChild in interface javax.swing.tree.TreeModel

getIndexOfChild

public int getIndexOfChild(java.lang.Object parent,
                           java.lang.Object child)
Specified by:
getIndexOfChild in interface javax.swing.tree.TreeModel

fireTreeStructureChanged

public void fireTreeStructureChanged(javax.swing.tree.TreePath changeNode)

addTreeModelListener

public void addTreeModelListener(javax.swing.event.TreeModelListener l)
Specified by:
addTreeModelListener in interface javax.swing.tree.TreeModel

removeTreeModelListener

public void removeTreeModelListener(javax.swing.event.TreeModelListener l)
Specified by:
removeTreeModelListener in interface javax.swing.tree.TreeModel

valueForPathChanged

public void valueForPathChanged(javax.swing.tree.TreePath path,
                                java.lang.Object newvalue)
Specified by:
valueForPathChanged in interface javax.swing.tree.TreeModel

executeForNode

public boolean executeForNode(FileNode node)
Specified by:
executeForNode in interface CodeSetTreeTraversal

getChildNode

public java.lang.Object getChildNode(java.lang.String path)

nodeInclude

public boolean nodeInclude(FileNode node)

nodeExclude

public boolean nodeExclude(FileNode node)

traverseDepthFirst

public void traverseDepthFirst(java.lang.Object parent,
                               CodeSetTreeTraversal execute)

traverseDepthLast

public void traverseDepthLast(java.lang.Object parent,
                              CodeSetTreeTraversal execute)