mondrian.gui
Class JTreeUpdater
java.lang.Object
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
-
-
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JTreeUpdater
public JTreeUpdater(JTree tree)
- Constructor
- Parameters:
tree
- The tree to track
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