edu.umd.cfar.lamp.viper.util
Class ViperSubTreeChangedEvent
java.lang.Object
java.util.EventObject
javax.swing.event.ChangeEvent
edu.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
Fields inherited from class java.util.EventObject |
source |
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 |
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 eventremoved
- the subtree removedadded
- the subtree added
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