org.xnap.gui.tree
Class AutoTreeExpander

java.lang.Object
  extended by org.xnap.gui.tree.AutoTreeExpander
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.TreeModelListener

public class AutoTreeExpander
extends java.lang.Object
implements javax.swing.event.TreeModelListener

Do not use this class, it will break your JTree. This class causes funny ghost rows with JTreeTable objects.


Constructor Summary
AutoTreeExpander(javax.swing.JTree jt)
           
AutoTreeExpander(javax.swing.JTree jt, boolean expandRootOnly)
           
 
Method Summary
static AutoTreeExpander install(javax.swing.JTree jt)
           
static AutoTreeExpander install(javax.swing.JTree jt, boolean expandRootOnly)
           
 void treeNodesChanged(javax.swing.event.TreeModelEvent e)
           
 void treeNodesInserted(javax.swing.event.TreeModelEvent e)
           
 void treeNodesRemoved(javax.swing.event.TreeModelEvent e)
           
 void treeStructureChanged(javax.swing.event.TreeModelEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoTreeExpander

public AutoTreeExpander(javax.swing.JTree jt,
                        boolean expandRootOnly)

AutoTreeExpander

public AutoTreeExpander(javax.swing.JTree jt)
Method Detail

install

public static AutoTreeExpander install(javax.swing.JTree jt,
                                       boolean expandRootOnly)

install

public static AutoTreeExpander install(javax.swing.JTree jt)

treeNodesChanged

public void treeNodesChanged(javax.swing.event.TreeModelEvent e)
Specified by:
treeNodesChanged in interface javax.swing.event.TreeModelListener

treeNodesInserted

public void treeNodesInserted(javax.swing.event.TreeModelEvent e)
Specified by:
treeNodesInserted in interface javax.swing.event.TreeModelListener

treeNodesRemoved

public void treeNodesRemoved(javax.swing.event.TreeModelEvent e)
Specified by:
treeNodesRemoved in interface javax.swing.event.TreeModelListener

treeStructureChanged

public void treeStructureChanged(javax.swing.event.TreeModelEvent e)
Specified by:
treeStructureChanged in interface javax.swing.event.TreeModelListener


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