net.sourceforge.gxl
Class GXLTreeModificationEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--net.sourceforge.gxl.GXLTreeModificationEvent
All Implemented Interfaces:
Serializable

public class GXLTreeModificationEvent
extends EventObject

The event that is passed to GXLDocumentListeners when an element has been inserted or removed.

See Also:
GXLDocumentListener, GXLElement.add(GXLElement child), GXLElement.remove(GXLElement child), Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Method Summary
 GXLElement getElement()
          Returns the element that was inserted or removed.
 GXLElement getParent()
          Returns the parent that the element was inserted into or removed from.
 
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
 

Method Detail

getParent

public GXLElement getParent()
Returns the parent that the element was inserted into or removed from.

Returns:
The parent that the element was inserted into or removed from.

getElement

public GXLElement getElement()
Returns the element that was inserted or removed.

Returns:
The element that was inserted or removed.