ptolemy.vergil.tree
Class EntityTreeModel.TreeUpdateListener

java.lang.Object
  extended by ptolemy.vergil.tree.EntityTreeModel.TreeUpdateListener
All Implemented Interfaces:
ChangeListener
Enclosing class:
EntityTreeModel

public class EntityTreeModel.TreeUpdateListener
extends java.lang.Object
implements ChangeListener

A ChangeListener that updates the Tree.


Constructor Summary
EntityTreeModel.TreeUpdateListener()
           
 
Method Summary
 void changeExecuted(ChangeRequest change)
          Trigger an update of the tree.
 void changeFailed(ChangeRequest change, java.lang.Exception exception)
          Trigger an update of the tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityTreeModel.TreeUpdateListener

public EntityTreeModel.TreeUpdateListener()
Method Detail

changeExecuted

public void changeExecuted(ChangeRequest change)
Trigger an update of the tree. If the change request indicates that it is localized, then only the relevant portion of the tree is updated. Otherwise, the entire tree is modified.

Specified by:
changeExecuted in interface ChangeListener
Parameters:
change - The change that has been executed, or null if the change was not done via a ChangeRequest.

changeFailed

public void changeFailed(ChangeRequest change,
                         java.lang.Exception exception)
Trigger an update of the tree. If the change request indicates that it is localized, then only the relevant portion of the tree is updated. Otherwise, the entire tree is modified.

Specified by:
changeFailed in interface ChangeListener
Parameters:
change - The change that was attempted or null if the change was not done via a ChangeRequest.
exception - The exception that resulted.