lexx.gui
Class FileTreeModel

java.lang.Object
  |
  +--lexx.gui.FileTreeModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.tree.TreeModel

final class FileTreeModel
extends java.lang.Object
implements javax.swing.tree.TreeModel, java.io.Serializable

Setups up JTree

Copyright (c) 2002-2003

Since:
25/02/2003
Version:
1.0
Author:
Mohammed Imran

Constructor Summary
FileTreeModel(java.io.File startingPoint, java.lang.String[] filters)
           
FileTreeModel(java.lang.String[] filters)
           
 
Method Summary
 void addTreeModelListener(javax.swing.event.TreeModelListener l)
           
 java.lang.Object clone()
           
 java.lang.Object getChild(java.lang.Object parent, int index)
           
 int getChildCount(java.lang.Object parent)
           
 int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
           
 java.lang.Object getRoot()
           
 boolean isLeaf(java.lang.Object node)
           
 void removeTreeModelListener(javax.swing.event.TreeModelListener l)
           
 void valueForPathChanged(javax.swing.tree.TreePath path, java.lang.Object newValue)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileTreeModel

public FileTreeModel(java.io.File startingPoint,
                     java.lang.String[] filters)

FileTreeModel

public FileTreeModel(java.lang.String[] filters)
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

addTreeModelListener

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

getChild

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

getChildCount

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

getIndexOfChild

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

getRoot

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

isLeaf

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

removeTreeModelListener

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

valueForPathChanged

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