org.xnap.gui.tree
Class AbstractTreeModel

java.lang.Object
  extended by org.xnap.gui.tree.AbstractTreeModel
All Implemented Interfaces:
javax.swing.tree.TreeModel
Direct Known Subclasses:
FileTreeModel

public abstract class AbstractTreeModel
extends java.lang.Object
implements javax.swing.tree.TreeModel


Field Summary
protected  javax.swing.event.EventListenerList listenerList
           
protected  java.lang.String root
           
 
Constructor Summary
AbstractTreeModel(java.lang.String root)
           
 
Method Summary
 void addTreeModelListener(javax.swing.event.TreeModelListener l)
           
protected  void fireTreeNodesInserted(javax.swing.event.TreeModelEvent e)
           
protected  void fireTreeNodesRemoved(javax.swing.event.TreeModelEvent e)
           
protected  void fireTreeStructureChanged(javax.swing.event.TreeModelEvent e)
           
abstract  java.lang.Object getChild(java.lang.Object parent, int index)
           
abstract  int getChildCount(java.lang.Object node)
           
abstract  int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
           
 java.lang.Object getRoot()
           
abstract  boolean isLeaf(java.lang.Object node)
           
 void reload()
           
 void removeTreeModelListener(javax.swing.event.TreeModelListener l)
           
 void valueForPathChanged(javax.swing.tree.TreePath path, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

root

protected java.lang.String root

listenerList

protected transient javax.swing.event.EventListenerList listenerList
Constructor Detail

AbstractTreeModel

public AbstractTreeModel(java.lang.String root)
Method Detail

isLeaf

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

getChildCount

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

getChild

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

getIndexOfChild

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

getRoot

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

reload

public void reload()

valueForPathChanged

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

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

fireTreeNodesInserted

protected void fireTreeNodesInserted(javax.swing.event.TreeModelEvent e)

fireTreeNodesRemoved

protected void fireTreeNodesRemoved(javax.swing.event.TreeModelEvent e)

fireTreeStructureChanged

protected void fireTreeStructureChanged(javax.swing.event.TreeModelEvent e)


Copyright © 2001-2005 XNap Team. All Rights Reserved.