edu.umd.cfar.lamp.viper.util
Class ViperSubTreeChangedEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byjavax.swing.event.ChangeEvent
          extended byedu.umd.cfar.lamp.viper.util.ViperSubTreeChangedEvent
All Implemented Interfaces:
java.io.Serializable

public class ViperSubTreeChangedEvent
extends javax.swing.event.ChangeEvent

This is the change event that should be passed to ChangeListeners that are attached to ViperSubTrees.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ViperSubTreeChangedEvent(ViperSubTree source, ViperSubTree removed, ViperSubTree added)
          Creates a new event, describing the change that just occured on the source subtree.
 
Method Summary
 ViperSubTree getAddedNodes()
          Gets the subtree that was added.
 ViperSubTree getRemovedNodes()
          Gets the subtree that was removed.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ViperSubTreeChangedEvent

public ViperSubTreeChangedEvent(ViperSubTree source,
                                ViperSubTree removed,
                                ViperSubTree added)
Creates a new event, describing the change that just occured on the source subtree. There should be a record of what was added and what was removed.

Parameters:
source - the source of the change event
removed - the subtree removed
added - the subtree added
Method Detail

getAddedNodes

public ViperSubTree getAddedNodes()
Gets the subtree that was added. Note that there may be some overlap between the added and removed nodes.

Returns:
the added nodes

getRemovedNodes

public ViperSubTree getRemovedNodes()
Gets the subtree that was removed. Note that there may be some overlap between the added and removed nodes.

Returns:
the removed nodes