org.eclipse.jpt.utility.model.listener
Class TreeChangeAdapter

java.lang.Object
  extended by org.eclipse.jpt.utility.model.listener.TreeChangeAdapter
All Implemented Interfaces:
java.util.EventListener, ChangeListener, TreeChangeListener

public class TreeChangeAdapter
extends java.lang.Object
implements TreeChangeListener

Convenience implementation of TreeChangeListener. Provisional API: This class is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.


Constructor Summary
TreeChangeAdapter()
          Default constructor.
 
Method Summary
 void nodeAdded(TreeChangeEvent event)
          This method gets called when a node is added to a bound tree.
 void nodeRemoved(TreeChangeEvent event)
          This method gets called when a node is removed from a bound tree.
 void treeChanged(TreeChangeEvent event)
          This method gets called when a portion of a bound tree is changed in a manner that is not easily characterized by the other methods in this interface.
 void treeCleared(TreeChangeEvent event)
          This method gets called when a bound tree is cleared.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeChangeAdapter

public TreeChangeAdapter()
Default constructor.

Method Detail

nodeAdded

public void nodeAdded(TreeChangeEvent event)
Description copied from interface: TreeChangeListener
This method gets called when a node is added to a bound tree.

Specified by:
nodeAdded in interface TreeChangeListener
Parameters:
event - A TreeChangeEvent describing the event source, the tree that changed, and the path to the node that was added.

nodeRemoved

public void nodeRemoved(TreeChangeEvent event)
Description copied from interface: TreeChangeListener
This method gets called when a node is removed from a bound tree.

Specified by:
nodeRemoved in interface TreeChangeListener
Parameters:
event - A TreeChangeEvent describing the event source, the tree that changed, and the path to the node that was removed.

treeCleared

public void treeCleared(TreeChangeEvent event)
Description copied from interface: TreeChangeListener
This method gets called when a bound tree is cleared.

Specified by:
treeCleared in interface TreeChangeListener
Parameters:
event - A TreeChangeEvent describing the event source, the tree that changed, and an empty path.

treeChanged

public void treeChanged(TreeChangeEvent event)
Description copied from interface: TreeChangeListener
This method gets called when a portion of a bound tree is changed in a manner that is not easily characterized by the other methods in this interface.

Specified by:
treeChanged in interface TreeChangeListener
Parameters:
event - A TreeChangeEvent describing the event source, the tree that changed, and the path to the branch of the tree that changed.