mondrian.gui
Class JTreeUpdater

java.lang.Object
  extended by mondrian.gui.JTreeUpdater
All Implemented Interfaces:
EventListener, TreeExpansionListener, TreeSelectionListener

public class JTreeUpdater
extends Object
implements TreeExpansionListener, TreeSelectionListener

Helper to enable update the tree and keep expanded nodes expanded after reloading the tree.

Author:
erik
 

Constructor Summary
JTreeUpdater(JTree tree)
          Constructor
 
Method Summary
 void treeCollapsed(TreeExpansionEvent treeExpansionEvent)
           
 void treeExpanded(TreeExpansionEvent treeExpansionEvent)
           
 void update()
          Call this method whenever you update the tree and needs it reloaded
 void valueChanged(TreeSelectionEvent treeSelectionEvent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTreeUpdater

public JTreeUpdater(JTree tree)
Constructor

Parameters:
tree - The tree to track
Method Detail

update

public void update()
Call this method whenever you update the tree and needs it reloaded


treeExpanded

public void treeExpanded(TreeExpansionEvent treeExpansionEvent)
Specified by:
treeExpanded in interface TreeExpansionListener

treeCollapsed

public void treeCollapsed(TreeExpansionEvent treeExpansionEvent)
Specified by:
treeCollapsed in interface TreeExpansionListener

valueChanged

public void valueChanged(TreeSelectionEvent treeSelectionEvent)
Specified by:
valueChanged in interface TreeSelectionListener

SourceForge.net_Logo